Interface IDfSysObject
- All Superinterfaces:
IDfPersistentObject
,IDfTypedObject
- All Known Subinterfaces:
IDfAcsConfig
,IDfActivity
,IDfBocsConfig
,IDfContentTransferConfig
,IDfDmsConfig
,IDfDocument
,IDfFolder
,IDfLocation
,IDfMethodObject
,IDfMountPoint
,IDfNote
,IDfPlugin
,IDfPolicy
,IDfProcess
,IDfRetainer
,IDfRouter
,IDfSearchResults
,IDfSmartList
,IDfSysObjectStream
,IDfValidationDescriptor
-
Field Summary
Fields inherited from interface com.documentum.fc.client.IDfPersistentObject
CURRENCY_CHECK_ALWAYS, CURRENCY_CHECK_FIRST_ACCESS, CURRENCY_CHECK_NEVER, CURRENCY_CHECK_ONCE_PER_SCOPE
-
Method Summary
Modifier and TypeMethodDescriptionaddDigitalSignature
(String userName, String reason) Create an audit trail entry that records the signing of a DfSysObject by a user.addESignature
(String userName, String password, String signatureJustification, String formatToSign, String hashAlgorithm, String preSignatureHash, String signatureMethodName, String applicationProperties, String passThroughArgument1, String passThroughArgument2) Electronically sign a sysobject.void
Adds an annotation (the current IDfSysObject) to the target object.addReference
(IDfId folderId, String bindingCondition, String bindingLabel) Add a reference to the object in another folder.void
addRendition
(String fileName, String formatName) Adds a new rendition to the object.void
addRenditionEx
(String fileName, String formatName, int pageNumber, String storageName, boolean atomic) This is the extended method for adding a new rendition to the object..void
addRenditionEx2
(String fileName, String formatName, int pageNumber, String pageModifier, String storageName, boolean atomic, boolean keep, boolean batch) This is the extended method for adding a new rendition to the object..void
addRenditionEx3
(String fileName, String formatName, int pageNumber, String pageModifier, String storageName, boolean atomic, boolean keep, boolean batch, String otherFileName) This is the extended method for adding a new rendition to the object..void
appendContent
(ByteArrayOutputStream content) Appends new content to an object.void
appendContentEx
(ByteArrayOutputStream content, boolean other) Appends new content to an object.void
appendFile
(String fileName) Appends new content to an object.void
appendFileEx
(String fileName, String otherFileName) Appends new content to an object.appendPart
(IDfId componentId, String versionLabel, boolean useNodeVerLabel, boolean followAssembly, int copyChild) Appends a document as the last virtual document child of the object.boolean
Returns whether this object's attributes can be modified.Creates an assembly and associates it with the object.asVirtualDocument
(String lateBindingValue, boolean followRootAssembly) Returns a virtual document representation of the object.void
attachPolicy
(IDfId policyId, String state, String scope) Attaches a business policy object to the object.void
Binds content associated with an object to another object.Creates and checks out a new version of an object.void
Removes an intention lock without saving any changes that may have been made to the locked object.void
cancelCheckoutEx
(boolean sendMail, String compoundValue, String specialValue) This is the extended method that removes an intention lock without saving any changes that may have been made to the locked object.void
cancelScheduledDemote
(IDfTime scheduleDate) This will cancel the scheduled demote of the sysobject at the date/time specifed byscheduleDate
.void
cancelScheduledPromote
(IDfTime scheduleDate) This will cancel the scheduled promote for the date/time specified in thescheduleDate
argument.void
cancelScheduledResume
(IDfTime schedule) This will cancel a scheduled resume of the sysobject for a certain date/time.void
cancelScheduledSuspend
(IDfTime scheduleDate) This method can be used to cancel a scheduled suspend of the sysobject at a date/time.boolean
Returns whether the object can be demoted from the current state.boolean
Returns whether the sysobject can be promoted from current state to the next state.boolean
Returns whether the sysobject can be resumed from an exception state.boolean
Returns whether the sysobject can suspend from its current state to the exception state.Creates a new version of this object and removes the lock from the previous version.checkinEx
(boolean keepLock, String versionLabels, String oldCompoundArchValue, String oldSpecialAppValue, String newCompoundArchValue, String newSpecialAppValue) This is the extended method for checkin.void
checkout()
Places a lock on the object.checkoutEx
(String versionLabel, String compoundArchValue, String specialAppValue) Places a lock on the object.void
This method will demote the sysobject from its current normal state to the previous normal state, or to the base state if thetoBase
parameter is set totrue
.void
Destroys all versions of the object.void
Detaches an existing business policy object from the object.void
Disassembles the assembly associated with the object.void
freeze
(boolean freezeComponents) Marks an object as unchangeable (and optionally its components), if the object is a virtual document.Returns the date the content of this object was last accessed.getAccessorApplicationPermit
(int index) Returns the application permit assigned to a user or group.int
Returns the number of users or groups for whom some level of access is defined for the object.getAccessorName
(int index) Returns the list of users and groups for whom some level of access is defined for the object.getAccessorPermit
(int index) Returns the permit levels assigned to each user or group using the computed attribute _accessor_name.int
getAccessorPermitType
(int index) Returns the permit type assigned to each user or group using the computed attribute _accessor_name.int
getAccessorXPermit
(int index) Returns the extended permission levels of the specified user or group using the computed attribute _accessor_name.getAccessorXPermitNames
(int index) Retrieves the extended permissions, in upper case and separated by a comma, that are assigned to each user or group.getACL()
Returns an ACL associated with the object.Returns the domain of the ACL associated with this user.Returns the name of the associated ACL.boolean
Indicates whether the values in _accessor_name and _accessor_permit have been saved to the repository using the computed attribute _acl_ref_valid.getAcsRequests
(String formatName, int pageNumber, String pageModifier, IDfAcsTransferPreferences transferPreferences) Returns anIDfEnumeration
object containing a list ofIDfAcsRequest
objects.Returns the symbolic name of the policy alias set.Returns the position of alias-binding scope specified in the associated policy object.Returns the object id of the object's parent.Returns the a_application_type attribute of the object.Returns the object id of the virtual document that was the source of the assembly associated with the object.getAuthors
(int index) Returns the authors attribute at the specified index.int
Returns the number of values the authors attribute has.int
Returns the number of branches on the version tree that contains the object.Returns the object id of the cabinet that is the object's primary storage location.Returns the object id of the root object in the version tree.getCollectionForContent
(String format, int pageNumber) Returns a collection containing the object's content in the repository.getCollectionForContentEx2
(String format, int pageNumber, String pageModifier) Returns a collection containing the object's content in the repository.getCollectionForContentEx3
(String format, int pageNumber, String pageModifier, boolean other) Returns a collection containing the object's content in the repository.getCollectionForContentEx4
(String format, int pageNumber, String pageModifier, boolean other) Returns a collection containing the object's content in the repository.getComponentId
(int index) Returns the chronicle id of the component documents that make up the virtual document using the computed attribute _componentID.int
Returns the number of chronicle IDs of the component documents that make up the virtual document using the computed attribute _componentID.Used by the virtual document manager to determine if the object can be changed.getContainId
(int index) Returns the object id of a containment object that link the component document to its containing virtual document using the computed attribute _containID.int
Returns the number of containment objects IDs that link the component document to its containing virtual document using the computed attribute _containID.Copies this object's content from the Documentum server into aByteArrayInputStream
object.getContentAvailability
(String formatName, int pageNumber, String pageModifier, String networkLocationIdentifier) Returns content availability settings.getContentEx
(String format, int pageNumber) Copies this object's content in the repository into aByteArrayInputStream
.getContentEx2
(String format, int pageNumber, String pageModifier) Copies this object's content in the repository into aByteArrayInputStream
.getContentEx3
(String format, int pageNumber, String pageModifier, boolean other) Copies this object's content in the repository into aByteArrayInputStream
.Returns the object id of the content object for an object that has only one content.long
Returns the number of bytes in the content.long
getContentSize
(int page, String formatName, String pageModifier) Return the content size according to the page, format and pageModifier of the contentint
getContentState
(int index) Returns the state of the content for a given sysobject using the computed attribute _content_state.int
Returns the number of states of a content for the sysobject using the computed attribute _content_state.Returns the file format of the object's content.Returns the r_creation_date attribute of the object.Returns the name of the creator.int
Returns the current state.Returns the name of the current state.Returns whether the object has any direct descendants (versions derived directly from this object).getDoubleContentAttr
(String name, String formatName, int page, String pageModifier) Return a numeric content attribute.Returns the name of the exception state associated with the current state, if any exist.Retrieves a content file from the Documentum server.This is the extended method for retreiving a content file from the repository.getFileEx2
(String fileName, String formatName, int pageNumber, String pageModifier, boolean other) This is the extended method for retreiving a content file from the repository.getFolderId
(int index) Returns the object id of the folder linked to this object at the given index.int
Returns the number of folders linked to the object.Returns the format of the object.int
Returns a count of the number of frozen assemblies that contain the object.boolean
Returns whether the document is marked for full-text indexing.Returns the group name to which this object belongs.int
Returns the object-level permission assigned to the group for this object.boolean
Returns whether any users have registered to receive events for the object.boolean
Returns whether this object is the CURRENT object in the version tree.boolean
Returns whether the document's assembly is frozen.Returns the implicit version label from r_version_label.getKeywords
(int index) Returns the keywords attribute at the specified index.int
Returns the number of keywords for the object.boolean
Indicates whether this version is the most recent version of the object on a particular branch in the version tree.int
Returns the number of objects linked to the object.int
Returns the current maximum order number assigned to a component.getLocations
(String attrNames) Runs a query to find all the places this object is used and returns the query result as a collection.Returns the date this object was locked.Returns the name of the client machine on which the object was locked.Returns the name of the user who locked the object.Returns the comment specified by the user.Returns the repository id of the repository that owns the object using the computed attribute _master_docbase.Returns the name of the user who made the last modification.Returns the r_modify_date attribute of the object.Returns the name of the next state.Returns the object_name attribute of the object.long
getOtherFileSize
(int page, String formatName, String pageModifier) Return the other file (resource fork for mac os) size according to the page, format and pageModifier of the contentReturns the name of this object's owner.int
Returns the object-level permission assigned to the owner of the object.int
Returns the number of pages in the primary content.getPath
(int pageNumber) Retrieves the content location for an external store object.Retrieves the content location for an external store object.getPathEx2
(String formatName, int pageNumber, String pageModifier, boolean other) Retrieves the content location for an external store object.Returns a list ofDfPermit
objects representing all the permissions specified in the ACL for the sysobject.int
Returns an integer number that corresponds to the access permission level that the current user has for the object.int
getPermitEx
(String accessorName) Returns an integer number that corresponds to the access permission level that the specified user or group has for the object.Returns the object id of attached business policy object.Returns the name of attached business policy object.Returns the name of the previous state.int
Returns the number of folder references made by the object.Returns the object id of the remote object.getRenditions
(String attrNames) Runs a query against the dmr_content table to return values for all the page 0 content for this object.Returns the default version label used to resolve late-bound nodes of a virtual document.int
Returns the resume state.Returns the resume state name.int
Return the number of retainers on this object.getRetainerId
(int index) Return the id of the requested retainer.Returns the retain until date for this object.Used internally.getRouters
(String additionalAttributes, String orderBy) Returns a collection of routers the document participates in.Reserved for use by Documentum products.Returns the a_status attribute of the object.Returns the default storage area for content files associated with the object.getStringContentAttr
(String name, String formatName, int page, String pageModifier) Return a string content attribute.Returns the subject attribute of the object.getTimeContentAttr
(String name, String formatName, int page, String pageModifier) Return a time content attribute.getTitle()
Returns the title attribute of the object.Returns the r_object_type attribute of the object.getVdmPath
(IDfId rootId, boolean shortestPath, String versionList) Returns the path or paths through a virtual document that lead to a particular component.getVdmPathDQL
(IDfId rootId, boolean shortestPath, String parentType, String bindingLabel, String nodeSortBy) Returns the path or paths through a virtual document that lead to a particular component.getVersionLabel
(int index) Returns the version label at the specified index.int
Returns the number of version labels.Returns an IDfVersionLabels object associated with this sysobject.This will extract all the version labels associated with this object and return the results as an IDfVersionPolicy interface.getVersions
(String attrNames) Runs a query to find all the versions of the object and returns the query results as a collection.getWorkflows
(String additionalAttributes, String orderBy) Returns a collection of workflows the document currently participates in.int
Returns the object-level permission assigned to the world for the object.int
getXPermit
(String accessorName) Returns the extended permissions, in integer form, for a specified user or group using the computed attribute _xpermit.Returns a list of extended permissions, separated by a comma, and supported by the server, using the computed attribute _xpermit_list.getXPermitNames
(String accessorName) Returns the extended permissions of a specified user or group, in string form, in upper case, and separated by a comma.void
Creates an access control entry in this object, assigning an access level to a specified user or group.void
grantPermit
(IDfPermit permit) Creates an access control entry in this object, assigning an access level to a specified user or group.boolean
hasPermission
(String permission, String accessorName) Returns whether there is an access control entry in this object to a specified user or group.void
insertContent
(ByteArrayOutputStream content, int pageNumber) Inserts new content into an object.void
insertContentEx
(ByteArrayOutputStream content, int pageNumber, boolean other) Inserts new content into an object.void
insertFile
(String fileName, int pageNumber) Inserts a new content file into an object.void
insertFileEx
(String fileName, int pageNumber, String otherFileName) Inserts a new content file into an object.insertPart
(IDfId componentID, String versionLabel, IDfId beforeContainmentId, double orderNo, boolean orderNoFlag, boolean useNodeVerLabel, boolean followAssembly, int copyChild) Inserts a document into the list of virtual child documents for the object.boolean
Returns the a_archive attribute of the object.boolean
Returns whether this object is checked out.boolean
isCheckedOutBy
(String userName) Returns whether this object is checked out by the specified user.boolean
isContentTransferCapabilityEnabled
(String networkLocationIdentifier, IDfContentTransferCapability capability) Returns whether content transfer capability is enabled for the objectboolean
isFrozen()
Returns whether this object was specifically frozen and is now unchangeable.boolean
isHidden()
Indicates if this object is visible to the end users.boolean
Returns whether this object can be changed.boolean
Returns the a_link_resolved attribute of the object.boolean
isPublic()
Returns whether the object is public or not.boolean
Returns whether the object is a reference object.boolean
Return whether the object is in a suspended state.boolean
Returns true if this document should be treated as a virtual document.void
Associates the object with a folder or cabinet.void
Assigns one or more symbolic version labels to an object.void
Deprecated.print
(String printer, boolean printCover, boolean saveOutput, int numCopies, int startingContentPage, int endingContentPage) Prints the object.void
Promotes the sysobject to the state specified in thestate
argument.void
prune
(boolean keepLabels) Removes unwanted versions of an object.queue
(String queueOwner, String event, int priority, boolean sendMail, IDfTime dueDate, String message) Places the object on a specified queue.void
Refreshes the reference object.void
removeContent
(int pageNumber) Deletes content from an object.void
removeNote
(IDfId annotationId) Deprecated.void
removePart
(IDfId containmentId, double orderNo, boolean orderNoFlag) Removes a virtual document child from the object.void
removeRendition
(String formatName) Deletes a rendition from the object.void
removeRenditionEx
(String formatName, int pageNumber, boolean atomic) Deletes a rendition from the object.void
removeRenditionEx2
(String formatName, int pageNumber, String pageModifier, boolean atomic) Deletes a rendition from the object.resolveAlias
(String scopeAlias) Searches an alias set for a specified alias.void
Resumes the sysobject from an exception state.void
Throws away unsaved permission changes.void
Removes all access control entries from this object for a specified user or group.void
revokePermit
(IDfPermit permit) Removes specified permit from the sysobject.saveAsNew
(boolean shareContent) Copies an object.void
saveLock()
Writes the object to the repository without creating a new version and directs the server to hold the intention lock on the saved object.void
scheduleDemote
(String state, IDfTime schedule_date) Schedules the sysobject to demote from its current normal state to the state defined in thestate
parameter.void
schedulePromote
(String state, IDfTime scheduleDate, boolean override) Schedules a sysobject to be promoted to the next state on a particular date/time specified by thescheduleDate
parameter.void
scheduleResume
(String state, IDfTime scheduleDate, boolean toBase, boolean override) Schedules to resume the sysobject from an exception state to the next state at the specified date/time.void
scheduleSuspend
(String state, IDfTime scheduleDate, boolean override) Schedule a suspend of the sysobject from its current state to the exception state at a certain date/time.void
Assigns an ACL object to the object.void
setACLDomain
(String aclDomain) Sets the domain of the ACL associated with this user.void
setACLName
(String ACLName) Sets the name of the associated ACL.void
setApplicationType
(String type) Sets the a_application_type attribute of the object.void
setArchived
(boolean archived) Sets the a_archive attribute of the object.void
setAuthors
(int index, String author) Sets the authors attribute at a specified index.void
setCompoundArchitecture
(String compoundArchitecture) Used by the virtual document manager to determine if the object can be changed.boolean
setContent
(ByteArrayOutputStream content) Sets new content to an object.boolean
setContentEx
(ByteArrayOutputStream content, String format, int pageNumber) This is the extended method for setting the content of an object.boolean
setContentEx2
(ByteArrayOutputStream content, String format, int pageNumber, boolean other) This is the extended method for setting the content of an object.void
setContentType
(String contentType) Sets the file format of the object's content.void
setDoubleContentAttribute
(String name, double value, String formatName, int page, String pageModifier) Set a numeric content attribute.void
Sets the content file of this object or replaces an existing content.void
This is the extended method for setting the content file of this object, or it replaces existing content.void
setFullText
(boolean fullText) Sets whether the document is marked for full-text indexing.void
setGroupName
(String name) Set the group name to which this object belongs.void
setGroupPermit
(int permit) Sets the object-level group permission for the object.void
setHidden
(boolean isHidden) Sets the visibility of the object for end users.void
setIsVirtualDocument
(boolean is_virtual_doc) Sets the r_is_virtual_doc attribute for the object.void
setKeywords
(int index, String keyword) Sets the keywords attribute at a specified index.void
setLinkResolved
(boolean linkResolved) Sets the a_link_resolved attribute of the object.void
setLogEntry
(String logEntry) Sets the comment specified by the user.void
setObjectName
(String objectName) Sets the object_name attribute of the object.void
setOwnerName
(String ownerName) Sets the name of the object's owner.void
setOwnerPermit
(int permit) Assigns the object-level permission to the owner of the object.void
Sets the path to a content object or replaces an existing content.void
setResolutionLabel
(String label) Sets the resolution label for the object.void
setSpecialApp
(String specialApp) Reserved for use by Documentum products.void
Sets the a_status attribute of the object.void
setStorageType
(String type) Sets the storage area for content files associated with the object.void
setStringContentAttribute
(String name, String value, String formatName, int page, String pageModifier) Set a String content attribute.void
setSubject
(String subject) Sets the subject attribute of the object.void
setTimeContentAttribute
(String name, IDfTime value, String formatName, int page, String pageModifier) Set a Date/Time content attribute.void
Sets the title attribute of the object.void
setWorldPermit
(int permit) Sets the object-level permission assigned to the world for the object.void
Suspends the sysobject from its current state to the exception state.void
unfreeze
(boolean thawComponents) Unfreezes a frozen object, and optionally if the object is a virtual document, it unfreezes the object's associated assembly.void
Removes a link between the object and a folder or cabinet.void
Removes symbolic labels from an object.void
updatePart
(IDfId containmentId, String versionLabel, double orderNumber, boolean useNodeVerLabel, boolean followAssembly, int copyChild) Modifies a child dmr_containment attribute value.void
updatePartEx
(IDfId containmentId, String versionLabel, double orderNumber, boolean useNodeVerLabel, boolean followAssembly, int copyChild, String containType, String containDesc) void
Assigns an ACL specification to the object.void
Verify the signature on an electronically signed sysobject.Methods inherited from interface com.documentum.fc.client.IDfPersistentObject
addChildRelative, addParentRelative, apiExec, apiGet, apiSet, destroy, fetch, fetchWithCaching, getAttrAssistance, getAttrAssistanceWithValues, getAttrAsstDependencies, getChildRelatives, getParentRelatives, getPartition, getType, getValidator, getVStamp, getWidgetType, isDeleted, isDirty, isInstanceOf, isNew, isReplica, lock, lockEx, registerEvent, removeChildRelative, removeParentRelative, revert, save, setPartition, signoff, unRegisterEvent, unRegisterEventEx, validateAllRules, validateAttrRules, validateAttrRulesWithValue, validateAttrRulesWithValues, validateObjRules, validateObjRulesWithValues
Methods inherited from interface com.documentum.fc.client.IDfTypedObject
appendBoolean, appendDouble, appendId, appendInt, appendString, appendTime, appendValue, dump, enumAttrs, findAttrIndex, findBoolean, findDouble, findId, findInt, findString, findTime, findValue, getAllRepeatingStrings, getAttr, getAttrCount, getAttrDataType, getBoolean, getDouble, getId, getInt, getLong, getObjectId, getObjectSession, getOriginalSession, getRepeatingBoolean, getRepeatingDouble, getRepeatingId, getRepeatingInt, getRepeatingLong, getRepeatingString, getRepeatingTime, getRepeatingValue, getSession, getSessionManager, getString, getTime, getValue, getValueAt, getValueCount, hasAttr, insertBoolean, insertDouble, insertId, insertInt, insertString, insertTime, insertValue, isAttrRepeating, isNull, remove, removeAll, setBoolean, setDouble, setId, setInt, setNull, setRepeatingBoolean, setRepeatingDouble, setRepeatingId, setRepeatingInt, setRepeatingString, setRepeatingTime, setRepeatingValue, setSessionManager, setString, setTime, setValue, truncate
-
Method Details
-
saveAsNew
Copies an object.- Parameters:
shareContent
- Determines if the content of this object is shared with the new object.- Returns:
- the object id of the new copy.
- Throws:
DfException
- if a server error occurs.
-
areAttributesModifiable
Returns whether this object's attributes can be modified.- Throws:
DfException
- if a server error occurs.
-
isImmutable
Returns whether this object can be changed. This method returns the value of the r_immutable_flag attribute of the object.- Throws:
DfException
- if a server error occurs.
-
isPublic
Returns whether the object is public or not. This method returns the value of the r_is_public attribute of the object.- Returns:
true
if the object is public.- Throws:
DfException
- if a server error occurs.
-
getObjectName
Returns the object_name attribute of the object.- Throws:
DfException
-
setObjectName
Sets the object_name attribute of the object.- Parameters:
objectName
- specifies the name of the object.- Throws:
DfException
- if a server error occurs.
-
getTypeName
Returns the r_object_type attribute of the object.- Throws:
DfException
-
getTitle
Returns the title attribute of the object.- Throws:
DfException
-
setTitle
Sets the title attribute of the object.- Parameters:
title
- specifies the title of the object- Throws:
DfException
- if a server error occurs
-
getSubject
Returns the subject attribute of the object.- Throws:
DfException
-
setSubject
Sets the subject attribute of the object.- Parameters:
subject
- specifies the subject of the object.- Throws:
DfException
- if a server error occurs.
-
getAuthorsCount
Returns the number of values the authors attribute has.- Throws:
DfException
- if a server error occurs.
-
getAuthors
Returns the authors attribute at the specified index.- Parameters:
index
- specifies the index at which the author is placed.- Throws:
DfException
- if a server error occurs.
-
setAuthors
Sets the authors attribute at a specified index.- Parameters:
index
- specifies the index at which the author is placedauthor
- specifies the author at the specified index- Throws:
DfException
- if a server error occurs.
-
getKeywordsCount
Returns the number of keywords for the object. keywords- Throws:
DfException
- if a server error occurs.
-
getKeywords
Returns the keywords attribute at the specified index.- Throws:
DfException
- if a server error occurs.
-
setKeywords
Sets the keywords attribute at a specified index.- Parameters:
index
- specifies the index at which the keyword is placed.keyword
- specifies the keyword at the specified index.- Throws:
DfException
- if a server error occurs.
-
getApplicationType
Returns the a_application_type attribute of the object.- Throws:
DfException
- if a server error occurs.
-
setApplicationType
Sets the a_application_type attribute of the object.- Parameters:
type
- specifies the application type.- Throws:
DfException
- if a server error occurs.
-
getSpecialApp
Reserved for use by Documentum products. This method returns the value of the a_special_app attribute of the object.- Throws:
DfException
- if a server error occurs.
-
setSpecialApp
Reserved for use by Documentum products. This method sets the value of the a_special_app attribute of the object.- Parameters:
specialApp
- specifies the special application information.- Throws:
DfException
- if a server error occurs.
-
isHidden
Indicates if this object is visible to the end users. This method returns the value of the a_is_hidden attribute of the object.- Throws:
DfException
- if a server error occurs.
-
setHidden
Sets the visibility of the object for end users. This method sets the a_is_hidden attribute of the object.- Parameters:
isHidden
- specifies the visibility of the object for end users.- Throws:
DfException
- if a server error occurs.
-
getStatus
Returns the a_status attribute of the object.- Throws:
DfException
- if a server error occurs.
-
setStatus
Sets the a_status attribute of the object.- Parameters:
status
- specifies status.- Throws:
DfException
- if a server error occurs.
-
getCreationDate
Returns the r_creation_date attribute of the object.- Throws:
DfException
- if a server error occurs.
-
getAccessDate
Returns the date the content of this object was last accessed. This method returns the value of the r_access_date attribute of the object.- Throws:
DfException
- if a server error occurs.
-
getModifyDate
Returns the r_modify_date attribute of the object.- Throws:
DfException
- if a server error occurs.
-
getModifier
Returns the name of the user who made the last modification. This method returns the value of the r_modifier attribute of the object.- Throws:
DfException
- if a server error occurs.
-
getRetentionDate
Used internally. This method returns the value of the a_retention_date attribute of the object.- Throws:
DfException
- if a server error occurs.
-
isArchived
Returns the a_archive attribute of the object.- Returns:
- the a_archive attribute of this object
- Throws:
DfException
- if a server error occurs.
-
setArchived
Sets the a_archive attribute of the object.- Parameters:
archived
- specifies the object has been archived.- Throws:
DfException
- if a server error occurs.
-
getFullText
Returns whether the document is marked for full-text indexing. This method returns the value of the a_full_text attribute of the object.- Throws:
DfException
- if a server error occurs.
-
setFullText
Sets whether the document is marked for full-text indexing. This method sets the value of the a_full_text attribute of the object.- Parameters:
fullText
- specifies whether the document is marked for full-text indexing.- Throws:
DfException
- if a server error occurs.
-
getLogEntry
Returns the comment specified by the user. This method returns the value of the log_entry attribute of the object.- Throws:
DfException
- if a server error occurs.
-
setLogEntry
Sets the comment specified by the user. This method sets the value of the log_entry attribute of the object.- Parameters:
logEntry
- specifies the user-defined comment- Throws:
DfException
- if a server error occurs.
-
saveLock
Writes the object to the repository without creating a new version and directs the server to hold the intention lock on the saved object.- Throws:
DfException
- if a server error occurs.
-
getLockOwner
Returns the name of the user who locked the object. This method returns the value of the r_lock_owner attribute of the object.- Throws:
DfException
- if a server error occurs.
-
getLockDate
Returns the date this object was locked. This method returns the value of the r_lock_date attribute of the object.- Throws:
DfException
- if a server error occurs.
-
getLockMachine
Returns the name of the client machine on which the object was locked. This method returns the value of the r_lock_machine attribute of the object.- Throws:
DfException
- if a server error occurs.
-
getAntecedentId
Returns the object id of the object's parent. This method returns the value of the i_antecedent_id attribute of the object.- Throws:
DfException
- if a server error occurs.
-
getChronicleId
Returns the object id of the root object in the version tree. This method returns the value of the i_chronicle_id attribute of the object.- Throws:
DfException
- if a server error occurs.
-
getVersions
Runs a query to find all the versions of the object and returns the query results as a collection. TheattrNames
parameter is used to specify the "select" portion of the query. IfattrNames
isnull
, the following default attributes are used: r_version_label, r_modify_date, r_modifier, log_entry, object_name, r_object_type, a_content_type, r_lock_owner, r_link_cnt, r_object_id.
Note: For reasons of backward compatibility, the executed query contains the following clause: "ORDER BY r_modify_date desc, r_object_id". If the caller of this method overrides the default set of attributes by passing a non-null
value for attrNames, the query may fail if:
1) the passed-in set of attributes does not include both r_modify_date and r_object_id AND
2) thedistinct_query_results
flag has been set to true in the server.ini file of the underlying repository. (See the Content Server Administrator's Guide for more details on the server.ini.)
The default value for thedistinct_query_results
flag is false, so this is not normally a problem. However, if you are overriding the default set of attributes, it is recommended that you include the attributes r_modify_date and r_object_id so that the code is portable across docbases regardless of how they are configured.- Parameters:
attrNames
- specifies a comma-delimited list of the desired attributes. If set tonull
, the query uses a default set of attributes.- Returns:
- a collection of DfTypedObject interfaces for all the versions of the object.
- Throws:
DfException
- ifattrNames
is invalid.
-
getVersionPolicy
This will extract all the version labels associated with this object and return the results as an IDfVersionPolicy interface. The returned IDfVersionPolicy interface will contain the complete version tree for the sysobject.- Returns:
- an IDfVersionPolicy interface containing version information for the object.
- Throws:
DfException
- if a server error occurs.
-
getLatestFlag
Indicates whether this version is the most recent version of the object on a particular branch in the version tree. This method returns the value of the i_latest_flag attribute of the object.- Throws:
DfException
- if a server error occurs.
-
getImplicitVersionLabel
Returns the implicit version label from r_version_label. For example, if the version labels for an object are "1.2,CURRENT", the string "1.2" will be returned.- Throws:
DfException
- if a server error occurs
-
mark
Assigns one or more symbolic version labels to an object.Before you can use the
mark
method, you mustcheckout
the specified object. After you execute themark
method, you mustcheckin
orsave
the object to keep the new label or labels.Note: If the object is a virtual document, you must use
checkin
the the object; you cannot usesave
to make the changes effective.The following code example demonstrates how to create a document and assign a symbolic version label. Assuming the prior version label is "1.0,CURRENT", the code below will set it to "1.1,APPROVED,CURRENT":
IDfSysObject sysObj = (IDfSysObject)sess.getObject(new DfId("0900d5bb8001fd49")); if (!sysObj.isCheckedOut()) { sysObj.checkout(); } sysObj.mark("APPROVED"); sysObj.checkin (false, "");
- Parameters:
versionLabels
- defines the label that you want to assign to the object. You can specify one implicit label and/or one or more symbolic labels.- Throws:
DfException
- if a server error occurs.- See Also:
-
unmark
Removes symbolic labels from an object.- Parameters:
versionLabels
- Defines the label that you want to remove from the object. You can specify one implicit label and/or one or more symbolic labels.- Throws:
DfException
- if a server error occurs.
-
getVersionLabels
Returns an IDfVersionLabels object associated with this sysobject.- Returns:
- an IDfVersionLabels object.
- Throws:
DfException
- if failed to create a new DfVersionLabels object or if a server error occurs.
-
getVersionLabelCount
Returns the number of version labels. For example, the version label "1.0,CURRENT" will yield a count of 2.- Returns:
- the number of version labels
- Throws:
DfException
- if a server error occurs
-
getVersionLabel
Returns the version label at the specified index. This method returns the value of the r_version_label attribute of the object at the given index.- Throws:
DfException
- if a server error occurs.
-
branch
Creates and checks out a new version of an object. Performs DMCL "branch".- Parameters:
versionLabel
- specifies the object version from which you want to branch.- Returns:
- the object id of the new version of the object.
- Throws:
DfException
- if a server error occurs.
-
getBranchCount
Returns the number of branches on the version tree that contains the object. This method returns the value of the i_branch_cnt attribute of the object.- Throws:
DfException
- if a server error occurs.
-
getDirectDescendant
Returns whether the object has any direct descendants (versions derived directly from this object). The default is false. This method returns the value of the i_direct_dsc attribute of the object.- Returns:
- returns a "T" if the object has direct descendants, "F" otherwise.
- Throws:
DfException
- if a server error occurs.
-
checkout
Places a lock on the object.The user executing the method must have at least Version permission on the object being checked out. Executing
checkout
sets the r_lock_machine attribute for the checked out object. This attribute records the machine name of the client machine on which the user is working.The following code example demonstrates how to checkout an object and copy the file from the Documentum server to the local drive (current working directory):
IDfSysObject sysObj = (IDfSysObject)sess.getObject(new DfId("0900d5bb8001fd49")); if (!sysObj.isCheckedOut()) { sysObj.checkout(); sysObj.getFile(sysObj.getObjectName()); }
- Throws:
DfException
- if a server error occurs.- See Also:
-
checkoutEx
IDfId checkoutEx(String versionLabel, String compoundArchValue, String specialAppValue) throws DfException Places a lock on the object. This is the extended checkout method.The user executing the method must have at least Version permission on the object being checked out.
The methods checks out the version specified in the versionLabel argument. If that version is not found, the method fails. The compoundArchValue sets the a_compound_architecture attribute. Setting the attribute to a value other than an empty string affects the behavior of the Virtual Document Manager when this object is opened in VDM. If the attribute is set to any value other than an empty string, VDM assumes that the object is readonly and will not allow structural changes on the object.
The specialAppvalue argument sets the a_special_app attribute of the object. Setting the attribute to a value other than an empty string affects how Content Server and some EMC Documentum clients perceive the object. If there is any value other than an empty string in a_special_app, the system assumes that another application currently has control of the object.
- Parameters:
versionLabel
- Identifies the version of the object. This can be an implicit or symbolic version label.compoundArchValue
- Sets the a_compound_architecture attribute of the object. The attribute is a string attribute with a length of 16.specialAppValue
- Sets the a_special_app attribute of the object. The attribute is a string attribute with a length of 32.- Returns:
- returns the id of the specified object.
- Throws:
DfException
- if a server error occurs.
-
cancelCheckout
Removes an intention lock without saving any changes that may have been made to the locked object.Executing
cancelCheckout
clears the object's r_lock_machine attribute (when an object is checked out, this attribute is set to the name of the client machine on which the user who locked the object was working). Performs a DMCL "unlock".The following code example demonstrates how to cancel a checked out object:
IDfSysObject sysObj = (IDfSysObject)sess.getObject(new DfId("0900d5bb8001fd49")); if (sysObj.isCheckedOut()) { sysObj.cancelCheckout(); }
- Throws:
DfException
- if a server error occurs.- See Also:
-
cancelCheckoutEx
void cancelCheckoutEx(boolean sendMail, String compoundValue, String specialValue) throws DfException This is the extended method that removes an intention lock without saving any changes that may have been made to the locked object.- Parameters:
sendMail
- Directs the server to send electronic mail to the lock owner, notifying the user that the lock is being removed.compoundValue
- Sets the a_compound_architecture attribute of the object.specialValue
- Sets the a_special_app attribute of the object.- Throws:
DfException
- if a server error occurs.
-
checkin
Creates a new version of this object and removes the lock from the previous version.To use the
checkin
method, the following conditions must be met:- The object must have been retrieved from the repository with a checkout method.
- The user must have at least Version permission on the object.
- The user must have at least Write permission on the cabinet or folder in which the object is stored if the repository is running with folder security.
The
checkin
method unlocks an object and saves any changes you may have made to either its attributes or its content. (Note that to make changes to the content, you must issue explicit methods, such asgetFile
andsetFile
, to get and set the content after youcheckout
the object and before you issue thecheckin
).Executing this method clears the object's r_lock_machine, r_lock_owner, and r_lock_date attributes and sets the a_archive attribute to FALSE. Additionally, if the object is a policy object, the method sets the r_definition_state to DRAFT for the new version and clones the following attributes:
- entry_criteria_id
- user_criteria_id
- action_object_id
- user_action_id
- type_override_id
The following code example demonstrates how to checkin an object using the default version labels, and to not retain a lock on the newly created version:
IDfSysObject sysObj = (IDfSysObject)sess.getObject(new DfId("0900d5bb8001fd49")); if (sysObj.isCheckedOut()) { sysObj.setFile(sysObj.getObjectName()); IDfId newSysObjId = sysObj.checkin(false, ""); }
- Parameters:
keepLock
- set totrue
to place a lock on the newly created version.versionLabels
- defines the version label for the new version. You can specify more than one label. If you do not define a label, the server automatically gives the new version an implicit version label and the symbolic label "CURRENT".- Returns:
- the object id of the new version of the object.
- Throws:
DfException
- if a server error occurs.- See Also:
-
checkinEx
IDfId checkinEx(boolean keepLock, String versionLabels, String oldCompoundArchValue, String oldSpecialAppValue, String newCompoundArchValue, String newSpecialAppValue) throws DfException This is the extended method for checkin.Note: This method differs from
checkin
by providing arguments to set application-specific attributes. To use thecheckinEx
method, the following conditions must be met:- The object must have been retrieved from the repository with a checkout method.
- The user must have at least Version permission on the object.
- The user must have at least Write permission on the cabinet or folder in which the object is stored if the repository is running with folder security.
The
checkin
method unlocks an object and saves any changes you may have made to either its attributes or its content. (Note that to make changes to the content, you must issue explicit methods, such asgetFile
andsetFile
, to get and set the content after youcheckout
the object and before you issue thecheckinEx
).Executing this method clears the object's r_lock_machine, r_lock_owner, and r_lock_date attributes and sets the a_archive attribute to FALSE. Additionally, if the object is a policy object, the method sets the r_definition_state to DRAFT for the new version and clones the following attributes:
- entry_criteria_id
- user_criteria_id
- action_object_id
- user_action_id
- type_override_id
The oldCompoundArchValue and newCompoundArchValue arguments allow you to set the a_compound_architecture attribute of the object you are checking in and new version of the object. Setting the attribute to a value other than an empty string affects the behavior of the Virtual Document Manager when the object is opened in the VDM. If the attribute is set to any value other than an empty string, VDM assumes that the object is readonly and will not allow structural changes on the object.
The oldSpecialAppvalue and newSpecialAppvalue arguments set the a_special_app attribute of the object you are checking in and the new version of the object. Setting the attribute to a value other than an empty string affects how Content Server and some EMC Documentum clients perceive the object. If there is any value other than an empty string in a_special_app, the system assumes that another application currently has control of the object.
- Parameters:
keepLock
- Determines whether a lock is placed on the newly created version.versionLabels
- Defines the version label for the new version. You can specify more than one label. If you do not define a label, the server automatically gives the new version an implicit version label and the symbolic label CURRENT.oldCompoundArchValue
- Sets the a_compound_architecture attribute of the checked-out object.oldSpecialAppValue
- Sets the a_special_app attribute of the checked-out object.newCompoundArchValue
- Sets the a_compound_architecture attribute of the new version created by the check in.newSpecialAppValue
- Sets the a_special_app attribute of the new version created by the checkin.- Returns:
- returns the id of the new version.
- Throws:
DfException
- if a server error occurs.
-
isCheckedOut
Returns whether this object is checked out.- Returns:
true
if this object is checked out.- Throws:
DfException
- if a server error occurs.
-
isCheckedOutBy
Returns whether this object is checked out by the specified user. If the specified user i.e.userName
is null or an empty string, the user name from the current session is used.- Parameters:
userName
- identifies the name the user.- Returns:
true
if this object is checked out by the specified user.- Throws:
DfException
- if a server error occurs.
-
prune
Removes unwanted versions of an object.- Throws:
DfException
- if a server error occurs.
-
destroyAllVersions
Destroys all versions of the object. You must have DELETE permission for the original version of the object.- Throws:
DfException
- if a server error occurs.
-
getReferenceCount
Returns the number of folder references made by the object. This method returns the value of the i_reference_cnt attribute of the object.- Throws:
DfException
- if a server error occurs.
-
getHasFolder
Returns whether this object is the CURRENT object in the version tree. This method returns the value of the i_has_folder attribute of the object.- Throws:
DfException
- if a server error occurs.
-
getFolderIdCount
Returns the number of folders linked to the object.- Returns:
- the number of folders linked to the object.
- Throws:
DfException
- if a server error occurs.
-
getFolderId
Returns the object id of the folder linked to this object at the given index. This method returns the value of the i_folder_id attribute of the object given the specified index.- Throws:
DfException
- if a server error occurs.
-
getCabinetId
Returns the object id of the cabinet that is the object's primary storage location. This method returns the value of the i_cabinet_id attribute of the object.- Throws:
DfException
- if a server error occurs.
-
link
Associates the object with a folder or cabinet.The first execution of
link
for an object defines the object's primary link, the place where the object is stored in the repository. Subsequent executions link the object to other folders or cabinets. These are called secondary links.Executing
link
has the following permission requirements:- To create a primary link, the user must have at least Write permission on the object and Change Location permission on the object.
- To create a secondary link, the user must have at least Browse permission on the object and Change Location permission for the object.
- If the repository is running under folder security, the user must also have at least Write permission on the folder or cabinet to which the object is being linked.
link
against a cabinet object. That is, cabinets cannot be linked to folders or other cabinets. Alink
operation is not committed until asave
orcheckin
is performed.The following code example demonstrates how to create a document and link it to a specific cabinet and folder:
IDfSysObject sysObj = (IDfSysObject)sess.newObject("dm_document"); sysObj.setObjectName("testDoc"); sysObj.setContentType("crtext"); sysObj.setFile("c:\\dfc101.txt"); sysObj.link("/DFCObjCab/DFCObjFolder"); sysObj.save();
- Parameters:
folderSpec
- Defines the folder or cabinet to which you want to link the object. You can use either the folder or cabinet's object ID or its folder path.- Throws:
DfException
- if a server error occurs.- See Also:
-
unlink
Removes a link between the object and a folder or cabinet.Executing
unlink
has the following permission requirements:- To unlink an object from a primary link, the user must have at least Write permission on the object and Change Location permission on the object.
- To unlink an object from a secondary link, the user must have at least Browse permission on the object and Change Location permission for the object.
- If the repository is running under folder security, the user must also have at least Write permission on the folder or cabinet from which the object is being unlinked.
When you unlink an object, the entry in the attribute for the specified folder or cabinet is removed and the entries in subsequent index positions are shifted up one position.
Documents and folders must have at least one link to a folder or cabinet. Consequently, if you
unlink
an object from its only link, you must relink it to some folder or cabinet before saving or checking in the object.This operation is not committed until a
save
or acheckin
is performed. The following code example demonstrates how unlink an object from a source cabinet and relink it to a target cabinet:IDfSysObject sysObj = (IDfSysObject)sess.getObject(new DfId("0900d5bb8001fd49")); sysObj.unlink("/DFCSourceCab"); sysObj.link("/DFCTargetCab"); sysObj.save();
- Parameters:
folderSpec
- Defines the folder or cabinet from which you want to unlink the object. You can use either the folder or cabinet's object ID or its folder path.- Throws:
DfException
- if a server error occurs.- See Also:
-
getLocations
Runs a query to find all the places this object is used and returns the query result as a collection. TheattrNames
are used to specify the "select" portion of the query. Results are sorted by the first element inattrNames
.- Parameters:
attrNames
- specifies the desired attributes.- Returns:
- a collection of DfTypedObject interfaces.
- Throws:
DfException
- if attrNames are invalid.
-
getCreatorName
Returns the name of the creator. This method returns the value of the r_creator_name attribute of the object.- Returns:
- the name of the creator.
- Throws:
DfException
- if a server error occurs.
-
getOwnerName
Returns the name of this object's owner. This method returns the value of the owner_name attribute of the object.- Throws:
DfException
- if a server error occurs.
-
setOwnerName
Sets the name of the object's owner. This method sets the value of the owner_name attribute of the object.- Parameters:
ownerName
- specifies the name of the object's owner.- Throws:
DfException
- if a server error occurs.
-
getOwnerPermit
Returns the object-level permission assigned to the owner of the object. This method returns the value of the owner_permit attribute of the object.- Throws:
DfException
- if a server error occurs.
-
setOwnerPermit
Assigns the object-level permission to the owner of the object. This method sets the value of the owner_permit attribute of the object.- Parameters:
permit
- specifies the object-level permission to the owner of the object.- Throws:
DfException
- if a server error occurs.
-
getGroupName
Returns the group name to which this object belongs. This method returns the value of the group_name attribute of the object.- Throws:
DfException
- if a server error occurs.
-
setGroupName
Set the group name to which this object belongs. This method sets the value of the group_name attribute of the object.- Parameters:
name
- specifies the group name to which this object belongs.- Throws:
DfException
- if a server error occurs.
-
getGroupPermit
Returns the object-level permission assigned to the group for this object. This method returns the value of the group_permit attribute of the object.- Throws:
DfException
- if a server error occurs.
-
setGroupPermit
Sets the object-level group permission for the object. This method sets the value of the group_permit attribute of the object.- Parameters:
permit
- specifies the object-level group permission to set.- Throws:
DfException
- if a server error occurs.
-
getWorldPermit
Returns the object-level permission assigned to the world for the object. This method returns the value of the world_permit attribute of the object.- Throws:
DfException
- if a server error occurs.
-
setWorldPermit
Sets the object-level permission assigned to the world for the object. This method sets the value of the world_permit attribute of the object.- Parameters:
permit
- specifies the object-level permission assigned to the world for the object.- Throws:
DfException
- if a server error occurs.
-
getPermit
Returns an integer number that corresponds to the access permission level that the current user has for the object.- Throws:
DfException
- if a server error occurs.- See Also:
-
getPermitEx
Returns an integer number that corresponds to the access permission level that the specified user or group has for the object.- Parameters:
accessorName
- specifies the name of the user or group. If not specified, it will be the connected user.- Throws:
DfException
- if a server error occurs.- See Also:
-
getAccessorCount
Returns the number of users or groups for whom some level of access is defined for the object.- Throws:
DfException
- if a server error occurs.
-
getAccessorName
Returns the list of users and groups for whom some level of access is defined for the object. This method uses the _accessor_name computed attribute.- Parameters:
index
- specifies the index of the user or group- Throws:
DfException
- if a server error occurs.
-
getAccessorPermitType
Returns the permit type assigned to each user or group using the computed attribute _accessor_name.- Parameters:
index
- specifies the index of the user or group.- Returns:
- the permit type assigned to each user or group returned by _accessor_name.
- Throws:
DfException
- if a server error occurs.
-
getAccessorPermit
Returns the permit levels assigned to each user or group using the computed attribute _accessor_name.- Parameters:
index
- specifies the index of the user or group.- Returns:
- the permit levels assigned to each user or group returned by _accessor_name.
- Throws:
DfException
- if a server error occurs.
-
getXPermit
Returns the extended permissions, in integer form, for a specified user or group using the computed attribute _xpermit.- Throws:
DfException
- if a server error occurs.
-
getAccessorXPermit
Returns the extended permission levels of the specified user or group using the computed attribute _accessor_name.- Parameters:
index
- specifies the index of the user or group.- Returns:
- the extended permission levels of the specified user or group.
- Throws:
DfException
- if a server error occurs.
-
getAccessorXPermitNames
Retrieves the extended permissions, in upper case and separated by a comma, that are assigned to each user or group.- Throws:
DfException
- if a server error occurs.
-
getAccessorApplicationPermit
Returns the application permit assigned to a user or group.- Parameters:
index
- the index position of the user or group among the ACL's accessors- Returns:
- the application permit in string form assigned to the user or group
- Throws:
DfException
- if a server error occurs- See Also:
-
hasPermission
Returns whether there is an access control entry in this object to a specified user or group.- Parameters:
permission
- specifies the permission name.accessorName
- specifies the name of the user or group to whom you are assigning the access level.- Returns:
true
if the specified user or group has the permission.- Throws:
DfException
- if a server error occurs.
-
getXPermitNames
Returns the extended permissions of a specified user or group, in string form, in upper case, and separated by a comma. Note that ifaccessorName
is not specified, the default will be the session user.- Throws:
DfException
- if a server error occurs.
-
getXPermitList
Returns a list of extended permissions, separated by a comma, and supported by the server, using the computed attribute _xpermit_list.- Throws:
DfException
- if a server error occurs.
-
grant
Creates an access control entry in this object, assigning an access level to a specified user or group. This operation is not committed until asave
or acheckin
. Performs a DMCL "grant".- Parameters:
accessorName
- specifies the name of the user or group to whom you are assigning the access level.accessorPermit
- the integer corresponding to the basic privilege level that you want to grant. You can pass 0 if you just wanted to change the extended permission and leave the basic permission the same.extendedPermission
- the extended permission that you want to grant; If you do not want to grant an extended permission, specifynull
for this parameter- Throws:
DfException
- if a server error occurs.
-
grantPermit
Creates an access control entry in this object, assigning an access level to a specified user or group. This operation is not committed until asave
or acheckin
. Performs a DMCL "grant".- Parameters:
permit
- Describes the permit being added.- Throws:
DfException
- if a server error occurs.- Since:
- 5.2.10
-
revoke
Removes all access control entries from this object for a specified user or group. This operation is not committed until asave
or acheckin
. Performs a DMCL "revoke".- Parameters:
accessorName
- specifies the name of the user or group to whom you are removing the access level.extendedPermission
- defines the extended permission names; can benull
if no extended permissions.- Throws:
DfException
- if a server error occurs.
-
revokePermit
Removes specified permit from the sysobject. This operation is not committed until asave
or acheckin
. Performs a DMCL "revoke".- Parameters:
permit
- Describes the permit being removed.- Throws:
DfException
- if a server error occurs.- Since:
- 5.2.10
-
getPermissions
Returns a list ofDfPermit
objects representing all the permissions specified in the ACL for the sysobject.- Returns:
- IDfList containing all permissions specified in the ACL
- Throws:
DfException
- if a server error occurs- Since:
- 5.2.10
-
getACL
Returns an ACL associated with the object. It is based on thegetACLName
andgetACLDomain
.- Returns:
- an ACL associated with the object.
- Throws:
DfException
- if a server error occurs.
-
setACL
Assigns an ACL object to the object.An ACL is assigned to an object when it is created. The ACL can remain with the object for the life of the object, or you can replace the ACL with a call to
setACL
.The following code example demonstrates how to assign a private ACL to an object, then reset the object back to the original ACL settings:
IDfSysObject sysObj = (IDfSysObject)sess.getObject(new DfId("0900d5bb8001fd49")); IDfACL oldACL = sysObj.getACL(); IDfACL newACL = sess.getACL(sess.getLoginUserName(), "MyPrivateACL"); sysObj.setACL(newACL); sysObj.save(); sysObj.setACL(oldACL); sysObj.save();
- Parameters:
acl
- the ACL object to assign to the sysobject.- Throws:
DfException
- if a server error occurs.- See Also:
-
useACL
Assigns an ACL specification to the object.- Parameters:
aclType
- Specifies which ACL you want to use for this object. The ACL is specified using a keyword. Valid key words are:FOLDER The ACL associated with the object's primary folder TYPE The ACL associated with the object's type definition USER The ACL associated with the dm_user object representing the creator of the object NONE No default ACL
- Throws:
DfException
- if a server error occurs.
-
revertACL
Throws away unsaved permission changes.- Throws:
DfException
- if a server error occurs.
-
getACLName
Returns the name of the associated ACL. This method returns the value of the acl_name attribute of the object.- Throws:
DfException
- if a server error occurs.
-
setACLName
Sets the name of the associated ACL. This method sets the value of the acl_name attribute of the object.- Parameters:
ACLName
- specifies the name of the associated ACL.- Throws:
DfException
- if a server error occurs.
-
getACLDomain
Returns the domain of the ACL associated with this user. This method returns the value of the acl_domain attribute of the object.- Throws:
DfException
- if a server error occurs.
-
setACLDomain
Sets the domain of the ACL associated with this user. This method sets the value of the acl_domain attribute of the object.- Parameters:
aclDomain
- specifies the domain of the ACL associated with this user.- Throws:
DfException
- if a server error occurs.
-
getAclRefValid
Indicates whether the values in _accessor_name and _accessor_permit have been saved to the repository using the computed attribute _acl_ref_valid.- Throws:
DfException
- if server occurs an error.
-
getContentsId
Returns the object id of the content object for an object that has only one content. This method returns the value of the i_contents_id attribute of the object.- Throws:
DfException
- if a server error occurs.
-
getContentType
Returns the file format of the object's content. This method returns the value of the a_content_type attribute of the object.- Throws:
DfException
- if a server error occurs.
-
setContentType
Sets the file format of the object's content.Use any file format recognized by the Documentum server. Document format types can be obtained by querying the dm_format object (i.e. select name from dm_format).
The following code example demonstrates how to create a document with a "text" file format:
IDfSysObject sysObj = (IDfSysObject)sess.newObject("dm_document"); sysObj.setObjectName("testDoc"); sysObj.setContentType("crtext"); sysObj.setFile("c:\\textdoc.txt"); sysObj.save();
- Parameters:
contentType
- specifies the file format of the object's content.- Throws:
DfException
- if a server error occurs.
-
getFormat
Returns the format of the object.- Throws:
DfException
- if a server error occurs.
-
getPageCount
Returns the number of pages in the primary content. This method returns the value of the r_page_cnt attribute of the object.- Throws:
DfException
- if a server error occurs.
-
getContentSize
Returns the number of bytes in the content. This method returns the value of the r_content_size attribute of the object.- Throws:
DfException
- if a server error occurs.
-
getStorageType
Returns the default storage area for content files associated with the object. This method returns the value of the a_storage_type attribute of the object (e.g. filestore_01).- Throws:
DfException
- if a server error occurs.
-
setStorageType
Sets the storage area for content files associated with the object. This method sets the value of the a_storage_type attribute of the object.- Parameters:
type
- specifies the storage area for the content files associated with the object.- Throws:
DfException
- if a server error occurs.
-
getContentStateCount
Returns the number of states of a content for the sysobject using the computed attribute _content_state. Valid states are:0 Available and online 1 Archived 2 Offline 3 Error fetching content from repository
- Returns:
- the number of states of a content for the sysobject.
- Throws:
DfException
- if a server error occurs.
-
getContentState
Returns the state of the content for a given sysobject using the computed attribute _content_state. Valid states are:0 Available and online 1 Archived 2 Offline 3 Error fetching content from repository
- Parameters:
index
- specifies the position of the sysobject.- Returns:
- the state of the content for a specified sysobject.
- Throws:
DfException
- if a server error occurs.
-
getCollectionForContent
Returns a collection containing the object's content in the repository. In order to access the full functionality of the returned content collection you should cast the result toIDfContentCollection
or call getCollectionForContentEx4.- Parameters:
format
- specifies the format in which you want the content.pageNumber
- Identifies the position of the content when the object has multiple contents; otherwise, use 0.- Returns:
- a collection containing the object's content in the repository.
- Throws:
DfException
- if a server error occurs.
-
getCollectionForContentEx2
IDfCollection getCollectionForContentEx2(String format, int pageNumber, String pageModifier) throws DfException Returns a collection containing the object's content in the repository. In order to access the full functionality of the returned content collection you should cast the result toIDfContentCollection
or call getCollectionForContentEx4.- Parameters:
format
- specifies the format in which you want the content.pageNumber
- identifies the position of the content when the object has multiple contents; otherwise, use 0.pageModifier
- uniquely identifies a rendition within the same page number and format for a document. Ifnull
is passed then the rendition with an empty page_modifier value is returned. But if there doesn't exist a rendition without a page_modifier andnull
is passed, then the one with the smallest page_modifier (in alphabetical order) will be returned.- Returns:
- a collection containing the object's content in the repository.
- Throws:
DfException
-
getCollectionForContentEx3
IDfCollection getCollectionForContentEx3(String format, int pageNumber, String pageModifier, boolean other) throws DfException Returns a collection containing the object's content in the repository. In order to access the full functionality of the returned content collection you should cast the result toIDfContentCollection
or call getCollectionForContentEx4.- Parameters:
format
- specifies the format in which you want the content.pageNumber
- identifies the position of the content when the object has multiple contents; otherwise, use 0.pageModifier
- uniquely identifies a rendition within the same page number and format for a document. Ifnull
is passed then the rendition with an empty page_modifier value is returned. But if there doesn't exist a rendition without a page_modifier andnull
is passed, then the one with the smallest page_modifier (in alphabetical order) will be returned.other
- for files created on Macintosh systems, indicates whether you want to retrieve the data fork (the file containing the content) or the resource fork. Iftrue
, the resource fork is returned. Iffalse
, the data fork is returned. The default isfalse
.- Returns:
- a collection containing the object's content in the repository.
- Throws:
DfException
-
getCollectionForContentEx4
IDfContentCollection getCollectionForContentEx4(String format, int pageNumber, String pageModifier, boolean other) throws DfException Returns a collection containing the object's content in the repository.- Parameters:
format
- specifies the format in which you want the content.pageNumber
- identifies the position of the content when the object has multiple contents; otherwise, use 0.pageModifier
- uniquely identifies a rendition within the same page number and format for a document. Ifnull
is passed then the rendition with an empty page_modifier value is returned. But if there doesn't exist a rendition without a page_modifier andnull
is passed, then the one with the smallest page_modifier (in alphabetical order) will be returned.other
- for files created on Macintosh systems, indicates whether you want to retrieve the data fork (the file containing the content) or the resource fork. Iftrue
, the resource fork is returned. Iffalse
, the data fork is returned. The default isfalse
.- Returns:
- a collection containing the object's content in the repository.
- Throws:
DfException
-
getContent
Copies this object's content from the Documentum server into aByteArrayInputStream
object.The following code example demonstrates how to copy an objects content from the Documentum server into memory:
IDfSysObject sysObj = (IDfSysObject)session.getObject(new DfId("0900d5bb8001f900")); ByteArrayInputStream bais = sysObj.getContent(); if (bais.available() > 0) { // Data successfully fetched from the server... }
- Returns:
- a ByteArrayInputStream object containing the objects content.
- Throws:
DfException
- if a server error occurs.- See Also:
-
getContentEx
Copies this object's content in the repository into aByteArrayInputStream
.- Parameters:
format
- specifies the format in which you want the content.pageNumber
- Identifies the position of the content when the object has multiple contents; otherwise, use 0.- Returns:
- ByteArrayInputStream containing the content.
- Throws:
DfException
- if a server error occurs.
-
getContentEx2
ByteArrayInputStream getContentEx2(String format, int pageNumber, String pageModifier) throws DfException Copies this object's content in the repository into aByteArrayInputStream
.- Parameters:
format
- specifies the format in which you want the content.pageNumber
- identifies the position of the content when the object has multiple contents; otherwise, use 0.pageModifier
- uniquely identifies a rendition within the same page number and format for a document. Ifnull
is passed then the rendition with an empty page_modifier value is returned. But if there doesn't exist a rendition without a page_modifier andnull
is passed, then the one with the smallest page_modifier (in alphabetical order) will be returned.- Returns:
- ByteArrayInputStream containing the content.
- Throws:
DfException
-
getContentEx3
ByteArrayInputStream getContentEx3(String format, int pageNumber, String pageModifier, boolean other) throws DfException Copies this object's content in the repository into aByteArrayInputStream
.- Parameters:
format
- specifies the format in which you want the content.pageNumber
- identifies the position of the content when the object has multiple contents; otherwise, use 0.pageModifier
- uniquely identifies a rendition within the same page number and format for a document. Ifnull
is passed then the rendition with an empty page_modifier value is returned. But if there doesn't exist a rendition without a page_modifier andnull
is passed, then the one with the smallest page_modifier (in alphabetical order) will be returned.other
- for files created on Macintosh systems, indicates whether you want to retrieve the data fork (the file containing the content) or the resource fork. Iftrue
, the resource fork is returned. Iffalse
, the data fork is returned. The default isfalse
.- Returns:
- ByteArrayInputStream containing the content.
- Throws:
DfException
-
getFile
Retrieves a content file from the Documentum server.Content files associated with objects are ordered within the object. The position of any particular content file within an object is determined by its page number. The first content associated with an object has the page number zero, and the page numbers of subsequent contents increment by one with each content. When you want to obtain any content file other than the first, whose page number is zero, you must use the DFC method
getFileEx
.The following code example demonstrates how to checkout an object and copy the file from the Documentum server to the local drive (current working directory):
IDfSysObject sysObj = (IDfSysObject)sess.getObject(new DfId("0900d5bb8001fd49")); if (!sysObj.isCheckedOut()) { sysObj.checkout(); sysObj.getFile(sysObj.getObjectName()); }
- Parameters:
fileName
- specifies the location where you want to put the copy of the retrieved content file. If set tonull
, the content will be placed in the DMCL common area.- Returns:
- the file location of the retrieved file.
- Throws:
DfException
- if formatName are invalid.- See Also:
-
getFileEx
String getFileEx(String fileName, String formatName, int pageNumber, boolean other) throws DfException This is the extended method for retreiving a content file from the repository.- Parameters:
fileName
- specifies the location where you want to put the copy of the retrieved content file. If it isnull
, it will be placed in the DMCL common area. Note: Files in the client local area or the common area are removed when the session is closed or when the user terminates the connection to the Docbase.formatName
- specifies the format in which you want the file.pageNumber
- Identifies the position of the content when the object has multiple contents; otherwise, use 0.other
- for files created on Macintosh systems, indicates whether you want to retrieve the data fork (the file containing the content) or the resource fork. Iftrue
, just the resource fork is returned. Iffalse
, the data fork is returned. The default isfalse
.- Returns:
- the file location of the retrieved file.
- Throws:
DfException
- ifformatName
is invalid.
-
getFileEx2
String getFileEx2(String fileName, String formatName, int pageNumber, String pageModifier, boolean other) throws DfException This is the extended method for retreiving a content file from the repository.- Parameters:
fileName
- specifies the location where you want to put the copy of the retrieved content file. If it isnull
, it will be placed in the DMCL common area.formatName
- specifies the format in which you want the file.pageNumber
- identifies the position of the content when the object has multiple contents; otherwise, use 0.pageModifier
- uniquely identifies a rendition within the same page number and format. Ifnull
is passed then the rendition with an empty page_modifier value is returned. But if there doesn't exist a rendition without a page_modifier andnull
is passed, then the one with the smallest page_modifier (in alphabetical order) will be returned.other
- for files created on Macintosh systems, indicates whether you want to retrieve the data fork (the file containing the content) or the resource fork. Iftrue
, the resource fork is returned. Iffalse
, data fork is returned. The default isfalse
.- Returns:
- the file location of the retrieved file.
- Throws:
DfException
-
getPath
Retrieves the content location for an external store object.- Parameters:
pageNumber
- Identifies the position of the content when the object has multiple contents; otherwise, use 0.- Returns:
- the file location of the retrieved file.
- Throws:
DfException
- if a server error occurs.- See Also:
-
getPathEx
Retrieves the content location for an external store object.- Parameters:
pageNumber
- Identifies the position of the content when the object has multiple contents; otherwise, use 0.pageModifier
- uniquely identifies a rendition within the same page number and format.- Returns:
- the file location of the retrieved file.
- Throws:
DfException
- if a server error occurs.- See Also:
-
getPathEx2
String getPathEx2(String formatName, int pageNumber, String pageModifier, boolean other) throws DfException Retrieves the content location for an external store object.- Parameters:
formatName
- the format for which you want the path.pageNumber
- Identifies the position of the content when the object has multiple contents; otherwise, use 0.pageModifier
- uniquely identifies a rendition within the same page number and format.other
- for files created on Macintosh systems, indicates whether you want to retrieve the path of the data fork (the file containing the content) or the path of the resource fork. Iftrue
, the path of the resource fork is returned. Iffalse
, the path of the data fork is returned. The default isfalse
.- Returns:
- the file location of the retrieved file.
- Throws:
DfException
- if a server error occurs.- See Also:
-
setContent
Sets new content to an object. Use this method when you want to set data that resides in working memory.The following code example demonstrates how to set content residing in memory to a new document:
IDfSysObject sysObj = (IDfSysObject)sess.newObject("dm_document"); sysObj.setObjectName("testDoc"); sysObj.setContentType("crtext"); byte b[] = {35,36,37,38,39}; ByteArrayOutputStream out = new ByteArrayOutputStream(); out.write(b, 0, 5); sysObj.setContent(out); sysObj.save();
- Parameters:
content
- the content as a ByteArrayOutputStream.- Throws:
DfException
- if a server error occurs.- See Also:
-
setContentEx
boolean setContentEx(ByteArrayOutputStream content, String format, int pageNumber) throws DfException This is the extended method for setting the content of an object.- Parameters:
content
- Specifies the the content.format
- Specifies the file format of the content.pageNumber
- Identifies the position of the content when the object has multiple contents; otherwise, use 0.- Throws:
DfException
- if a server error occurs.
-
setContentEx2
boolean setContentEx2(ByteArrayOutputStream content, String format, int pageNumber, boolean other) throws DfException This is the extended method for setting the content of an object.- Parameters:
content
- Specifies the the content.format
- Specifies the file format of the content.pageNumber
- Identifies the position of the content when the object has multiple contents; otherwise, use 0.other
- for files created on Macintosh systems, indicates whether you want to set the data fork (the file containing the content) or the resource fork. Iftrue
, the resource fork is set. Iffalse
, the data fork is set. The default isfalse
. Note that you can only set this flag to true right after you set the content for the same page and before the document is saved.- Throws:
DfException
- if a server error occurs.
-
setStringContentAttribute
void setStringContentAttribute(String name, String value, String formatName, int page, String pageModifier) throws DfException Set a String content attribute.- Parameters:
name
- the name of the attribute.value
- the value of the attribute.formatName
- the name for the content objects format.page
- the content page.pageModifier
- the content object's page modifier.- Throws:
DfException
-
setTimeContentAttribute
void setTimeContentAttribute(String name, IDfTime value, String formatName, int page, String pageModifier) throws DfException Set a Date/Time content attribute.- Parameters:
name
- the name of the attribute.value
- the value of the attribute.formatName
- the name for the content objects format.page
- the content page.pageModifier
- the content object's page modifier.- Throws:
DfException
-
setDoubleContentAttribute
void setDoubleContentAttribute(String name, double value, String formatName, int page, String pageModifier) throws DfException Set a numeric content attribute.- Parameters:
name
- the name of the attribute.value
- the value of the attribute.formatName
- the name for the content objects format.page
- the content page.pageModifier
- the content object's page modifier.- Throws:
DfException
-
getStringContentAttr
String getStringContentAttr(String name, String formatName, int page, String pageModifier) throws DfException Return a string content attribute.- Parameters:
name
- the name of the attribute.formatName
- the name for the content objects format.page
- the content page.pageModifier
- the content object's page modifier.- Throws:
DfException
-
getTimeContentAttr
IDfTime getTimeContentAttr(String name, String formatName, int page, String pageModifier) throws DfException Return a time content attribute.- Parameters:
name
- the name of the attribute.formatName
- the name for the content objects format.page
- the content page.pageModifier
- the content object's page modifier.- Throws:
DfException
-
getDoubleContentAttr
Double getDoubleContentAttr(String name, String formatName, int page, String pageModifier) throws DfException Return a numeric content attribute.- Parameters:
name
- the name of the attribute.formatName
- the name for the content objects format.page
- the content page.pageModifier
- the content object's page modifier.- Throws:
DfException
-
setFile
Sets the content file of this object or replaces an existing content. This operation is not committed until asave
or acheckin
is performed. Performs a DMCL "setfile".The following code example demonstrates how to create a document:
IDfSysObject sysObj = (IDfSysObject)sess.newObject("dm_document"); sysObj.setObjectName("testDoc"); sysObj.setContentType("crtext"); sysObj.setFile("c:\\textdoc.txt"); sysObj.save();
- Parameters:
fileName
- the file that contains the content.- Throws:
DfException
- if a server error occurs.- See Also:
-
setFileEx
void setFileEx(String fileName, String formatName, int pageNumber, String otherFile) throws DfException This is the extended method for setting the content file of this object, or it replaces existing content. This operation is not committed until asave
or acheckin
is performed. Performs DMCL "setfile".- Parameters:
fileName
- specifies the file that contains the content.formatName
- specifies the format in which you want the file.pageNumber
- identifies the position of the content when the object has multiple contents; otherwise, use 0.otherFile
- specifies the resource fork for a Macintosh document. This argument should be set tonull
for non-Macintosh documents.- Throws:
DfException
- if a server error occurs.
-
setPath
void setPath(String fileName, String formatName, int pageNumber, String otherFile) throws DfException Sets the path to a content object or replaces an existing content.- Parameters:
fileName
- Specifies the file that contains the content. Use either an absolute or relative path to specify the file. The file must be located on the machine from which this method is called or in a directory visible to that machine.formatName
- Specifies the content's file format. The format must be a valid file format. You must specify this argument if you are setting an object's first content. Set this argument tonull
when you are setting second or subsequent content for an object.pageNumber
- Defines the position where you want to place the content within the ordered contents of the object. Use this argument when you are adding second or subsequent contents to an object or when you want to replace an existing content. Otherwise, set this to 0.otherFile
- specifies the resource fork for a Macintosh document. You can use either an absolute or a relative path. If this is set, the path must be valid or this method fails. The value is ignored when used with external stores. This argument should be set tonull
for non-Macintosh documents.- Throws:
DfException
- if a server error occurs.- See Also:
-
appendContent
Appends new content to an object. Use this method when you want to append data that resides in working memory.The following code example demonstrates how to append content to a new document:
IDfSysObject sysObj = (IDfSysObject)sess.newObject("dm_document"); sysObj.setObjectName("testDoc"); sysObj.setContentType("crtext"); byte b[] = {35,36,37,38,39}; ByteArrayOutputStream out = new ByteArrayOutputStream(); out.write(b, 0, 5); sysObj.appendContent(out); sysObj.save();
- Parameters:
content
- the content as a ByteArrayOutputStream object.- Throws:
DfException
- if a server error occurs.- See Also:
-
appendContentEx
Appends new content to an object. Use this method when you want to append data that resides in working memory.The following code example demonstrates how to append content to a new document:
IDfSysObject sysObj = (IDfSysObject)sess.newObject("dm_document"); sysObj.setObjectName("testDoc"); sysObj.setContentType("crtext"); byte b[] = {35,36,37,38,39}; ByteArrayOutputStream out = new ByteArrayOutputStream(); out.write(b, 0, 5); sysObj.appendContent(out); sysObj.save();
- Parameters:
content
- the content as a ByteArrayOutputStream object.other
- for files created on Macintosh systems, indicates whether you want to set a data fork (the file containing the content) or a resource fork. Iftrue
, the resource fork is set. Iffalse
, the data fork is set. The default isfalse
.- Throws:
DfException
- if a server error occurs.- See Also:
-
appendFile
Appends new content to an object.When you add content to a document, you can append the new file to the end of the document's list of content files or you can insert the file into the list. This method appends the content to the end of the document's list of content files.
The following code example demonstrates how to append content to a new document:
IDfSysObject sysObj = (IDfSysObject)sess.newObject("dm_document"); sysObj.setObjectName("testDoc"); sysObj.setContentType("crtext"); sysObj.appendFile("c:\\tesdoc1.txt"); sysObj.appendFile("c:\\tesdoc2.txt"); sysObj.save();
- Parameters:
fileName
- the file that you are adding as content to the object. Use either a relative or absolute path specification.- Throws:
DfException
- if a server error occurs.
-
appendFileEx
Appends new content to an object.When you add content to a document, you can append the new file to the end of the document's list of content files or you can insert the file into the list. This method appends the content to the end of the document's list of content files.
The following code example demonstrates how to append content to a new document:
IDfSysObject sysObj = (IDfSysObject)sess.newObject("dm_document"); sysObj.setObjectName("testDoc"); sysObj.setContentType("crtext"); sysObj.appendFile("c:\\tesdoc1.txt"); sysObj.appendFile("c:\\tesdoc2.txt"); sysObj.save();
- Parameters:
fileName
- the file that you are adding as content to the object. Use either a relative or absolute path specification.otherFileName
- specifies the resource fork for an object with Macintosh content.- Throws:
DfException
- if a server error occurs.
-
insertContent
Inserts new content into an object.- Parameters:
content
- specifies the contentpageNumber
- identifies the position of the content when the object has multiple contents; otherwise, use 0.- Throws:
DfException
- if a server error occurs.
-
insertContentEx
void insertContentEx(ByteArrayOutputStream content, int pageNumber, boolean other) throws DfException Inserts new content into an object.- Parameters:
content
- specifies the contentpageNumber
- identifies the position of the content when the object has multiple contents; otherwise, use 0.other
- for files created on Macintosh systems, indicates whether you want to set a data fork (the file containing the content) or a resource fork. Iftrue
, the resource fork is set. Iffalse
, the data fork is set. The default isfalse
.- Throws:
DfException
- if a server error occurs.
-
insertFile
Inserts a new content file into an object.- Parameters:
fileName
- Specifies the file that you are adding to the object. Use either an absolute or relative path to specify the file.pageNumber
- Identifies the position of the content when the object has multiple contents; otherwise, use 0.- Throws:
DfException
- if a server error occurs.
-
insertFileEx
Inserts a new content file into an object.- Parameters:
fileName
- Specifies the file that you are adding to the object. Use either an absolute or relative path to specify the file.pageNumber
- Identifies the position of the content when the object has multiple contents; otherwise, use 0.otherFileName
- specifies the resource fork for an object with Macintosh content.- Throws:
DfException
- if a server error occurs.
-
addRendition
Adds a new rendition to the object. This operation is not committed until asave
orcheckin
is performed.The following code example demonstrates how to add a Word Perfect rendition to the sysobject:
IDfSysObject sysObj = (IDfSysObject)session.getObjectByQualification("dm_document where r_object_id='0900d5bb8001f900'"); sysObj.addRendition("chap_1.wp7", "wp7"); sysObj.save();
- Parameters:
fileName
- specifies the file that contains the content.formatName
- specifies the content's file format.- Throws:
DfException
- if a server error occurs.
-
addRenditionEx
void addRenditionEx(String fileName, String formatName, int pageNumber, String storageName, boolean atomic) throws DfException This is the extended method for adding a new rendition to the object.. This operation is not committed until asave
or acheckin
is performed. Perform DMCL "addrendition".- Parameters:
fileName
- specifies the file that contains the content.formatName
- specifies the content's file format.pageNumber
- identifies the position of the content when the object has multiple contents; otherwise, use 0.storageName
- identifies the storage area where you want to store the new rendition..atomic
- indicates whether you want the changes resulting from the addRendition operation to be saved automatically to the repository. Set this totrue
to save the changes automatically orfalse
if you want to require an explicit save operation.- Throws:
DfException
- if a server error occurs.
-
addRenditionEx2
void addRenditionEx2(String fileName, String formatName, int pageNumber, String pageModifier, String storageName, boolean atomic, boolean keep, boolean batch) throws DfException This is the extended method for adding a new rendition to the object.. This operation is not committed until asave
or acheckin
is performed. Perform DMCL "addrendition".- Parameters:
fileName
- specifies the file that contains the content.formatName
- specifies the content's file format.pageNumber
- identifies the position of the content when the object has multiple contents; otherwise, use 0.pageModifier
- uniquely identifies a rendition within the same page number and format for a document. If there already exists a rendition with the supplied page_modifier (at the given format and page) the rendition will be overwritten. Ifnull
is passed then page_modifier is set to empty string. This argument must benull
if thebatch
argument istrue
. The argument cannot be "dm_batch" as this is a reserved word.storageName
- identifies the storage area where you want to store the new rendition..atomic
- indicates whether you want the changes resulting from the addRendition operation to be saved automatically to the repository. Set this totrue
to save the changes automatically orfalse
if you want to require an explicit save operation.keep
- indicates whether this rendition should remain (i.e. not be removed) when the primary content with the same page number is removed or updated.batch
- indicates whether thefileName
argument is a tar-ed file containing a set of content files including a a property file named 'property.txt'. The format of of this property file is as follows (with a blank line separating each file_name entry): file_name='file_name' page_modifier='' parameters=' ' If a page_modifier specified in the property file exists, the new one will overwrite the old one. If you issue two non-atomic batch addrendition against the same format and page, the new one will replace the old one. - Throws:
DfException
-
addRenditionEx3
void addRenditionEx3(String fileName, String formatName, int pageNumber, String pageModifier, String storageName, boolean atomic, boolean keep, boolean batch, String otherFileName) throws DfException This is the extended method for adding a new rendition to the object.. This operation is not committed until asave
or acheckin
is performed. Perform DMCL "addrendition".- Parameters:
fileName
- specifies the file that contains the content.formatName
- specifies the content's file format.pageNumber
- identifies the position of the content when the object has multiple contents; otherwise, use 0.pageModifier
- uniquely identifies a rendition within the same page number and format for a document. If there already exists a rendition with the supplied page_modifier (at the given format and page) the rendition will be overwritten. Ifnull
is passed then page_modifier is set to empty string. This argument must benull
if thebatch
argument istrue
. The argument cannot be "dm_batch" as this is a reserved word.storageName
- identifies the storage area where you want to store the new rendition..atomic
- indicates whether you want the changes resulting from the addRendition operation to be saved automatically to the repository. Set this totrue
to save the changes automatically orfalse
if you want to require an explicit save operation.keep
- indicates whether this rendition should remain (i.e. not be removed) when the primary content with the same page number is removed or updated.batch
- indicates whether thefileName
argument is a tar-ed file containing a set of content files including a a property file named 'property.txt'. The format of of this property file is as follows (with a blank line separating each file_name entry): file_name='file_name' page_modifier='' parameters=' ' If a page_modifier specified in the property file exists, the new one will overwrite the old one. If you issue two non-atomic batch addrendition against the same format and page, the new one will replace the old one. otherFileName
- specifies the resource fork for an object with Macintosh content.- Throws:
DfException
-
getRenditions
Runs a query against the dmr_content table to return values for all the page 0 content for this object. Values for renditions are also returned. The attributes listed inattrNames
in the form of a comma separated list suitable for inclusion in a DQL select list are returned. If attrNames is null or a zero length String, values for the following default attributes are returned - full_format, content_size, set_time, set_file. Rsults are sorted by the first element in theattrNames
.- Returns:
- a collection of DfTypedObject interfaces.
- Throws:
DfException
- if a server error occurs.
-
removeContent
Deletes content from an object.- Parameters:
pageNumber
- Identifies the position of the content when the object has multiple contents; otherwise, use 0.- Throws:
DfException
- if a server error occurs.
-
removeRendition
Deletes a rendition from the object. This operation is not committed until asave
or acheckin
is performed. Perform DMCL "removerendition".- Parameters:
formatName
- Defines the format of the file you are removing.- Throws:
DfException
- if a server error occurs.
-
removeRenditionEx
Deletes a rendition from the object. This operation is not committed until asave
or acheckin
is performed. Perform DMCL "removerendition".- Parameters:
formatName
- Defines the format of the file you are removing.pageNumber
- Identifies the position of the content when the object has multiple contents; otherwise, use 0.atomic
- Indicates whether you want the changes that result from the removeRendition operation to be saved automatically to the repository. Set this totrue
to save the changes automatically or tofalse
to require an explicit save operation.- Throws:
DfException
- if a server error occurs.
-
removeRenditionEx2
void removeRenditionEx2(String formatName, int pageNumber, String pageModifier, boolean atomic) throws DfException Deletes a rendition from the object. This operation is not committed until asave
or acheckin
is performed. Perform DMCL "removerendition".- Parameters:
formatName
- Defines the format of the file you are removing.pageNumber
- identifies the position of the content when the object has multiple contents; otherwise, use 0.pageModifier
- uniquely identifies a rendition within the same page number and format for a document. Ifnull
value is passed then all renditions are removed at the specified page number and format. If you want to remove the rendition with an empty page_modifier value, pass in an empty string value (i.e. '').atomic
- Indicates whether you want the changes that result from the removeRendition operation to be saved automatically to the repository. Set this totrue
to save the changes automatically or tofalse
to require an explicit save operation.- Throws:
DfException
- if a server error occurs.
-
bindFile
Binds content associated with an object to another object.- Parameters:
pageNumber
- Specifies the position of the new content in the ordered contents of the target object. Specify 0 if this is the first content for the object.srcId
- Identifies the object in which the content currently resides.srcPageNumber
- Identifies which content you want to retrieve. Use the contents page number.- Throws:
DfException
- if a server error occurs.
-
mount
Deprecated.Sets the content location for an external store object. If a client application does not execute the Mount method, but issues agetfile
or agetcontent
method, then the content will be retrieved on the server side if a server side plugin is available and returned to the client application.- Parameters:
path
- Specifies the path of the external file store.- Throws:
DfException
- if a server error occurs.- See Also:
-
addNote
Adds an annotation (the current IDfSysObject) to the target object.- Parameters:
targetId
- Specifies the id of the sysobject to which the annotation is being added.keepPermanent
- Indicates whether you want the annotation to remain attached to the document when users version the document.- Throws:
DfException
- if a server error occurs.
-
removeNote
Deprecated.Detaches an annotation from the object. Unlike addNote which is invoked on the dm_note object removeNote is applied to the parent object to which the dm_note has been added. To persist the removal of the note the caller must invoke save on the dm_note object being removed.- Parameters:
annotationId
- Specifies the id of the sysobject from which the annotation is being removed.- Throws:
DfException
- if a server error occurs.
-
getPolicyId
Returns the object id of attached business policy object. This method returns the value of the r_policy_id attribute of the object.- Returns:
- the object id of attached business policy object.
- Throws:
DfException
- if a server error occurs.
-
getPolicyName
Returns the name of attached business policy object.- Returns:
- the value of the computed attribute _policy_name.
- Throws:
DfException
- if a server error occurs.
-
getResumeState
Returns the resume state. This method returns the value of the r_resume_state attribute of the object.- Returns:
- the resume state
- Throws:
DfException
- if a server error occurs.
-
getResumeStateName
Returns the resume state name. This method uses the _resume_state computed attribute.- Returns:
- the resume state name
- Throws:
DfException
- if a server error occurs.
-
getCurrentState
Returns the current state. This method returns the value of the r_current_state attribute of the object.- Returns:
- the current state
- Throws:
DfException
- if a server error occurs.
-
getCurrentStateName
Returns the name of the current state. This method uses the _current_state computed attribute.- Returns:
- the current state name
- Throws:
DfException
- if a server error occurs.
-
attachPolicy
Attaches a business policy object to the object.Business policies define object life cycles. Each business policy defines a series of states (such as review or approved) through which an object progresses. A policy includes requirements that must be met before the object can move from one state to the next, actions to be performed before the object enters a state, and postprocessing to perform after entering a new state.
The following code example demonstrates how to attach a business policy object to a sysobject where the initial state of the lifecycle is defined as "preliminary":
IDfSysObject busPolicyObj = (IDfSysObject)sess.getObject(new DfId("0900d5bb8001fd49")); IDfSysObject sysObj = (IDfSysObject)sess.getObject(new DfId("0900d5bb8001f900")); sysObj.attachPolicy(busPolicyObj.getObjectId(), "preliminary", "");
You cannot use this method in a user-defined transaction.
- Parameters:
policyId
- the object id of the business policy object.state
- the state of the business policy. The state can be the position of the state or the state name.scope
- is the key to the dm_alias_set type for retrieving the alias value mapping defined there.- Throws:
DfException
- if a server error occurs.- See Also:
-
detachPolicy
Detaches an existing business policy object from the object.The following code example demonstrates how to detach a business policy object from a sysobject;
IDfSysObject sysObj = (IDfSysObject)sess.getObject(new DfId("0900d5bb8001f900")); sysObj.detachPolicy();
- Throws:
DfException
- if a server error occurs.- See Also:
-
promote
Promotes the sysobject to the state specified in thestate
argument. The state can be passed in as the position or the name of the state.You cannot use this method in a user-defined transaction.
- Parameters:
state
- is the state to which sysobject is to be promoted. Ifnull
, the object will be promoted to the next normal state.override
- optionally, set this totrue
to force the sysobject to be promoted, regardless of other conditions.fTestOnly
- set this totrue
to test if the promote can be done. This will not actually promote the object.- Throws:
DfException
- if a server error occurs.
-
getPreviousStateName
Returns the name of the previous state. This method uses the _previous_state computed attribute.- Returns:
- the previous state name
- Throws:
DfException
- if a server error occurs.
-
getNextStateName
Returns the name of the next state. This method uses the _next_state computed attribute.- Returns:
- the next state name
- Throws:
DfException
- if a server error occurs.
-
canPromote
Returns whether the sysobject can be promoted from current state to the next state. This is a light weight test at the client side based on the simple rule. The object can be promoted if:1. The correct Business Policy is installed and attached. 2. The objects current state is NOT a terminal state and is NOT an exception state.
- Returns:
true
if the object can be promoted,false
otherwise.- Throws:
DfException
- if a server error occurs.
-
schedulePromote
Schedules a sysobject to be promoted to the next state on a particular date/time specified by thescheduleDate
parameter. This scheduled promotion can be enforced by setting theoverride
parameter totrue
.- Parameters:
state
- is the state to which sysobject is to be promoted. This is required for schedule promote.scheduleDate
- is the time and date sysobject will be promoted.override
- set this totrue
to force the sysobject's promotion.- Throws:
DfException
- if a server error occurs.
-
cancelScheduledPromote
This will cancel the scheduled promote for the date/time specified in thescheduleDate
argument.- Parameters:
scheduleDate
- the date/time used to set the schedule promote.- Throws:
DfException
- if a server error occurs.
-
canDemote
Returns whether the object can be demoted from the current state. This is a light weight test at the client side based on the simple rules. The object can be demoted if:1. Correct BP is installed and attached. 2. Objects current state is NOT a base state and is NOT an exception state. 3. "allow_demote" attribute is set to
true
for the current state.- Returns:
true
if the object can be demoted,false
otherwise.- Throws:
DfException
- if a server error occurs.
-
demote
This method will demote the sysobject from its current normal state to the previous normal state, or to the base state if thetoBase
parameter is set totrue
. Ifstate
is notnull
, the current state should be the state right after the state specified.You cannot use this method in a user-defined transaction.
- Parameters:
state
- the state to which the sysobject will be demoted. This can be the name of the state or position number.toBase
- set this totrue
if sysobject is to be demoted to the base state. If the state is specified with this flag astrue
, the state should be the base state.- Throws:
DfException
- if a server error occurs.
-
scheduleDemote
Schedules the sysobject to demote from its current normal state to the state defined in thestate
parameter. Thestate
parameter cannot benull
in this case.- Parameters:
state
- is the state to which the sysobject will be demoted. This can be the name of the state or the position number.schedule_date
- represent the date/time used to set the schedule demote for this sysobject.- Throws:
DfException
- if a server error occurs.
-
cancelScheduledDemote
This will cancel the scheduled demote of the sysobject at the date/time specifed byscheduleDate
.- Parameters:
scheduleDate
- the date/time used to set the demote for this sysobject.- Throws:
DfException
- if a server error occurs.
-
suspend
Suspends the sysobject from its current state to the exception state. An exception is thrown if no exception state exists for the current normal state.You cannot use this method in a user-defined transaction.
- Parameters:
state
- if specified, this should be the current state from where the sysobject will be suspended. This can be either the position number or the name of the state.override
- setting this totrue
will force the sysobject to suspend.fTestOnly
- set this totrue
to test if the suspend can be done. This will not actually suspend the object.- Throws:
DfException
- if a server error occurs.
-
canSuspend
Returns whether the sysobject can suspend from its current state to the exception state. An exception is thrown if no exception state exists for the current normal state. This is a light weight test at the client side based on the simple rules. The object can be suspended if:1. The correct Business Policy is installed and attached. 2. The objects current state has an exception state.
- Returns:
true
if the object can be suspended,false
otherwise.- Throws:
DfException
- if a server error occurs.
-
isSuspended
Return whether the object is in a suspended state. The object is in a suspended state if:1. The correct Business Policy is installed and attached. 2. The objects current state is an exception state.
- Returns:
true
if the object is in the suspended state,false
otherwise.- Throws:
DfException
- if a server error occurs.
-
scheduleSuspend
Schedule a suspend of the sysobject from its current state to the exception state at a certain date/time. An exception is thrown if no exception state exists for the current normal state.- Parameters:
state
- this should be the current state from where the sysobject will be suspended. This can be either the position number or the name of the state. This can not benull
.override
- set this totrue
to force the sysobject's suspension.scheduleDate
- the date/time used to set the schedule suspend for this sysobject.- Throws:
DfException
- if a server error occurs.
-
cancelScheduledSuspend
This method can be used to cancel a scheduled suspend of the sysobject at a date/time.- Parameters:
scheduleDate
- the date/time at which the sysobject was scheduled for suspension.- Throws:
DfException
- if a server error occurs.
-
resume
Resumes the sysobject from an exception state.You cannot use this method in a user-defined transaction.
- Parameters:
state
- define the state number or the state name from where the sysobject will be resumed. This must be an exception state.toBase
- set it totrue
if sysobject is to be resumed to the base state.override
- set this totrue
to force the resume.fTestOnly
- set this totrue
to test if the resume can be done. This will not actually resume the object.- Throws:
DfException
- if a server error occurs.
-
canResume
Returns whether the sysobject can be resumed from an exception state. This is a light weight test at the client side based on the simple rules. The object can be resumed if:1. The correct Business Policy is installed and attached. 2. The objects current state is an exception state.
- Returns:
true
if the object can be resumed,false
otherwise.- Throws:
DfException
- if a server error occurs.
-
scheduleResume
void scheduleResume(String state, IDfTime scheduleDate, boolean toBase, boolean override) throws DfException Schedules to resume the sysobject from an exception state to the next state at the specified date/time.- Parameters:
state
- define the state number or the state name from where the sysobject will be resumed from. This must be an exception state.scheduleDate
- contains the date/time at which the resume will take place.toBase
- set this totrue
if the sysobject is to be resumed to the base state.override
- set this totrue
to force the resume.- Throws:
DfException
- if a server error occurs.
-
cancelScheduledResume
This will cancel a scheduled resume of the sysobject for a certain date/time.- Parameters:
schedule
- represent the date/time which was used to schedule the resume.- Throws:
DfException
- if a server error occurs.
-
isVirtualDocument
Returns true if this document should be treated as a virtual document. Always returns true if the document has any virtual or compound children.- Returns:
- boolean
true
if this is a virtual document. - Throws:
DfException
- if a server error occurs.
-
setIsVirtualDocument
Sets the r_is_virtual_doc attribute for the object. Note that clearing this flag will not autmatically causeisVirtualDocument
to returnfalse
;isVirtualDocument
will returntrue
for as long as there are containment children.- Parameters:
is_virtual_doc
- Iftrue
, the document will be treated as a virtual document even if it has no children. Iffalse
, the document will not be treated as a virtual document ONLY if it has no children.- Throws:
DfException
- if a server error occurs.
-
getAssembledFromId
Returns the object id of the virtual document that was the source of the assembly associated with the object. This method returns the value of the r_assembled_from_id attribute of the object.- Throws:
DfException
- if a server error occurs.
-
getFrozenAssemblyCount
Returns a count of the number of frozen assemblies that contain the object. This method returns the value of the r_frzn_assembly_cnt attribute of the object.- Throws:
DfException
- if a server error occurs.
-
getHasFrozenAssembly
Returns whether the document's assembly is frozen. This method returns the value of the r_has_frzn_assembly attribute of the object.- Throws:
DfException
- if a server error occurs.
-
getCompoundArchitecture
Used by the virtual document manager to determine if the object can be changed. This method returns the value of the a_compound_architecture attribute of the object.- Throws:
DfException
- if a server error occurs.
-
setCompoundArchitecture
Used by the virtual document manager to determine if the object can be changed. This method sets the a_compound_architecture attribute of the object.The a_compound_architecture attribute is used internally by the Documentum clients' Virtual Document Manager (VDM) to determine if the object can be structurally changed in the VDM. If an object's a_compound_architecture attribute is set to any value other than an empty string, VDM assumes the object is read only and does not allow any structural changes in the object.
- Parameters:
compoundArchitecture
- specifies if the object can be structurally changed by the virtual document manager- Throws:
DfException
- if a server error occurs.
-
getResolutionLabel
Returns the default version label used to resolve late-bound nodes of a virtual document. This method returns the value of the resolution_label attribute of the object.- Returns:
- the resolution label of the object.
- Throws:
DfException
- if a server error occurs.
-
setResolutionLabel
Sets the resolution label for the object. This sets the value of the resolution_label attribute of the object.- Parameters:
label
- specifies the resolution label for the object.- Throws:
DfException
- if a server error occurs.
-
getLinkCount
Returns the number of objects linked to the object. This method returns the value of the r_link_cnt attribute of the object.- Throws:
DfException
- if a server error occurs.
-
getLinkHighCount
Returns the current maximum order number assigned to a component. This method returns the value of the r_link_high_cnt attribute of the object.- Throws:
DfException
- if a server error occurs.
-
isLinkResolved
Returns the a_link_resolved attribute of the object.- Returns:
- the a_link_resolved attribute
- Throws:
DfException
- if a server error occurs.
-
setLinkResolved
Sets the a_link_resolved attribute of the object.- Parameters:
linkResolved
- specifies the object has been archived.- Throws:
DfException
- if a server error occurs.
-
appendPart
IDfId appendPart(IDfId componentId, String versionLabel, boolean useNodeVerLabel, boolean followAssembly, int copyChild) throws DfException Appends a document as the last virtual document child of the object.- Parameters:
componentId
- the object id or chronicle id of the document to be appended.versionLabel
- the version label to use to bind to the new child document.useNodeVerLabel
- iftrue
, causes any late bound descendents of the child to inherit the early binding of the child.followAssembly
- iftrue
and an assembly is present for the child document, will cause virtual document operations to use the assembly in place of any virtual or compound descendents.copyChild
- determines if a new copy of the child should be created when this parent is copied. A value of 0 indicates that the user (caller) will decide. A value of 1 will reference the same child in the newly copied parent. A value of 2 will cause a new copy of the child to be assocaited with the newly copied parent.- Returns:
- IDfId the object id of the newly created containment object.
- Throws:
DfException
- if a server error occurs.
-
insertPart
IDfId insertPart(IDfId componentID, String versionLabel, IDfId beforeContainmentId, double orderNo, boolean orderNoFlag, boolean useNodeVerLabel, boolean followAssembly, int copyChild) throws DfException Inserts a document into the list of virtual child documents for the object.- Parameters:
componentID
- the object id or chronicle id of the document to be inserted.versionLabel
- the version label to use to bind to the new child document.beforeContainmentId
- specifies the containment id occupying the position at which the new component should be inserted.orderNo
- can be used in place of beforeContainmentId to specify the point at which the new child should be inserted.orderNoFlag
- iftrue
, orderNo will specify the insertion point. Iffalse
,beforeContainmentId
will specify the insertion point.useNodeVerLabel
- iftrue
, causes any late bound descendents of the child to inherit the early binding of the child.followAssembly
- iftrue
and an assembly is present for the child document, will cause virtual document operations to use the assembly in place of any virtual or compound descendents.copyChild
- determines if a new copy of the child should be created when this parent is copied. A value of 0 indicates that the user (caller) will decide. A value of 1 will reference the same child in the newly copied parent. A value of 2 will cause a new copy of the child to be assocaited with the newly copied parent.- Returns:
- IDfId the object id of the newly created containment object.
- Throws:
DfException
- if a server error occurs.
-
removePart
Removes a virtual document child from the object.- Parameters:
containmentId
- the object id for the dmr_containment representing the child to be removed.orderNo
- can be used in place of containmentId to specify the part to be removed.orderNoFlag
- iftrue
,orderNo
will specify the part to be removed. Iffalse
containmentId
will specify the part to be removed.- Throws:
DfException
- if a server error occurs.
-
updatePart
void updatePart(IDfId containmentId, String versionLabel, double orderNumber, boolean useNodeVerLabel, boolean followAssembly, int copyChild) throws DfException Modifies a child dmr_containment attribute value.- Parameters:
containmentId
- the object id of the dmr_containment to be updated.versionLabel
- the version label to use to bind to the child document.orderNumber
- sequence number of this child relative to its siblings.useNodeVerLabel
- iftrue
, causes any late bound descendants of the child to inherit the early binding of the child.followAssembly
- iftrue
and an assembly is present for the child document, will cause virtual document operations to use the assembly in place of any virtual or compound descendents.copyChild
- determines if a new copy of the child should be created when this parent is copied. A value of 0 indicates that the user (caller) will decide. A value of 1 will reference the same child in the newly copied parent. A value of 2 will cause a new copy of the child to be associated with the newly copied parent.- Throws:
DfException
- if a server error occurs.
-
updatePartEx
void updatePartEx(IDfId containmentId, String versionLabel, double orderNumber, boolean useNodeVerLabel, boolean followAssembly, int copyChild, String containType, String containDesc) throws DfException - Throws:
DfException
-
assemble
IDfCollection assemble(IDfId virtualDocId, int interruptFreq, String qualification, String nodesortList) throws DfException Creates an assembly and associates it with the object. An implicit transaction is started and left open. The transaction is committed by calling collection.next() on the returned IDfCollection object. You cannot call this method in a transaction.- Parameters:
virtualDocId
- the object id of the virtual doucment to traverse in the creation of the assembly.interruptFreq
- specifies how often the system stops the assembly process and turns control back to the caller (via the collection).qualification
- determines which nodes will be selected for inclusion in the assembly. A qualification is the portion of a DQL SELECT statement that follows "FROM". Pass an empty string to include all nodes.nodesortList
- comma separated list of attributes on which you want to sort version that are candidates for inclusion in the assembly.- Returns:
- an IDfCollection interface to the results of the most recently executed query.
- Throws:
DfException
- if a server error occurs.
-
disassemble
Disassembles the assembly associated with the object.- Throws:
DfException
- if a server error occurs.
-
isFrozen
Returns whether this object was specifically frozen and is now unchangeable. This method returns the value of the r_frozen_flag attribute of the object.- Throws:
DfException
- if a server error occurs.
-
freeze
Marks an object as unchangeable (and optionally its components), if the object is a virtual document.- Parameters:
freezeComponents
- Indicates whether you want to freeze the components that make up the specified object's assembly as well as the object itself. Set this flag totrue
to freeze the assembled components as well as the object. This flag is only set if the specified object is a virtual document that has an associated assembly.- Throws:
DfException
- if a server error occurs.
-
unfreeze
Unfreezes a frozen object, and optionally if the object is a virtual document, it unfreezes the object's associated assembly.- Parameters:
thawComponents
- Indicates whether you want to unfreeze the assembly associated with the specified object. Set this totrue
to unfreeze the assembly.- Throws:
DfException
- if a server error occurs.
-
asVirtualDocument
IDfVirtualDocument asVirtualDocument(String lateBindingValue, boolean followRootAssembly) throws DfException Returns a virtual document representation of the object.Refer to Server Fundamentals for more information about virtual documents.
The following code example demonstrates how to obtain a virtual document representation of an sysobject:
IDfSysObject sysObjRoot = (IDfSysObject)sess.getObject(new DfId("0900d5bb8001fd49")); IDfVirtualDocument vDoc = sysObjRoot.asVirtualDocument("CURRENT", false);
- Parameters:
lateBindingValue
- the symbolic version label to use to resolve late bound nodes.followRootAssembly
- iftrue
, the assembly specified by the root node will be used as the "virtual" document.- Returns:
- a virtual document representation of this sysobject.
- Throws:
DfException
- if a server error occurs.
-
getComponentIdCount
Returns the number of chronicle IDs of the component documents that make up the virtual document using the computed attribute _componentID.- Returns:
- the number of chronicle IDs of the component documents that make up the virtual document.
- Throws:
DfException
- if a server error occurs.
-
getComponentId
Returns the chronicle id of the component documents that make up the virtual document using the computed attribute _componentID.- Parameters:
index
- specifies the position of the component in the virtual document.- Returns:
- the chronicle id of the specified component documents that make up the virtual document.
- Throws:
DfException
- if a server error occurs.
-
getContainIdCount
Returns the number of containment objects IDs that link the component document to its containing virtual document using the computed attribute _containID.- Returns:
- the number of containment objects IDs that link the component document to its containing virtual document.
- Throws:
DfException
- if a server error occurs.
-
getContainId
Returns the object id of a containment object that link the component document to its containing virtual document using the computed attribute _containID.- Parameters:
index
- specifies the position of the containment object.- Throws:
DfException
- if a server error occurs.
-
isReference
Returns whether the object is a reference object. This method returns the value of the i_is_reference attribute of the object.- Throws:
DfException
- if a server error occurs.
-
getMasterDocbase
Returns the repository id of the repository that owns the object using the computed attribute _master_docbase.- Returns:
- the repository id of the repository that owns the object.
- Throws:
DfException
- if a server error occurs.
-
addReference
Add a reference to the object in another folder. This folder may be in another repository.- Parameters:
folderId
- specifies the folder the reference object is added.bindingCondition
- the binding condition for the reference object. It can be one of the following 2 values:EXACT_ID - the bindingLabel is ignored. VERSION_LABEL - the
bindingLabel
parameter will specify the version label of the object to bind to.bindingLabel
- the binding label for the reference object.- Returns:
- the object id of the reference object.
- Throws:
DfException
- if a reference cannot be added or if a server error occurs.
-
refreshReference
Refreshes the reference object. Performs a DMCL "refresh".- Throws:
DfException
- if this object is not a reference object or if a server error occurs.
-
getRemoteId
Returns the object id of the remote object.- Returns:
- the object id of the remote object.
- Throws:
DfException
- if this object is not a reference object or if a server error occurs.
-
getAliasSetId
Returns the position of alias-binding scope specified in the associated policy object. The default value is -1. If the sysobject is attached to a policy object and the value of this attribute is -1, then no alias binding is allowed for this sysobject.- Returns:
- the value of the attribute r_policy_alias_set.
- Throws:
DfException
- if a server error occurs.
-
getAliasSet
Returns the symbolic name of the policy alias set. This method uses the _policy_alias_set computed attribute.- Returns:
- the value of the computed attribute _policy_alias_set.
- Throws:
DfException
- if a server error occurs.
-
resolveAlias
Searches an alias set for a specified alias.- Parameters:
scopeAlias
- the name of the alias you want to search for in the following format:%[scope].alias
, wherescope
is the name of the alias set associated with the sysobject.- Returns:
- the alias
- Throws:
DfException
- if a server error occurs.
-
print
String print(String printer, boolean printCover, boolean saveOutput, int numCopies, int startingContentPage, int endingContentPage) throws DfException Prints the object.- Parameters:
printer
- Specifies the printer that you want to use. Use the object name of the output device object that represents the printer. If you do not specify a printer, the default is the system printer.printCover
- Directs the printer to print a cover page.saveOutput
- Directs the system to save the postscript output generated by the printing process.numCopies
- Defines the number of copies that you want to print.startingContentPage
- Defines the content file with which to start printing.endingContentPage
- Defines the content file at which to end printing.- Returns:
- returns the print job's number.
- Throws:
DfException
- if a server error occurs.
-
queue
IDfId queue(String queueOwner, String event, int priority, boolean sendMail, IDfTime dueDate, String message) throws DfException Places the object on a specified queue.The following code example demonstrates how to queue an item into a user's inbox:
IDfSysObject sysObj = (IDfSysObject)sess.getObject(new DfId("0900d5bb8001fd49")); IDfTime t = new DfTime("08/09/2000", "mm/dd/yyyy"); IDfId inboxId = sysObj.queue("tuser","EventName",1,false,time,"Please review.");
- Parameters:
queueOwner
- identifies the queue where you want to place the object. Specify the Documentum username of the queue's owner.event
- provides information to be interpreted by the application about the specified object.priority
- defines an application- or user-interpreted priority level for the queued item.sendMail
- directs the server to send an electronic message to the queue's owner notifying the owner that an item has been placed on his or her queue. The notification includes the text of the message argument.dueDate
- a date for the completion of the work represented by the queued object.message
- defines a message to the owner of the queue on which you are placing the task.- Returns:
- returns the id of an inbox object.
- Throws:
DfException
- if a server error occurs.
-
getHasEvents
Returns whether any users have registered to receive events for the object. This method returns the value of the r_has_events attribute of the object.- Returns:
true
if users have registered to receive events for the object.- Throws:
DfException
- if a server error occurs.
-
getRouters
Returns a collection of routers the document participates in. The attributes in the returned collection are router_id + any additional attributes passed in as an argument.- Parameters:
additionalAttributes
- for the query string. The parameter is in the form of a comma delimited string orderBy contains the attribute name to be used for the order by clause- Returns:
- an IDfCollection interface.
- Throws:
DfException
- if the query failed.
-
getWorkflows
Returns a collection of workflows the document currently participates in. The attributes in the returned collection are r_workflow_id + any additional attributes passed in as an argument- Parameters:
additionalAttributes
- for the query string, and is in the form of a comma delimited string orderBy contains the attribute name to be used for the order by clause- Returns:
- an IDfCollection interface.
- Throws:
DfException
- if the query failed.
-
getVdmPath
Returns the path or paths through a virtual document that lead to a particular component.- Parameters:
rootId
- object ID of a virtual document that contains the component. If you include this argument, the method returns only paths that start with the specified virtual document. Ifnull
, the method returns all paths to component.shortestPath
- ifTRUE
thie method returns only the shortest path to the component. This argument isFALSE
by default.versionList
- Defines one or more version labels to be used to select a version when a late-bound component is encountered in a path. You can specify implicit or symbolic version labels. If you include multiple version labels, separate them with commas in a single string variable.- Returns:
IDfCollection
The Vdmpath method returns a collection in which each row contains a result object that represents one path to the component. The result objects have four repeating attributes: r_object_id, i_chronicle_id, object_name, and title. The values at corresponding index positions across the attributes represent one node in the path to the component. * @exception DfException if a server error occurs. The following code example demonstrates the usage of this method.IDfCollection collection = null; try { collection = childSysObj.getVdmPath(null, false, "approved,released"); String attributeName = "object_name"; while (collection.next()) { IDfTypedObject obj = collection.getTypedObject(); int count = obj.getValueCount(attributeName); StringBuffer vdmPath = new StringBuffer(64 * count); vdmPath.append(obj.getRepeatingString(attributeName, 0)); for (int i = 0; i < count; i++) { vdmPath.append(obj.getRepeatingString(attributeName, i)); vdmPath.append("--->"); } System.out.println(vdmPath.toString()) ; } } catch(DfException dfc); { // Error handling code } finally { if (collection != null) collection.close(); }
- Throws:
DfException
- Since:
- 6.0
-
getVdmPathDQL
IDfCollection getVdmPathDQL(IDfId rootId, boolean shortestPath, String parentType, String bindingLabel, String nodeSortBy) throws DfException Returns the path or paths through a virtual document that lead to a particular component.- Parameters:
rootId
- object ID of a virtual document that contains the component. If you include this argument, the method returns only paths that start with the speci?ed virtual document. Ifnull
, the method returns all paths to component.shortestPath
- ifTRUE
thie method returns only the shortest path to the component. This argument isFALSE
by default.parentType
- object type of the parent documents in the paths to the component.if null, the default value set is "dm_sysobject".bindingLabel
- defines a quali?cation used to select a version when a late-bound component is encountered in the path search. The quali?cation is that part of a DQL SELECT statement that appears after the WHERE clause.nodeSortBy
- defines a selection criteria for returned versions if more than one version of a late-bound component meets the conditions imposed in binding_condition. Applies only if binding_condition is included.- Returns:
IDfCollection
The Vdmpath method returns a collection in which each row contains a result object that represents one path to the component. The result objects have four repeating attributes: r_object_id, i_chronicle_id, object_name, and title. The values at corresponding index positions across the attributes represent one node in the path to the component.- Throws:
DfException
- if a server error occurs.- Since:
- 6.0
-
getExceptionStateName
Returns the name of the exception state associated with the current state, if any exist. An empty string is returned if there is no associated exception state.- Returns:
- the exception state name.
- Throws:
DfException
- if a server error occurs.
-
addDigitalSignature
Create an audit trail entry that records the signing of a DfSysObject by a user.- Parameters:
userName
- The name of the user who actually signed this DfSysObject or null to indicate the connected user signed.reason
- Up to 200 characters describing why the document was signed or null.- Returns:
- The id of the audit audit record this creates.
- Throws:
DfException
-
addESignature
IDfId addESignature(String userName, String password, String signatureJustification, String formatToSign, String hashAlgorithm, String preSignatureHash, String signatureMethodName, String applicationProperties, String passThroughArgument1, String passThroughArgument2) throws DfException Electronically sign a sysobject. This method performs the following actions:
- Verify that Trusted Content Services are enabled.
- Authenticate the user using the password argument.
- Verify that the document is checked-in.
- Validate any pre-existing signatures.
- Verify that preSignatureHash is valid.
If any of the prior actions fail then the method fails. Otherwise, a signature page is added to the sysobject content specified in the formatToSign argument. The content is then hashed and the hash is saved in a dm_addesignature audit record. This record is used for later verification of the signed object. If the sysobject content is altered in the future then the signature will no longer verify.
This method requires that Trusted Content Services are enabled.- Parameters:
userName
- The name of the user who is signing. If empty then the name of the currently logged in user is used.password
- The password used to authenticate the user.signatureJustification
- The reason given for signing the document. This text is included on the signature page.formatToSign
- The content type which will receive the signature page. If empty then 'pdf' is used. A custom signature method must be provided in order to sign formats other than 'pdf'.hashAlgorithm
- Specifies the hash algorithm to use when hashing the content. Currently only "SHA-1" is supported. If empty then "SHA-1" is used.preSignatureHash
- A string containing a hash of the document that is being signed. This is used by the server to confirm identity of the document prior to signing. If empty then no check is made. The hash result is represented in hex and formatted along with the hash algorithm and the content format. Currently only "SHA-1" and "pdf" are supported. The string has the form: {SHA-1}/{pdf}:f64d3298b660119d5adbbf03f4eb683bca98b5a1signatureMethodName
- The name of the server method that will add the signature page. If empty then the default method "esign_pdf" will be used. Custom signature methods can be created and specified here.applicationProperties
- Used to optionally pass additional signature information to the signature method for inclusion on the signature page. See the server addesignature method documentation for signature page customization details. hashing the content. Currently only "SHA-1" is supported. If empty then "SHA-1" is used.passThroughArgument1
- This argument can be used to pass information to custom signature methods. It is unused by the default signature method.passThroughArgument2
- This argument can be used to pass information to custom signature methods. It is unused by the default signature method.- Returns:
- returns the id of the dm_addesignature audit record tha is created.
- Throws:
DfException
- if a server error occurs.
-
verifyESignature
Verify the signature on an electronically signed sysobject. This method performs the following actions:- Verify that Trusted Content Services are enabled.
- Verify that the object is signed.
- Verify that the last addesignature audit record for this object is valid.
- Verify that the signature hash in the audit record matches the object hash.
If any of the prior actions fail then the method fails.- Throws:
DfException
- if the signature cannot be verified.
-
getContentAvailability
IDfContentAvailability getContentAvailability(String formatName, int pageNumber, String pageModifier, String networkLocationIdentifier) throws DfException Returns content availability settings. This does not guarantee that content can be retrieved.- Parameters:
formatName
- specifies the format in which you want the file.pageNumber
- identifies the position of the content when the object has multiple contents; otherwise, use 0.pageModifier
- uniquely identifies a rendition within the same page number and format. Ifnull
is passed then the rendition with an empty page_modifier value is returned. But if there doesn't exist a rendition without a page_modifier andnull
is passed, then the one with the smallest page_modifier (in alphabetical order) will be returned.networkLocationIdentifier
- user network location identifier- Returns:
- content availability
- Throws:
DfException
- if a server error occurs.- Since:
- D6
-
isContentTransferCapabilityEnabled
boolean isContentTransferCapabilityEnabled(String networkLocationIdentifier, IDfContentTransferCapability capability) throws DfException Returns whether content transfer capability is enabled for the object- Parameters:
networkLocationIdentifier
- user network location identifiercapability
- content transfer capability- Returns:
- true, if capability is enabled, false otherwise.
- Throws:
DfException
- if a server error occurs.
-
getAcsRequests
IDfEnumeration getAcsRequests(String formatName, int pageNumber, String pageModifier, IDfAcsTransferPreferences transferPreferences) throws DfException Returns anIDfEnumeration
object containing a list ofIDfAcsRequest
objects. These objects allow accessing content, using ACS and/or BOCS.- Parameters:
formatName
- specifies the format in which you want the file.pageNumber
- identifies the position of the content when the object has multiple contents; otherwise, use 0.pageModifier
- uniquely identifies a rendition within the same page number and format. Ifnull
is passed then the rendition with an empty page_modifier value is returned. But if there doesn't exist a rendition without a page_modifier andnull
is passed, then the one with the smallest page_modifier (in alphabetical order) will be returned.transferPreferences
-IDfAcsTransferPreferences
object to be used.- Returns:
IDfEnumeration
ofIDfAcsRequest
objects for the requested content.- Throws:
DfException
- if a server error occurs.- Since:
- D6
-
getRetainUntilDate
Returns the retain until date for this object.- Throws:
DfException
-
getRetainerCount
Return the number of retainers on this object. The returned value does not reflect unsaved changes.- Throws:
DfException
-
getRetainerId
Return the id of the requested retainer. The returned value does not include unsaved changes.- Parameters:
index
-- Throws:
DfException
-
getContentSize
Return the content size according to the page, format and pageModifier of the content- Parameters:
page
- page number of the contentformatName
- format of the contentpageModifier
- pageModifier of the content- Returns:
- content size of the qualified content
- Throws:
DfException
-
getOtherFileSize
Return the other file (resource fork for mac os) size according to the page, format and pageModifier of the content- Parameters:
page
- page number of the contentformatName
- format of the contentpageModifier
- pageModifier of the content- Returns:
- other file size of the qualified content
- Throws:
DfException
-