Sie sind auf Seite 1von 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();
}
}
}

Das könnte Ihnen auch gefallen