Jump to: navigation, search

EMC Documentum Foundation Class Basic

From w3cyberlearnings

Contents

What is Documentum Foundation Class or DFC?

  • DFC based on Java object-oriented structure.
  • DFC can access, create, delete, modify, the documentum repository objects.
  • Application and middle-tier applications, client-side application, web top, web development toolkit (WDK) use DFC to open communication between the application with the Content Server.
  • Communicate between the Content Server and the remote client application requires to maintain and establish the communication sessions.
  • DFC wrap the client side software in the IdfClient interface as a center point for DFC code to handle the communication with the Content Server and Docbase.
  • DFC codes normally place within a try/catch/finally block, and the error handler is in the catch block. The finally block is generally for release or close the session or to release back the previous open session in the try block.
  • current v6.0 or 6.5

Video Link for setup eclipse for DFC

http://www.youtube.com/watch?v=QV3JvSD_rng dfc

DFC Hierarchy Overview

Dfc hierarchy.png

How to use the DFC to connect to the Documentum Repository

  • You need to set and configure the jar files path in the Eclipse.
  • And, make sure that you also set the df.property directory.

code

package w3cyberlearning.framework.test;

import com.documentum.fc.client.DfClient;
import com.documentum.fc.client.IDfClient;
import com.documentum.fc.client.IDfSession;

import com.documentum.fc.common.DfLoginInfo;
import com.documentum.fc.common.IDfLoginInfo;


public class CheckDocBaseConnection {

	private static final String USERNAME = "Administrator";
	private static final String PASSWORD= "dmadmin";
	private static final String DOCBASE = "documentum";

	public static void main(String[] args) {
		// TODO Auto-generated method stub

		try {
			IDfClient client = DfClient.getLocalClient();
			IDfLoginInfo loginInfo = new DfLoginInfo();
			loginInfo.setUser(USERNAME);
			loginInfo.setPassword(PASSWORD);
			loginInfo.setDomain("");

			IDfSession docbase_session =
                            client.newSession(DOCBASE,loginInfo);

			if(docbase_session != null){
				System.out.println("successful connect to docbase");

			}
			else {
				System.out.println("failed to connect to docbase");
			}
		}
		catch(Exception e){
			e.printStackTrace();
		}
	}
}

connection string/variables

  • create the private variable for user name, password, and docbase.
  • these users name are used to access the docbase.
  • you need to have the user and password in order to login to docbase.
private static final String USERNAME = "Administrator";
private static final String PASSWORD= "dmadmin";
private static final String DOCBASE = "documentum";

assign connection info

authentication to the docbase

     IDfLoginInfo loginInfo = new DfLoginInfo();
     loginInfo.setUser(USERNAME);
     loginInfo.setPassword(PASSWORD);
     loginInfo.setDomain("");
Navigation
Web
SQL
MISC
References