Package com.documentum.fc.client


package com.documentum.fc.client

Provides classes and interfaces for managing sessions and manipulating data in the repository. This package contains the most widely used interfaces in the framework and are typically the first objects instantiated and used in a DFC program. Using the interfaces in this package, one can establish a session, then perform actions like creating document objects, or creating collections of objects to perform specific tasks like starting a workflow, or attaching document lifecycles to objects.

The following list highlights functionality that can be found in this package:

<o:p> </o:p>
   - Establishing and managing DFC sessions
   - Creating, manipulating, and retrieving data
   - Validating data
   - Managing workflows
   - Manipulating virtual documents
   - Working with document versions
   - Managing permissions
   - Creating and managing document lifecyles
   - Executing and processing queries
   - Accessing the client registry

The following example code demonstrates how to establish a session and create a document:


Java:

<o:p> </o:p>
    // Gets a DFC local client object that will call into DMCL40.
    IDfClient client = DfClient.getLocalClient();
    IDfSessionManager sMgr = client.newSessionManager();
<o:p> </o:p>
    // Setup login details.
    IDfLoginInfo login = new DfLoginInfo();
    login.setUser( strUserName );
    login.setPassword( strPassword );
    login.setDomain( null );
<o:p> </o:p>
    sMgr.setIdentity( strDocbase1, login );
    sMgr.setIdentity( strDocbase2, login );
<o:p> </o:p>
    IDfSession session1 = sMgr.newSession( strDocbase1 );
<o:p> </o:p>
    // Create a document.
    IDfDocument document = null;
    document = (IDfDocument) session1.newObject("dm_document");
    document.setObjectName("Report on Literature");
    document.setContentType("crtext");
    document.setFile("C:/Temp/Lit.txt");
    document.save();

To access Java, Visual Basic and C++ DFC sample code, please visit the Documentum Developer Program.