Class DfClientX
- All Implemented Interfaces:
IDfClientX,Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConverts a JavaByteArrayInputStreamobject into a String.voidClose the DFC trace output.deserializeObject(String image) Restores the object from its serialized image.voidFlushes the DFC trace output.Returns anIDfAcsClientobject.Factory method that constructs a newIDfAcsTransferPreferencesinstance.Factory method that constructs a newIDfCancelCheckoutobject.Factory method that constructs a newIDfCheckinOperationobject for checking in one or more checked out repository objects.Factory method that constructs a newIDfCheckoutOperationobject for checking in one or more repository objects previously checked out.Factory method that constructs a newIDfClientRegistryobject that provides access to the Docbase object information stored on the local system.com.documentum.operations.contentpackage.IDfContentPackageFactoryFactory method that returns a handle toIDfContentPackageFactoryobject.Factory method that constructs a newIDfCopyOperationobject.Factory method that constructs a newIDfDborEntryobject.Factory method that constructs a newIDfDeleteOperationobject.Returns the current DFC version string.Factory method that contructs a newIDfDocbrokerClientinstance.Factory method for anIDfEnumerationobject.Factory method for anIDfEnumerationobject.Factory method that constructs a newIDfExportOperationobject for exporting one or more repository objects to the file system.Factory method that constructs a newIDfFileobject that represents a file system file.getFormatRecognizer(IDfSession session, String filePath, String suggestedFormat) Factory method that constructs a newIDfFormatRecognizerobject that is used to suggest what Docbase formats might be appropriate for the specified file.Factory method for anIDfGetObjectOptionsobject.Factory method for anIDfIdobject.Factory method that constructs a newIDfImportOperationobject for importing one or more files into the repository.getList()Factory method for anIDfListobject.Factory method for anIDfClientobject.Returns a DFC local client object that will call into DMCL32.dll for backward compatibility with pre-4.0 Documentum servers.Factory method for anIDfLoginInfoobject.getMacFormatRecognizer(IDfSession session, String dataForkPath, String resForkPath, String suggestedFormat) Factory method that constructs a newIDfFormatRecognizerobject that is used to suggest what Docbase formats might be appropriate based on both the data and resource forks of a Macintosh file.Factory method that constructs a newIDfMoveOperationobject.getOperation(String operationName) Factory method for creating a new operation object.Factory method that contructs a newIDfPermitobject.Factory method that constructs a newIDfPredictiveCachingOperationobject for predictive content caching.Factory method that constructs a new emptyIDfPropertiesobject that provides functionality for manipulating values in a hashable.getQuery()Factory method for anIDfQueryobject.com.documentum.fc.client.qb.IDfQueryMgrFactory method that constructs a newIDfQueryMgrobject that is used for configuring and sending complex DQL queries to Documentum servers using the query builder objects located in thecom.documentum.fc.client.qbpackage.Factory method for anIDfTimeobject.Returns the current DFC trace filename.intReturns the current DFC trace level.booleanReturns if the current DFC trace contains threading information.booleanReturns if the current DFC trace contains timing information.Factory method that constructs a newIDfValidationOperationobject.getVirtualDocument(IDfSysObject rootObject, String lateBindingValue, boolean followRootAssembly) Returns a virtual document object where the providedIDfSysObjectis the root object of the virtual document.getVirtualDocumentNodeFromToken(IDfSession session, String token) Returns an interface to a node of a virtual document given a unique token that represents the node in the virtual document tree.Factory method that contructs a newIDfXMLDocTypeobject.Factory method that constructs a newIDfXmlQueryobject.Factory method that constructs a newIDfTransformOperationobject for using XSLT to transform one or more XML documents into another form, such as HTML, PDF, etc.Factory method that constructs a newIDfXMLUtilsobject that provides methods for XML related functions, likegetApplicationByDTD, getObjectIdFromDRL , isXML, isHTML,and so on.Factory method that constructs a newIDfXQueryobject.com.documentum.xml.xquery.IDfXQueryTargetsgetXQueryTargets(int targetCategory) Factory method that constructs a newIDfXQueryTargetsobject.parseException(String streamedExc) Turns a string returned by OLE/COM exception into anIDfExceptionobject.serializeObject(Object object) Serializes an object.voidsetTraceFileName(String fileName) Redirects the trace output to the specified file.voidsetTraceLevel(int level) Turns on DFC tracing when level is greater than 0.voidsetTraceThreads(boolean fEnable) Sets the DFC trace to contain threading information.voidsetTraceTime(boolean fEnable) Set the DFC trace to contain timing information.Converts a String into a JavaByteArrayOutputStreamobject.voidPrint a message to the DFC trace output.voidtraceMsgCond(int triggerLevel, String msg) Conditionally print a message to the trace output.Methods inherited from class com.documentum.fc.common.DfObject
getClassName, getStringRep, trace, trace, traceAPI, traceAPI, traceAPI, traceAPI, traceAPI, traceAPI, traceAPI, traceAPI, traceAPI, traceAPI, traceAPI, traceAPI, traceAPI, traceAPI, traceAPI, traceAPI, traceAPI, traceAPI, traceAPI, traceAPI, traceAPI, traceAPI, traceAPI, traceAPI, traceAPI, traceAPI, traceAPI, traceAPI, traceAPI, traceAPI, traceAPI, traceAPI, traceAPI, traceAPI, traceAPI, traceAPI, traceAPI, traceAPI, traceAPI, traceAPI, traceAPIExit, traceAPIExit, traceAPIExit, traceAPIExit, traceAPIExit, traceAPIExit, traceAPIExit, traceAPIExit, traceNoName
-
Constructor Details
-
DfClientX
public DfClientX()
-
-
Method Details
-
getLocalClient
Description copied from interface:IDfClientXFactory method for anIDfClientobject. Returns a DFC local client object that will call into DMCL40.dll to connect to the Documentum servers. This method call will precede the calls to connect to the Documentum server (IDfClient.newSession(), IDfClient.getSharedSession()). Calling this method after the first call merely returns a reference to the sameIDfClientobject returned from the first call. There is no penalty for calling this method more than once in a program.The following code examples demonstrate how to obtain an
IDfClientinterface:
Java:IDfClientX clientx = new DfClientX(); IDfClient client = DfClient.getLocalClient(); // Login details are then setup here... // Then a session is established with the Documentum server... IDfSessionManager sMgr = client.newSessionManager(); sMgr.setIdentity( strDocbaseName, loginInfo ); IDfSession session = sMgr.getSession( strDocbaseName );
Visual Basic:Dim clientx As New DfClientX Dim client As IDfClient Dim sMgr as IDfSessionManager Dim session As IDfSession Set client = clientx.getLocalClient Set sMgr as client.getSessionManager ' Login details are then setup here... ' Then a session is established with the Documentum server... sMgr.setIdentity( strDocbaseName ) Set session = sMgr.getSession( strDocbaseName )- Specified by:
getLocalClientin interfaceIDfClientX- Returns:
- a DFC local client object.
- Throws:
DfException- an error object with an error codeDM_DFC_E_INIT_DMCLindicating DMCL40.dll could not be loaded.- See Also:
-
getLoginInfo
Description copied from interface:IDfClientXFactory method for anIDfLoginInfoobject. Constructs a new empty object to set with login details prior to connecting to Documentum servers.The following code example demonstrates how to obtain an
IDfLoginInfointerface, set login details then connect to a Documentum server:
Visual Basic:Dim clientx As New DfClientX Dim client As IDfClient Dim sMgr as IDfSessionManager Dim loginInfoObj As IDfLoginInfo Dim session As IDfSession Set client = clientx.getLocalClient sMgr = client.newSessionManager Set loginInfoObj = clientx.getLoginInfo loginInfoObj.setUser "dbuser" loginInfoObj.setPassword "dbpass" sMgr.setIdentity( "docbaseName", loginInfoObj ) Set session = sMgr.getSession( "docbaseName" )
- Specified by:
getLoginInfoin interfaceIDfClientX- Returns:
- an
IDfLoginInfointerface to a new emptyDfLoginInfoobject - See Also:
-
getQuery
Description copied from interface:IDfClientXFactory method for anIDfQueryobject. Constructs an new query object to use for sending DQL queries to Documentum servers.The following code example demonstrates how to obtain an
IDfQueryinterface, set a DQL query to the object and execute the query:
Java:
Visual Basic:IDfClient client = new DfClient(); IDfClientX clientx = new DfClientX(); IDfQuery query = clientx.getQuery(); query.setDQL( "select * from dm_cabinet" ); IDfCollection coll = query.execute( session, IDfQuery.DF_READ_QUERY );
Dim clientx As New DfClientX Dim query as IDfQuery Dim coll as IDfCollection Set query = clientx.getQuery query.setDQL "select * from dm_cabinet" Set coll = query.execute(session, DFCLib.IDfQuery.DF_READ_QUERY)
- Specified by:
getQueryin interfaceIDfClientX- Returns:
- an
IDfQueryinterface to a query object.
-
getGetObjectOptions
Description copied from interface:IDfClientXFactory method for anIDfGetObjectOptionsobject. Constructs a new option object to use with getObjectWithOptions.The following code example demonstrates how to obtain an
IDfGetObjectOptionsinterface, set object options and call getObjectWithOptions.
Java:IDfClientX clientx = new DfClientX(); IDfGetObjectOptions objectOptions = clientx.getGetObjectOptions(); //Set object with values for partitionid,typeName, cachePersistently, and currencyCheckValue. //By default, the values are -1, null, false and null. objectOptions.setPartition(1,"dm_document"); //for example, partitionid value is 1 // and type name needs to be the exact // object type name, not any super type name IDfPersistentObject perObj = sess.getObjectwithOptions(idObj,objectOptions); if (perObj.getObjectId().getId().equals("0900d5bb8001f900")) { // Successfully fetched object... }- Specified by:
getGetObjectOptionsin interfaceIDfClientX- Returns:
- an
IDfGetObjectOptionsinterface to a new empty object options.
-
getXmlQuery
Description copied from interface:IDfClientXFactory method that constructs a newIDfXmlQueryobject.- Specified by:
getXmlQueryin interfaceIDfClientX- Returns:
- a new
IDfXmlQueryobject. - See Also:
-
getXQuery
Description copied from interface:IDfClientXFactory method that constructs a newIDfXQueryobject.- Specified by:
getXQueryin interfaceIDfClientX- Returns:
- a new
IDfXQueryobject. - See Also:
-
getDborEntry
Description copied from interface:IDfClientXFactory method that constructs a newIDfDborEntryobject.- Specified by:
getDborEntryin interfaceIDfClientX- Returns:
- a new
IDfDborEntryobject. - See Also:
-
serializeObject
Description copied from interface:IDfClientXSerializes an object. It is used for passing the object across process boundaries.- Specified by:
serializeObjectin interfaceIDfClientX- Parameters:
object- object to serialize- Returns:
- the serialized object
-
deserializeObject
Description copied from interface:IDfClientXRestores the object from its serialized image.- Specified by:
deserializeObjectin interfaceIDfClientX- Parameters:
image- serialized object- Returns:
- the deserialized object
- Throws:
DfException
-
getList
Description copied from interface:IDfClientXFactory method for anIDfListobject. Constructs a newIDfListobject representing an empty list to fill with data. DFC applications should always use anIDfListobject instead of ajava.util.Listobject.The following code example demonstrates how to obtain an
IDfListinterface and insert a value into the list:
Java:IDfClientX clientx = new DfClientX() IDfList listString = clientx.getList(); if( listStrings.getCount() == 0 ) { // The list is correctly empty... } listStrings.insertString( "stringVal" ); if( listStrings.getCount == 1 ) { // Item added correctly... }
Visual Basic:Dim clientx As New DfClientX Dim listStrings As IDfList Set listStrings = clientx.getList If listStrings.getCount = 0 Then ' The list is correctly empty... End If listStrings.insertString "stringVal" If listStrings.getCount = 1 Then ' Item added correctly... End If
- Specified by:
getListin interfaceIDfClientX- Returns:
- an
IDfListinterface to a new list object. - See Also:
-
getProperties
Description copied from interface:IDfClientXFactory method that constructs a new emptyIDfPropertiesobject that provides functionality for manipulating values in a hashable. DFC applications should always use anIDfPropertiesobject instead of ajava.util.Hashtableobject.- Specified by:
getPropertiesin interfaceIDfClientX- Returns:
- an
IDfPropertiesinterface
-
getId
Description copied from interface:IDfClientXFactory method for anIDfIdobject. Constructs a newIDfIdobject representing an object id of an object in the Documentum server.The following code example demonstrates how to obtain an
IDfIdinterface:Dim clientx As New DfClientX Dim id As IDfId Set id = clientx.getId("0900d5bb8001fd00") If id.toString = "0900d5bb8001fd00" Then ' Do something here... End If- Specified by:
getIdin interfaceIDfClientX- Parameters:
id- the object id of an object in the Documentum server.- Returns:
- an
IDfIdan interface to an object id. - See Also:
-
getTime
Description copied from interface:IDfClientXFactory method for anIDfTimeobject. Constructs a new time object initialized to the time and format pattern provided by the user. If you want to get an IDfTime instance representing the NULLDATE, pass an empty string ("") for both parameters.The following code example demonstrates how to obtain an
IDfTimeinterface:Dim clientx As New DfClientX Dim t As IDfTime Set t = clientx.getTime("09/09/2000 12:12:47", "mm/dd/yyyy hh:mi:ss")- Specified by:
getTimein interfaceIDfClientX- Parameters:
time- the time to initialize the object to.pattern- defines the pattern that you want to use to interpret the value of time. If a pattern is empty, the value is interpreted using the client's short date format if that is defined. The valid patterns are:- mm/dd/[yy]yy
- dd-mon-[yy]yy
- month dd[,] [yy]yy
- mon dd [yy]yy
- [dd/]mm/[yy]yy
- [yy]yy/mm[/dd] [hh:mi:ss]
- [yy]yy/mm[/dd] [hh:mi:ss]
- [mon-][yy]yy [hh:mi:ss]
- month[,][yy]yy [hh:mi:ss]
- Returns:
- a new
IDfTimeobject
-
getEnumeration
Description copied from interface:IDfClientXFactory method for anIDfEnumerationobject. Constructs a new DFC enumeration object used to iterate a JavaEnumeration.- Specified by:
getEnumerationin interfaceIDfClientX- Parameters:
en- a JavaEnumerationobject.- Returns:
- a new
IDfEnumerationobject
-
getEnumerationFromIterator
Description copied from interface:IDfClientXFactory method for anIDfEnumerationobject. Constructs a new DFC enumeration object used to iterate a JavaIterator.- Specified by:
getEnumerationFromIteratorin interfaceIDfClientX- Parameters:
it- a JavaIteratorobject.- Returns:
- a new
IDfEnumerationobject
-
getTraceLevel
public int getTraceLevel()Description copied from interface:IDfClientXReturns the current DFC trace level. A value of zero indicates that tracing is turned off.- Specified by:
getTraceLevelin interfaceIDfClientX- Returns:
- the current DFC trace level.
-
setTraceLevel
public void setTraceLevel(int level) Description copied from interface:IDfClientXTurns on DFC tracing when level is greater than 0. The default trace level is 0. A value of zero turns tracing off. The trace file should be set using thesetTraceFileNamemethod.- Specified by:
setTraceLevelin interfaceIDfClientX- Parameters:
level- specifies the trace level.
-
getTraceFileName
Description copied from interface:IDfClientXReturns the current DFC trace filename.- Specified by:
getTraceFileNamein interfaceIDfClientX- Returns:
- the fully qualified file name of the current trace file.
-
setTraceFileName
Description copied from interface:IDfClientXRedirects the trace output to the specified file. There is no default filename.- Specified by:
setTraceFileNamein interfaceIDfClientX- Parameters:
fileName- specifies the trace filename.
-
flushTrace
public void flushTrace()Description copied from interface:IDfClientXFlushes the DFC trace output.- Specified by:
flushTracein interfaceIDfClientX
-
closeTrace
public void closeTrace()Description copied from interface:IDfClientXClose the DFC trace output.- Specified by:
closeTracein interfaceIDfClientX
-
traceMsg
Description copied from interface:IDfClientXPrint a message to the DFC trace output.- Specified by:
traceMsgin interfaceIDfClientX- Parameters:
msg- specifies the message to be printed.
-
traceMsgCond
Description copied from interface:IDfClientXConditionally print a message to the trace output. The message will print if the current trace level is less than or equal to the value of argumenttriggerLevel.- Specified by:
traceMsgCondin interfaceIDfClientX- Parameters:
triggerLevel- specifies the trace level.msg- specifies the message to be printed.- See Also:
-
parseException
Description copied from interface:IDfClientXTurns a string returned by OLE/COM exception into anIDfExceptionobject.The following code example demonstrates how to obtain an
IDfExceptioninterface from a Visual Basic generated error description:Dim clientx As New DfClientX dim e as IDfException Set e = clientx.parseException(Err.Description) If e.getErrorCode = DFCLib.IDfException_DM_DFC_E_SERVER Then ' ... ElseIf e.getErrorCode = DFCLib.IDfException_DM_DFC_E_BAD_VALUE Then ' ... End If
- Specified by:
parseExceptionin interfaceIDfClientX- Parameters:
streamedExc- OLE/COM exception message.- Returns:
- an
IDfExceptioninterface to the exception object created from parsingstreamedExc.
-
getQueryMgr
public com.documentum.fc.client.qb.IDfQueryMgr getQueryMgr()Description copied from interface:IDfClientXFactory method that constructs a newIDfQueryMgrobject that is used for configuring and sending complex DQL queries to Documentum servers using the query builder objects located in thecom.documentum.fc.client.qbpackage.The following code example demonstrates how to obtain an
IDfQueryMgrinterface:Dim clientx As New DfClientX dim qm as IDfQueryMgr Set qm = clientx.getQueryMgr
- Specified by:
getQueryMgrin interfaceIDfClientX- Returns:
- an interface to a query manager object.
-
getVirtualDocument
public IDfVirtualDocument getVirtualDocument(IDfSysObject rootObject, String lateBindingValue, boolean followRootAssembly) throws DfException Description copied from interface:IDfClientXReturns a virtual document object where the providedIDfSysObjectis the root object of the virtual document.The following code example demonstrates how to obtain an
IDfVirtualDocumentinterface:Dim clientx As New DfClientX Dim vDoc As IDfVirtualDocument Dim sysObjId As IDfId Dim sysObjRoot As IDfSysObject Set sysObjId = clientx.getId("0900d43180001104") Set sysObjRoot = sessionObj.getObject(sysObjId) Set vDoc = clientx.getVirtualDocument(sysObjRoot, "CURRENT", False)- Specified by:
getVirtualDocumentin interfaceIDfClientX- Parameters:
rootObject- object of the document to serve as the root of the virtual document.lateBindingValue- version label value to use to resolve late bound nodes of the virtual document. Pass null to use the default value "CURRENT".followRootAssembly-trueif the associated assembly of the root document should be followed instead of any virtual children.- Returns:
- an
IDfVirtualDocumentinterface to the object. - Throws:
DfException- if an error occurs setting up the rootObject.- See Also:
-
getOperation
Description copied from interface:IDfClientXFactory method for creating a new operation object.The preferred approach is to use one of the
getmethods. For example,Xxxx OperationgetCopyOperationorgetImportOperation.For
IDfOperationand its subclasses (for example,IDfCopyOperation), you can create an instance by using this method. ThegetOperationmethod takes one string that specifies which subclassed operation type to create.The following code example demonstrates how to obtain an
IDfOperationinterface:
Visual Basic:Dim clientx As New DfClientX Dim opObj As IDfOperation Dim opImport as IDfImportOperation Set opObj = clientx.getOperation "Import" Set opImport = opObj
Java:IDfClientX clientx = new DfClientX(); IDfImportOperation opImport = (IDfImportOperation)clientx.getOperation("Import");- Specified by:
getOperationin interfaceIDfClientX- Parameters:
operationName- specifies which subclassed operation type to create. The following are the valid strings that can be passed as operation name:Name Description Checkout Checkout operation Checkin Checkin operation Import Import operation Export Export operation CancelCheckout Cancel checkout operation Copy Copy operation Delete Delete operation Move Move operation XMLTransform XSLT transformation operation Validation XML validation operation - Returns:
- a reference to a new
IDfOperationinterface as a superclass of the specified operation object type. - Throws:
DfException- if unable to instantiate the desired operation.- See Also:
-
IDfClientX.getImportOperation()IDfClientX.getCheckinOperation()IDfClientX.getExportOperation()IDfClientX.getCheckoutOperation()IDfClientX.getCancelCheckoutOperation()IDfClientX.getCopyOperation()IDfClientX.getDeleteOperation()IDfClientX.getMoveOperation()IDfClientX.getXMLTransformOperation()IDfClientX.getValidationOperation()
-
getFile
Description copied from interface:IDfClientXFactory method that constructs a newIDfFileobject that represents a file system file. DFC applications should use theIDfFileinterface rather than thejava.io.Fileclass when manipulating file system files.The following code example demonstrates how to obtain an
IDfFileinterface:
Java:IDfClientX clientx = new DfClientX(); IDfFile theFile = clientx.getFile( "c:/dfctest.doc" );
In Java, remember to use either a single forward slash "/" or a double backslash "\\" for the path separator. The forward slash is preferred.
Visual Basic:Dim clientx As New DfClientX Dim theFile As IDfFile Set theFile = clientx.getFile("c:\dfctest.doc")- Specified by:
getFilein interfaceIDfClientX- Parameters:
filePath- full path to the file.- Returns:
- an
IDfFileinterface to the file. - Throws:
DfException- if the file path is equal tonull.
-
getFormatRecognizer
public IDfFormatRecognizer getFormatRecognizer(IDfSession session, String filePath, String suggestedFormat) throws DfException Description copied from interface:IDfClientXFactory method that constructs a newIDfFormatRecognizerobject that is used to suggest what Docbase formats might be appropriate for the specified file. TheIDfFormatRecognizercan be used to obtain a list of all possible format choices for a given file on disk (from most likely, to least likely).The following code example demonstrates how to obtain an
IDfFormatRecognizerinterface, then loop through all suggested file formats for a given file:
Visual Basic:Dim clientx As New DfClientX Dim formatRec As IDfFormatRecognizer Dim formatList As IDfList Set theFile = clientx.getFormatRecognizer(sess, "c:/dfctest.txt", "crtext") Set formatList = formatRec.getSuggestedFileFormats For i = 0 To (formatList.getCount - 1) Debug.Print formatList.getString(i) Next i
- Specified by:
getFormatRecognizerin interfaceIDfClientX- Parameters:
session- an interface to a Documentum server session.filePath- the full path to a file on disk.suggestedFormat- the users suggested format for the given file; typically the existing object format. This parameter can be null.- Returns:
- an
IDfFormatRecognizeran interface to a files likely formats. - Throws:
DfException- if the file path is equal to null.
-
getMacFormatRecognizer
public IDfFormatRecognizer getMacFormatRecognizer(IDfSession session, String dataForkPath, String resForkPath, String suggestedFormat) throws DfException Description copied from interface:IDfClientXFactory method that constructs a newIDfFormatRecognizerobject that is used to suggest what Docbase formats might be appropriate based on both the data and resource forks of a Macintosh file.- Specified by:
getMacFormatRecognizerin interfaceIDfClientX- Parameters:
session- an interface to a Documentum server session.dataForkPath- the full path to a data fork fileresForkPath- the full path to a resource fork filesuggestedFormat- the users suggested format for the given file; typically the existing object format. This parameter can be null.- Returns:
- an
IDfFormatRecognizeran interface to the file's likely formats. - Throws:
DfException
-
getClientRegistry
Description copied from interface:IDfClientXFactory method that constructs a newIDfClientRegistryobject that provides access to the Docbase object information stored on the local system. DFC applications use theIDfClientRegistryinterface when they need to store information in the client registry for such actions as checking out an object, viewing and object, or for obtaining client configuration details.The following code examples demonstrate how to obtain an
IDfClientRegistryinterface:
Java:IDfClientX clientx = new DfClientX(); IDfClientRegistry clientReg = clientx.getClientRegistry(); if( clientReg.getExportDirectory().equalsIgnoreCase( "f:\\Documentum\\Export" ) ) { // do something here... }
Visual Basic:Dim clientx As New DfClientX Dim clientReg As IDfClientRegistry Set clientReg = clientx.getClientRegistry If clientReg.getExportDirectory = "f:\Documentum\Export" Then ' do something here... End IF
- Specified by:
getClientRegistryin interfaceIDfClientX- Returns:
- an
IDfClientRegistryinterface to the client registry. - Throws:
DfException- if unable to access the client registry.
-
getDFCVersion
Description copied from interface:IDfClientXReturns the current DFC version string.- Specified by:
getDFCVersionin interfaceIDfClientX- Returns:
- a String containing the DFC version string, such as
"4.2.13.283"if successful, otherwise,"Unknown".
-
getLocalClient32
Description copied from interface:IDfClientXReturns a DFC local client object that will call into DMCL32.dll for backward compatibility with pre-4.0 Documentum servers.This method call will precede the calls to connect to the Documentum server (
IDfClient.newSession(), IDfClient.getSharedSession()).The following code example demonstrates how to obtain an
IDfClientinterface:Dim clientx As New DfClientX Dim client As IDfClient Dim sess As IDfSession Set client = clientx.getLocalClient32 ' Login details are then setup here... ' Then a session is established with the Documentum server... Set sess = client.newSession("docbaseName", loginInfoObj)- Specified by:
getLocalClient32in interfaceIDfClientX- Throws:
DfException- if we cannot load or initialize DMCL.
-
setTraceTime
public void setTraceTime(boolean fEnable) Description copied from interface:IDfClientXSet the DFC trace to contain timing information.- Specified by:
setTraceTimein interfaceIDfClientX
-
getTraceTime
public boolean getTraceTime()Description copied from interface:IDfClientXReturns if the current DFC trace contains timing information.- Specified by:
getTraceTimein interfaceIDfClientX- Returns:
- true if the DFC trace includes timing information,
falseif it does not.
-
setTraceThreads
public void setTraceThreads(boolean fEnable) Description copied from interface:IDfClientXSets the DFC trace to contain threading information.- Specified by:
setTraceThreadsin interfaceIDfClientX- Parameters:
fEnable-trueto enable the threading information in the trace.
-
getTraceThreads
public boolean getTraceThreads()Description copied from interface:IDfClientXReturns if the current DFC trace contains threading information.- Specified by:
getTraceThreadsin interfaceIDfClientX- Returns:
trueif threading information is included in the trace orfalseif not.
-
getVirtualDocumentNodeFromToken
public IDfVirtualDocumentNode getVirtualDocumentNodeFromToken(IDfSession session, String token) throws DfException Description copied from interface:IDfClientXReturns an interface to a node of a virtual document given a unique token that represents the node in the virtual document tree. Each node in a virtual document tree can have a unique token. The token corresponds to document node in a particular format (the format corresponds to the virtual document node's position with respect to the root).For example,
Root | |-- Child1 | | | --- Child1_1 | --- Child1_2 | --- Child2Assume Root has a chronicle id as0900123480002345, Child1 has chronicle id as0900123480003456, and the late binding for the virtual document Root node is specified as"CURRENT". Thetokenfor Child1 would be"0900123480002345_3456|CURRENT".Assume Child1_1 has a chronicle id as
0900123480003457, then thetokenfor Child1_1 would be "0900123480002345_3456_7|CURRENT".If the Root node is following assembly, then the
tokenfor Child1 would be "0900123480002345_3456|FA", and thetokenfor Child1_1 would be "0900123480002345_3456_7|FA".The following code example demonstrates how to obtain an
IDfVirtualDocumentNodeinterface where late binding is specified as"CURRENT", and the desired node is the first child in a virtual document tree:Dim clientx As New DfClientX Dim vDocNode As IDfVirtualDocumentNode Set vDocNode = clientx.getVirtualDocumentNodeFromToken( sess, "0900123480002345_3456|CURRENT")- Specified by:
getVirtualDocumentNodeFromTokenin interfaceIDfClientX- Parameters:
session- an interface to a DFC session.token- a string representing a node in a virtual document tree.- Returns:
- an
IDfVirtualDocumentNodeinterface to the desired node. - Throws:
DfException- if the node is not available (tokenis malformed).
-
ByteArrayInputStreamToString
Description copied from interface:IDfClientXConverts a JavaByteArrayInputStreamobject into a String. Used to convert the results ofIDfSysObject.getContent()into a string.- Specified by:
ByteArrayInputStreamToStringin interfaceIDfClientX- Parameters:
bais- a JavaByteArrayInputStreamobject.- Returns:
- a
Stringextracted from the JavaByteArrayInputStreamobject
-
StringToByteArrayOutputStream
Description copied from interface:IDfClientXConverts a String into a JavaByteArrayOutputStreamobject. Used to callIDfSysObject.setContent(java.io.ByteArrayOutputStream).- Specified by:
StringToByteArrayOutputStreamin interfaceIDfClientX- Parameters:
s- the string to convert into a JavaByteArrayOutputStreamobject.- Returns:
- a Java
ByteArrayOutputStreamobject
-
getXMLUtils
Description copied from interface:IDfClientXFactory method that constructs a newIDfXMLUtilsobject that provides methods for XML related functions, likegetApplicationByDTD, getObjectIdFromDRL , isXML, isHTML,and so on.- Specified by:
getXMLUtilsin interfaceIDfClientX- Returns:
- an
IDfXMLUtilsinterface
-
getImportOperation
Description copied from interface:IDfClientXFactory method that constructs a newIDfImportOperationobject for importing one or more files into the repository.- Specified by:
getImportOperationin interfaceIDfClientX- Returns:
- A new
IDfImportOperationobject. - Throws:
DfException- if unable to instantiate the desired operation- See Also:
-
getCheckinOperation
Description copied from interface:IDfClientXFactory method that constructs a newIDfCheckinOperationobject for checking in one or more checked out repository objects.- Specified by:
getCheckinOperationin interfaceIDfClientX- Returns:
- a new
IDfCheckinOperationobject. - Throws:
DfException- if unable to instantiate the desired operation- See Also:
-
getExportOperation
Description copied from interface:IDfClientXFactory method that constructs a newIDfExportOperationobject for exporting one or more repository objects to the file system.- Specified by:
getExportOperationin interfaceIDfClientX- Returns:
- a new
IDfExportOperationobject. - Throws:
DfException- if unable to instantiate the desired operation- See Also:
-
getPredictiveCachingOperation
Description copied from interface:IDfClientXFactory method that constructs a newIDfPredictiveCachingOperationobject for predictive content caching.- Specified by:
getPredictiveCachingOperationin interfaceIDfClientX- Returns:
- a new
IDfPredictiveCachingOperationobject. - Throws:
DfException- if unable to instantiate the desired operation- See Also:
-
getCheckoutOperation
Description copied from interface:IDfClientXFactory method that constructs a newIDfCheckoutOperationobject for checking in one or more repository objects previously checked out.- Specified by:
getCheckoutOperationin interfaceIDfClientX- Returns:
- a new
IDfCheckoutOperationobject. - Throws:
DfException- if unable to instantiate the desired operation- See Also:
-
getCancelCheckoutOperation
Description copied from interface:IDfClientXFactory method that constructs a newIDfCancelCheckoutobject.- Specified by:
getCancelCheckoutOperationin interfaceIDfClientX- Returns:
- a new
IDfCancelCheckoutobject. - Throws:
DfException- if unable to instantiate the desired operation- See Also:
-
getCopyOperation
Description copied from interface:IDfClientXFactory method that constructs a newIDfCopyOperationobject.- Specified by:
getCopyOperationin interfaceIDfClientX- Returns:
- a new
IDfCopyOperationobject. - Throws:
DfException- if unable to instantiate the desired operation- See Also:
-
getDeleteOperation
Description copied from interface:IDfClientXFactory method that constructs a newIDfDeleteOperationobject.- Specified by:
getDeleteOperationin interfaceIDfClientX- Returns:
- a new
IDfDeleteOperationobject. - Throws:
DfException- if unable to instantiate the desired operation- See Also:
-
getMoveOperation
Description copied from interface:IDfClientXFactory method that constructs a newIDfMoveOperationobject.- Specified by:
getMoveOperationin interfaceIDfClientX- Returns:
- a new
IDfMoveOperationobject. - Throws:
DfException- if unable to instantiate the desired operation- See Also:
-
getXMLTransformOperation
Description copied from interface:IDfClientXFactory method that constructs a newIDfTransformOperationobject for using XSLT to transform one or more XML documents into another form, such as HTML, PDF, etc.- Specified by:
getXMLTransformOperationin interfaceIDfClientX- Returns:
- a new
IDfXMLTransformOperationobject. - Throws:
DfException- if unable to instantiate the desired operation- See Also:
-
getValidationOperation
Description copied from interface:IDfClientXFactory method that constructs a newIDfValidationOperationobject.- Specified by:
getValidationOperationin interfaceIDfClientX- Returns:
- a new
IDfValidationOperationobject. - Throws:
DfException- if unable to instantiate the desired operation- See Also:
-
getContentPackageFactory
public com.documentum.operations.contentpackage.IDfContentPackageFactory getContentPackageFactory()Description copied from interface:IDfClientXFactory method that returns a handle toIDfContentPackageFactoryobject.- Specified by:
getContentPackageFactoryin interfaceIDfClientX
-
getTracer
- Specified by:
getTracerin interfaceIDfClientX
-
getLogger
- Specified by:
getLoggerin interfaceIDfClientX
-
getXMLDocType
Description copied from interface:IDfClientXFactory method that contructs a newIDfXMLDocTypeobject.- Specified by:
getXMLDocTypein interfaceIDfClientX- Returns:
- a new
IDfXMLDocTypeobject. - See Also:
-
getPermit
Description copied from interface:IDfClientXFactory method that contructs a newIDfPermitobject.- Specified by:
getPermitin interfaceIDfClientX- Returns:
- a new
IDfPermitobject. - See Also:
-
getDocbrokerClient
Description copied from interface:IDfClientXFactory method that contructs a newIDfDocbrokerClientinstance.- Specified by:
getDocbrokerClientin interfaceIDfClientX- Throws:
DfException- See Also:
-
getAcsTransferPreferences
Description copied from interface:IDfClientXFactory method that constructs a newIDfAcsTransferPreferencesinstance.- Specified by:
getAcsTransferPreferencesin interfaceIDfClientX- Returns:
- IDfAcsTransferPreferences object
-
getAcsClient
Description copied from interface:IDfClientXReturns anIDfAcsClientobject.- Specified by:
getAcsClientin interfaceIDfClientX- Returns:
IDfAcsClientobject
-
getXQueryTargets
public com.documentum.xml.xquery.IDfXQueryTargets getXQueryTargets(int targetCategory) throws DfException Description copied from interface:IDfClientXFactory method that constructs a newIDfXQueryTargetsobject.- Specified by:
getXQueryTargetsin interfaceIDfClientX- Parameters:
targetCategory- - must be either IDfXQueryTargets.DF_XMLSTORE or IDfXQueryTargets.DF_FULLTEXT- Returns:
- a new
IDfXQueryTargetsobject - Throws:
DfException
-