Documente Academic
Documente Profesional
Documente Cultură
IDfPersistentObject
IDfSysObject
A middle-tier system
// Set username
liObj.setUser(username);
// Set password
liObj.setPassword(password);
m_sessObj = clientObj.newSession(strDocbase, liObj);
Processing a Docbase Object
This section describes the way to use DFC to create and perform queries
and to process the results.
IDfQuery
IDfCollection
IDfQuery
You pass the session and the query to the execute method, and it
returns results as an IDfCollection object
IDfCollection
The collection points to one row of data at a time. You must call next
before accessing the first row
Read - Can read content but cannot update the object or its content
Change State - The user can change the document lifecycle state of
the object
Change Ownership - The user can change the owner of the object
Change Location - The user can change move an object from one
folder to another
Using Private ACLs
objUser.setUserName(userName);
sysObj.save();
Create Folder
System Types
Custom Types
Create Type (Cont..)
// Create the dm_policy object with the following states: preliminary, reviewed
IDfSysObject bpObj = (IDfSysObject)sess.newObject("dm_policy");
bpObj.setObjectName(“PolicyName”);
// Include the type that can use this business policy
bpObj.setRepeatingString("included_type", 0, "dm_sysobject");
// Add the "preliminary" state
sess.apiGet("appendstate", bpObj.getObjectId().toString());
bpObj.setRepeatingString("state_name", 0, "preliminary");
// Add the "reviewed" state
sess.apiGet("appendstate", bpObj.getObjectId().toString());
bpObj.setRepeatingString("state_name", 1, "reviewed");
bpObj.link("/Temp");
bpObj.save();
Attach Business Policy
// Ask the user for a target location for the new VDM
sysObjRoot.link(DfExUtils.getInput("\nEnter a Docbase location for the VDM
(e.g. /Temp): "));
Set parameters to control the way the operation performs the task.
Each operation type has setXxx methods for setting its parameters
Add documents to the operation. Use its inherited add method to place
a document, file, or folder into the operation. The add method returns
the newly created node (or a null if it fails)
DQL Tools :
– From Documentum Administrator
– Through DFC Programs
A Basic DQL Query
e.g.
SELECT object_name, title, r_creation_date from dm_document;
WHERE Clause
Syntax :
method_name,session,addressed_object,argument,{argument}
Example :
Get, c, <object_id>, object_name
All arguments are positional.
“c” stands for current session.
Creating an object :
Consider the DQL query to change owner of documents from ‘abc’ to ‘xyz’
Example :
dm_document
sop_doc
Extended Attributes
- effective_date
User-defined type
- sop_number
- affected_dept
Creating and Modifying Types
Custom object types are created using DAB and packaged into DocApp.
DocApp can be installed in the target repository
Data Dictionary
Allows the same rules for web and client server development