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.
Original Description:
Original Title
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.
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online from Scribd
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.
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online from Scribd
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(); } } }