0% found this document useful (0 votes)
340 views1 page

DFC (Documentum Foundation Classes) How To Perform The DFC Using

This document provides instructions on how to perform DFC (Documentum Foundation Classes) operations using NETBESNA in Java. It outlines the steps to set up a Java project in NetBeans and add the required DFC JAR files to the libraries. It then provides a code example to create a cabinet using DFC by importing the necessary packages, getting a client session, setting login credentials, creating a new cabinet folder object, setting its name, and saving it.

Uploaded by

alifarooq
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
340 views1 page

DFC (Documentum Foundation Classes) How To Perform The DFC Using

This document provides instructions on how to perform DFC (Documentum Foundation Classes) operations using NETBESNA in Java. It outlines the steps to set up a Java project in NetBeans and add the required DFC JAR files to the libraries. It then provides a code example to create a cabinet using DFC by importing the necessary packages, getting a client session, setting login credentials, creating a new cabinet folder object, setting its name, and saving it.

Uploaded by

alifarooq
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

DFC (Documentum Foundation Classes)

How to perform the dfc using NETBESNA


Start net beans….>file…>new project…>general…>java application…>next
Project name…>finish.
Click on project…>libraries…>right click on libraries…>addjar\folder…
>click..>c:programfiles…document…share….all jar files
Again click on libraries…>add jar\folder…c:programfiles…document..dctm.jarlib
Again click on libraries…>c:tomcat…>comment…>lib…>jsp&servelts.

First DFC program


How to create the cabinet using dfc?
Import com.document .com.*;//the package which contains IDfclientX interface IDfclientx
Import com.document.fc.client.*;//the package which cantain IDfclient &IDsessionmanager
Import com.document.fc.common.*;//which contain the IDlogininfo interface
Public class class name
{
Public Static void main(String srgs[])
{
try
{
IDfclientX X=new DfclientX();
IDfclient x=X.get localclient();
IDfloginInfo li=X.get login info();
IDfSessionManager sm=X.newSessionManeger();
li.setuser(“username”);
li.setpassword(“pw”);
sm.setIdentity(“repository name”,li);
IDfsession s=sm.newSession(“repository name”);
IDfFolder f=(IDfFolder)s.newobject(“dm_cabinet);
f.setobjectname(“cabinetname”);
f.save()
catch(Exception.e){e.printstack trace();
}
}
}

You might also like