Package com.emc.documentum.rest.dfc
Interface SysObjectManager
- All Superinterfaces:
ObjectManager
The sysobject manager.
-
Method Summary
Modifier and TypeMethodDescriptioncancelCheckOut
(String id) Deprecated.<T extends SysObject>
TcancelCheckOut
(String id, Class<T> targetClass) Deprecated.since 7.3, please useVersioningManager.cancelCheckOut(String, Class)
boolean
checkEnableChangePermit
(String objectId) Check whether the current login user can update the permission set of a specified sysobject.checkIn
(String chronicleId, String id, String versionLabels, CheckinPolicy versionPolicy, boolean makeCurrent, InputStream contentStream, int pageNumber, String format, boolean retainLock, String comment) Deprecated.Since 7.3, please use the generic methodVersioningManager.checkIn(String, ContentfulObject, String, CheckinPolicy, boolean, int, String, boolean, String)
.<T extends SysObject>
TcheckIn
(String chronicleId, String id, String versionLabels, CheckinPolicy versionPolicy, boolean makeCurrent, InputStream contentStream, int pageNumber, String format, boolean retainLock, String comment, Class<T> targetClass) Deprecated.checkIn
(String chronicleId, String id, String versionLabels, CheckinPolicy versionPolicy, boolean makeCurrent, InputStream contentStream, int pageNumber, String format, long contentLength, String charset, boolean retainLock, String comment) Deprecated.<T extends SysObject>
TcheckIn
(String chronicleId, T object, String versionLabels, CheckinPolicy versionPolicy, boolean makeCurrent, boolean retainLock, String comment) Deprecated.<T extends ContentfulObject>
TcheckIn
(String chronicleId, T object, String versionLabels, CheckinPolicy versionPolicy, boolean makeCurrent, int pageNumber, String format, boolean retainLock, String comment) Deprecated.<T extends ContentfulObject>
TcheckInWithContents
(String chronicleId, T object, String versionLabels, CheckinPolicy versionPolicy, boolean makeCurrent, int pageNumber, boolean retainLock, String comment) Deprecated.<T extends ContentfulObject>
TcheckInWithRenditions
(String chronicleId, T object, String versionLabels, CheckinPolicy versionPolicy, boolean makeCurrent, int pageNumber, boolean retainLock, String comment) Deprecated.Deprecated.since 7.3, please useVersioningManager.checkOut(String)
<T extends SysObject>
TDeprecated.since 7.3, please useVersioningManager.checkOut(String, Class)
<T extends SysObject>
TcompleteDcWrite
(String objectId, InputStream completeResponse, Class<T> targetClass) Complete the distributed content write.Deprecated.copy
(String objectId, String folderId, boolean deepCopy, boolean replicateVdChildren, boolean retainAcl, ContentfulObject object) Deprecated.since Feldspar 16.3, please usecopy(String, String, ContentfulObject, CopyOptions)
copy
(String objectId, String folderId, boolean deepCopy, boolean replicateVdChildren, ContentfulObject object) Deprecated.<T extends SysObject>
Tcopy
(String objectId, String folderId, boolean deepCopy, boolean replicateVdChildren, Class<T> targetClass) Deprecated.copy
(String objectId, String folderId, ContentfulObject object, com.emc.documentum.rest.dfc.util.CopyOptions copyOptions) Copy object into a folder<T extends SysObject>
TcreateSysObjectUnderParentFolder
(T object, String parentId, boolean validateUnknown, AttributeView attributeView) Create a sysobject under the parent folder.<T extends SysObject>
TcreateSysObjectUnderParentFolderWithRenditions
(T object, String parentId, boolean validateUnknown, AttributeView attributeView) Create a sysobject under the parent folder.boolean
deleteSysObject
(String id, boolean deleteFolderChildren, boolean deleteMultiLinkedFolderChildren, DeleteVersionPolicy policy) Delete a sysobject with advanced optionsboolean
deleteSysObjectTx
(String id, boolean deleteFolderChildren, boolean deleteMultiLinkedFolderChildren, boolean deleteVirtualDocumentAllDescendant, DeleteVersionPolicy policy, BasicType... constrainedTypes) This is the transactional version ofdeleteSysObject(String, boolean, boolean, com.emc.documentum.rest.constant.DeleteVersionPolicy)
It supports a transactional context when the underlying object contains multiple children, this method ensures the ACID for the object.boolean
deleteSysObjectTx
(String id, boolean deleteFolderChildren, boolean deleteMultiLinkedFolderChildren, DeleteVersionPolicy policy, BasicType... constrainedTypes) This is the transactional version ofdeleteSysObject(String, boolean, boolean, com.emc.documentum.rest.constant.DeleteVersionPolicy)
It supports a transactional context when the underlying object contains multiple children, this method ensures the ACID for the object.boolean
deleteSysObjectTxByQua
(String qualification, boolean deleteFolderChildren, boolean deleteMultiLinkedFolderChildren, boolean deleteVirtualDocumentAllDescendant, DeleteVersionPolicy policy, BasicType... constrainedTypes) This is the transactional version ofdeleteSysObject(String, boolean, boolean, com.emc.documentum.rest.constant.DeleteVersionPolicy)
It supports a transactional context when the underlying object contains multiple children, this method ensures the ACID for the object.boolean
deleteSysObjectTxByQua
(String qualification, boolean deleteFolderChildren, boolean deleteMultiLinkedFolderChildren, DeleteVersionPolicy policy, BasicType... constrainedTypes) This is the transactional version ofdeleteSysObject(String, boolean, boolean, com.emc.documentum.rest.constant.DeleteVersionPolicy)
It supports a transactional context when the underlying object contains multiple children, this method ensures the ACID for the object.Deprecated.since 7.3, please useVersioningManager.getCurrentVersion(String)
<T extends SysObject>
TgetCurrentVersion
(String id, Class<T> targetClass) Deprecated.since 7.3, please useVersioningManager.getCurrentVersion(String, Class)
getObjectById
(String id, AttributeView attributeView, boolean includePermission, boolean includeVersionPolicy, BasicType... constrainedTypes) Get persistent object by ID.<T extends PersistentObject>
TgetObjectById
(String id, AttributeView attributeView, boolean includePermission, boolean includeVersionPolicy, Class<T> targetClass, BasicType... constrainedTypes) Get persistent object by ID.<T extends PersistentObject>
TtoPersistentObject
(com.documentum.fc.client.IDfPersistentObject dfObject, AttributeView attributeView, Class<T> targetClass) Convert DFC persistent object to RESTPersistentObject
with specified attribute view applied<T extends PersistentObject>
TtoPersistentObject
(com.documentum.fc.client.IDfPersistentObject dfObject, Class<T> targetClass) Convert DFC persistent object to RESTPersistentObject
with all attribute view applied<T extends SysObject>
TvalidateAndCreateChildSysObjectRequestingDcWrite
(T object, String folderId, long length, String format, String netLoc, boolean async, String completionUrlBase, boolean ipBasedNetworkLocationOpted, String validationPolicy) Create a sysobject under the parent folder by requesting distributed content write URL(s).<T extends SysObject>
TvalidateAndCreateSysObjectUnderParentFolder
(T object, String parentId, boolean validateUnknown, AttributeView attributeView, String constraintsValidationPolicy) Create a sysobject under the parent folder.Methods inherited from interface com.emc.documentum.rest.dfc.ObjectManager
checkObjectExistence, createObject, deleteObject, getBasicObjectTypeById, getFolderAncestorsById, getFolderAncestorsById, getFolderByPath, getObjectById, getObjectById, getObjectByQualification, getObjectByQualification, updateObject, updateObjectByQualification, validateAndCreateObject, validateAndUpdateObject
-
Method Details
-
getObjectById
PersistentObject getObjectById(String id, AttributeView attributeView, boolean includePermission, boolean includeVersionPolicy, BasicType... constrainedTypes) throws com.documentum.fc.common.DfException Get persistent object by ID.- Parameters:
id
- The ID of persistent objectattributeView
- the attribute viewincludePermission
- TRUE to include current login user's permission set on the target objectincludeVersionPolicy
- TRUE to include available version for check inconstrainedTypes
- this object to get must belong to the type within the constrained type list; if null, no constrain.- Returns:
- The persistent object with attributes
- Throws:
com.documentum.fc.common.DfException
- when any exception is caught during the operation
-
getObjectById
<T extends PersistentObject> T getObjectById(String id, AttributeView attributeView, boolean includePermission, boolean includeVersionPolicy, Class<T> targetClass, BasicType... constrainedTypes) throws com.documentum.fc.common.DfException Get persistent object by ID.- Type Parameters:
T
- the PersistentObject or its subclass- Parameters:
id
- The ID of persistent objectattributeView
- the attribute viewincludePermission
- TRUE to include current login user's permission set on the target objectincludeVersionPolicy
- TRUE to include available version for check inconstrainedTypes
- this object to get must belong to the type within the constrained type list; if null, no constrain.targetClass
- the return class instance type for the model- Returns:
- The persistent object with attributes
- Throws:
com.documentum.fc.common.DfException
- when any exception is caught during the operation
-
createSysObjectUnderParentFolder
<T extends SysObject> T createSysObjectUnderParentFolder(T object, String parentId, boolean validateUnknown, AttributeView attributeView) throws com.documentum.fc.common.DfException Create a sysobject under the parent folder. If the object has more than one content to be stored, then the content will be saved as primary contents for different pages.- Type Parameters:
T
- the PersistentObject or its subclass- Parameters:
object
- The persistent object with type and attributesvalidateUnknown
- Indicate if to validate unknown attribute names; TRUE to validate and error occurs if there are unresolved attribute names; FALSE to ignore unresolved attribute names; Default is FALSE.attributeView
- the attribute viewparentId
- The existing parent folder ID- Returns:
- The newly created sysobject with ID and type only
- Throws:
com.documentum.fc.common.DfException
- when any exception is caught during the operation
-
validateAndCreateSysObjectUnderParentFolder
<T extends SysObject> T validateAndCreateSysObjectUnderParentFolder(T object, String parentId, boolean validateUnknown, AttributeView attributeView, String constraintsValidationPolicy) throws com.documentum.fc.common.DfException Create a sysobject under the parent folder. If the object has more than one content to be stored, then the content will be saved as primary contents for different pages.- Type Parameters:
T
- the PersistentObject or its subclass- Parameters:
object
- The persistent object with type and attributesvalidateUnknown
- Indicate if to validate unknown attribute names; TRUE to validate and error occurs if there are unresolved attribute names; FALSE to ignore unresolved attribute names; Default is FALSE.attributeView
- the attribute viewparentId
- The existing parent folder IDconstraintsValidationPolicy
- the constraints validation policy need to be applied on the sysobject.- Returns:
- The newly created sysobject with ID and type only
- Throws:
com.documentum.fc.common.DfException
- when any exception is caught during the operation
-
createSysObjectUnderParentFolderWithRenditions
<T extends SysObject> T createSysObjectUnderParentFolderWithRenditions(T object, String parentId, boolean validateUnknown, AttributeView attributeView) throws com.documentum.fc.common.DfException Create a sysobject under the parent folder. If the object have more than one content to be stored, then the content will be saved as one primary and other renditions for the page 0.- Type Parameters:
T
- the PersistentObject or its subclass- Parameters:
object
- The persistent object with type and attributesparentId
- The existing parent folder IDvalidateUnknown
- Indicate if to validate unknown attribute names; TRUE to validate and error occurs if there are unresolved attribute names; FALSE to ignore unresolved attribute names; Default is FALSE.attributeView
- the attribute view- Returns:
- The newly created sysobject with ID and type only
- Throws:
com.documentum.fc.common.DfException
- when any exception is caught during the operation
-
deleteSysObject
boolean deleteSysObject(String id, boolean deleteFolderChildren, boolean deleteMultiLinkedFolderChildren, DeleteVersionPolicy policy) throws com.documentum.fc.common.DfException Delete a sysobject with advanced options- Parameters:
id
- The ID of the sysobject to be removeddeleteFolderChildren
- When working with folders, TRUE indicates to delete the folder and all of its descendants; False indicates just to delete the root folder.deleteMultiLinkedFolderChildren
- When working with folders, TRUE indicates to delete the folder and all descendants, regardless of other folders into which they are linked; FALSE indicates to unlink folder descendants from the folder being deleted if the folder descendants have links to other folders, and to remove folder descendants that are only linked to the folder being deleted.policy
- When working with documents, it indicates how to handle the versions.- Returns:
true
if the object is deleted successfully- Throws:
com.documentum.fc.common.DfException
- when any exception is caught during the operation
-
deleteSysObjectTx
boolean deleteSysObjectTx(String id, boolean deleteFolderChildren, boolean deleteMultiLinkedFolderChildren, DeleteVersionPolicy policy, BasicType... constrainedTypes) throws com.documentum.fc.common.DfException This is the transactional version ofdeleteSysObject(String, boolean, boolean, com.emc.documentum.rest.constant.DeleteVersionPolicy)
It supports a transactional context when the underlying object contains multiple children, this method ensures the ACID for the object.- Parameters:
id
- The ID of the sysobject to be removeddeleteFolderChildren
- When working with folders, TRUE indicates to delete the folder and all of its descendants; False indicates just to delete the root folder.deleteMultiLinkedFolderChildren
- When working with folders, TRUE indicates to delete the folder and all descendants, regardless of other folders into which they are linked; FALSE indicates to unlink folder descendants from the folder being deleted if the folder descendants have links to other folders, and to remove folder descendants that are only linked to the folder being deleted.policy
- When working with documents, it indicates how to handle the versions.constrainedTypes
- this object to delete must belong to the type within the constrained type list; if null, no constrain.- Returns:
true
if the object is deleted successfully- Throws:
com.documentum.fc.common.DfException
- when any exception is caught during the operation
-
deleteSysObjectTx
boolean deleteSysObjectTx(String id, boolean deleteFolderChildren, boolean deleteMultiLinkedFolderChildren, boolean deleteVirtualDocumentAllDescendant, DeleteVersionPolicy policy, BasicType... constrainedTypes) throws com.documentum.fc.common.DfException This is the transactional version ofdeleteSysObject(String, boolean, boolean, com.emc.documentum.rest.constant.DeleteVersionPolicy)
It supports a transactional context when the underlying object contains multiple children, this method ensures the ACID for the object.- Parameters:
id
- The ID of the sysobject to be removeddeleteFolderChildren
- When working with folders, TRUE indicates to delete the folder and all of its descendants; False indicates just to delete the root folder.deleteMultiLinkedFolderChildren
- When working with folders, TRUE indicates to delete the folder and all descendants, regardless of other folders into which they are linked; FALSE indicates to unlink folder descendants from the folder being deleted if the folder descendants have links to other folders, and to remove folder descendants that are only linked to the folder being deleted.deleteVirtualDocumentAllDescendant
- True indicates remove the all the descendants if the object is virtualpolicy
- When working with documents, it indicates how to handle the versions.constrainedTypes
- this object to delete must belong to the type within the constrained type list; if null, no constrain. @returntrue
if the object is deleted successfully- Returns:
- whether execute successfully or fail
- Throws:
com.documentum.fc.common.DfException
- when any exception is caught during the operation
-
deleteSysObjectTxByQua
boolean deleteSysObjectTxByQua(String qualification, boolean deleteFolderChildren, boolean deleteMultiLinkedFolderChildren, DeleteVersionPolicy policy, BasicType... constrainedTypes) throws com.documentum.fc.common.DfException This is the transactional version ofdeleteSysObject(String, boolean, boolean, com.emc.documentum.rest.constant.DeleteVersionPolicy)
It supports a transactional context when the underlying object contains multiple children, this method ensures the ACID for the object.- Parameters:
qualification
- the DQL qualification expression identifying the object to removedeleteFolderChildren
- When working with folders, TRUE indicates to delete the folder and all of its descendants; False indicates just to delete the root folder.deleteMultiLinkedFolderChildren
- When working with folders, TRUE indicates to delete the folder and all descendants, regardless of other folders into which they are linked; FALSE indicates to unlink folder descendants from the folder being deleted if the folder descendants have links to other folders, and to remove folder descendants that are only linked to the folder being deleted.policy
- When working with documents, it indicates how to handle the versions.constrainedTypes
- this object to delete must belong to the type within the constrained type list; if null, no constrain.- Returns:
- whether delete successfully
- Throws:
com.documentum.fc.common.DfException
- when any exception is caught during the operation
-
deleteSysObjectTxByQua
boolean deleteSysObjectTxByQua(String qualification, boolean deleteFolderChildren, boolean deleteMultiLinkedFolderChildren, boolean deleteVirtualDocumentAllDescendant, DeleteVersionPolicy policy, BasicType... constrainedTypes) throws com.documentum.fc.common.DfException This is the transactional version ofdeleteSysObject(String, boolean, boolean, com.emc.documentum.rest.constant.DeleteVersionPolicy)
It supports a transactional context when the underlying object contains multiple children, this method ensures the ACID for the object.- Parameters:
qualification
- the DQL qualification expression identifying the object to removedeleteFolderChildren
- When working with folders, TRUE indicates to delete the folder and all of its descendants; False indicates just to delete the root folder.deleteMultiLinkedFolderChildren
- When working with folders, TRUE indicates to delete the folder and all descendants, regardless of other folders into which they are linked; FALSE indicates to unlink folder descendants from the folder being deleted if the folder descendants have links to other folders, and to remove folder descendants that are only linked to the folder being deleted.deleteVirtualDocumentAllDescendant
- True indicates remove the all the descendants if the object is virtualpolicy
- When working with documents, it indicates how to handle the versions.constrainedTypes
- this object to delete must belong to the type within the constrained type list; if null, no constrain.- Returns:
- whether delete successfully
- Throws:
com.documentum.fc.common.DfException
- when any exception is caught during the operation
-
checkOut
Deprecated.since 7.3, please useVersioningManager.checkOut(String)
Check out specified object by its id- Parameters:
id
- The ID of sysobject to be checked out- Returns:
- checked out object
- Throws:
com.documentum.fc.common.DfException
- when any exception is caught during the operation
-
checkOut
@Deprecated <T extends SysObject> T checkOut(String id, Class<T> targetClass) throws com.documentum.fc.common.DfException Deprecated.since 7.3, please useVersioningManager.checkOut(String, Class)
Check out specified object by its id- Type Parameters:
T
- the SysObject or its subclass- Parameters:
id
- The ID of sysobject to be checked outtargetClass
- the return class instance type for the model- Returns:
- checked out object
- Throws:
com.documentum.fc.common.DfException
- when any exception is caught during the operation
-
cancelCheckOut
Deprecated.since 7.3, please useVersioningManager.cancelCheckOut(String)
Cancel check out specified object by its id- Parameters:
id
- The ID of sysobject to be cancelled- Returns:
- cancelled object
- Throws:
com.documentum.fc.common.DfException
- when any exception is caught during the operation
-
cancelCheckOut
@Deprecated <T extends SysObject> T cancelCheckOut(String id, Class<T> targetClass) throws com.documentum.fc.common.DfException Deprecated.since 7.3, please useVersioningManager.cancelCheckOut(String, Class)
Cancel check out specified object by its id- Type Parameters:
T
- the SysObject or its subclass- Parameters:
id
- The ID of sysobject to be cancelledtargetClass
- the return class instance type for the model- Returns:
- cancelled object
- Throws:
com.documentum.fc.common.DfException
- when any exception is caught during the operation
-
checkIn
@Deprecated <T extends ContentfulObject> T checkIn(String chronicleId, T object, String versionLabels, CheckinPolicy versionPolicy, boolean makeCurrent, int pageNumber, String format, boolean retainLock, String comment) throws com.documentum.fc.common.DfException Deprecated.Check in specified object- Type Parameters:
T
- the ContentfulObject or its subclass- Parameters:
chronicleId
- the root id of the version treeobject
- the object to be checked in, it may contains attributes need be updatedversionLabels
- comma delimited symbolic labels to set for the new version; 'CURRENT' and numeric labels are not allowed; if makeCurrent is set to False, at least one symbolic label(s) must be specified.versionPolicy
- CheckinPolicymakeCurrent
- set to True if making the new version as CURRENT version.pageNumber
- the rendition page numberformat
- the rendition formatretainLock
- whether keep lock after check incomment
- the check in comment- Returns:
- checked in object
- Throws:
com.documentum.fc.common.DfException
- when any exception is caught during the operation
-
checkIn
@Deprecated <T extends SysObject> T checkIn(String chronicleId, T object, String versionLabels, CheckinPolicy versionPolicy, boolean makeCurrent, boolean retainLock, String comment) throws com.documentum.fc.common.DfException Deprecated.Check in specified object- Type Parameters:
T
- the SysObject or its subclass- Parameters:
chronicleId
- the root id of the version treeobject
- the object to be checked in, it may contains attributes need be updatedversionLabels
- comma delimited symbolic labels to set for the new version; 'CURRENT' and numeric labels are not allowed; if makeCurrent is set to False, at least one symbolic label(s) must be specified.versionPolicy
- CheckinPolicymakeCurrent
- set to True if making the new version as CURRENT version.retainLock
- whether keep lock after check incomment
- the check in comment- Returns:
- checked in object
- Throws:
com.documentum.fc.common.DfException
- when any exception is caught during the operation
-
checkIn
@Deprecated SysObject checkIn(String chronicleId, String id, String versionLabels, CheckinPolicy versionPolicy, boolean makeCurrent, InputStream contentStream, int pageNumber, String format, boolean retainLock, String comment) throws com.documentum.fc.common.DfException Deprecated.Since 7.3, please use the generic methodVersioningManager.checkIn(String, ContentfulObject, String, CheckinPolicy, boolean, int, String, boolean, String)
.Check in specified object- Parameters:
chronicleId
- the root id of the version treeid
- the object id to be checked inversionLabels
- comma delimited symbolic labels to set for the new version; 'CURRENT' and numeric labels are not allowed; if makeCurrent is set to False, at least one symbolic label(s) must be specified.versionPolicy
- CheckinPolicymakeCurrent
- set to True if making the new version as CURRENT version.contentStream
- the content streampageNumber
- the rendition page numberformat
- the rendition formatretainLock
- whether keep lock after check incomment
- the check in comment- Returns:
- checked in object
- Throws:
com.documentum.fc.common.DfException
- when any exception is caught during the operation
-
checkIn
@Deprecated SysObject checkIn(String chronicleId, String id, String versionLabels, CheckinPolicy versionPolicy, boolean makeCurrent, InputStream contentStream, int pageNumber, String format, long contentLength, String charset, boolean retainLock, String comment) throws com.documentum.fc.common.DfException Deprecated.Check in specified object- Parameters:
chronicleId
- the root id of the version treeid
- the object id to be checked inversionLabels
- comma delimited symbolic labels to set for the new version; 'CURRENT' and numeric labels are not allowed; if makeCurrent is set to False, at least one symbolic label(s) must be specified.versionPolicy
- CheckinPolicymakeCurrent
- set to True if making the new version as CURRENT version.contentStream
- the content streampageNumber
- the rendition page numberformat
- the rendition formatcontentLength
- the length of the contentcharset
- the charset of the contentretainLock
- whether keep lock after check incomment
- the check in comment- Returns:
- checked in object
- Throws:
com.documentum.fc.common.DfException
- when any exception is caught during the operation
-
checkIn
@Deprecated <T extends SysObject> T checkIn(String chronicleId, String id, String versionLabels, CheckinPolicy versionPolicy, boolean makeCurrent, InputStream contentStream, int pageNumber, String format, boolean retainLock, String comment, Class<T> targetClass) throws com.documentum.fc.common.DfException Deprecated.Check in specified object- Type Parameters:
T
- the SysObject or its subclass- Parameters:
chronicleId
- the root id of the version treeid
- the object id to be checked inversionLabels
- comma delimited symbolic labels to set for the new version; 'CURRENT' and numeric labels are not allowed; if makeCurrent is set to False, at least one symbolic label(s) must be specified.versionPolicy
- CheckinPolicymakeCurrent
- set to True if making the new version as CURRENT version.contentStream
- the content streampageNumber
- the rendition page numberformat
- the rendition formatretainLock
- whether keep lock after check incomment
- the check in commenttargetClass
- the return class instance type for the model- Returns:
- checked in object
- Throws:
com.documentum.fc.common.DfException
- when any exception is caught during the operation
-
checkInWithContents
@Deprecated <T extends ContentfulObject> T checkInWithContents(String chronicleId, T object, String versionLabels, CheckinPolicy versionPolicy, boolean makeCurrent, int pageNumber, boolean retainLock, String comment) throws com.documentum.fc.common.DfException Deprecated.check in the object contents, the object metadata is optional. the object has more than one content to be checked in all the content will be saved as the primary content, starts from the page of pageNumber- Type Parameters:
T
- the type of ContentfulObject- Parameters:
chronicleId
- the root id of the version treeobject
- the object to be checked inversionLabels
- comma delimited symbolic labels to set for the new version; 'CURRENT' and numeric labels are not allowed; if makeCurrent is set to False, at least one symbolic label(s) must be specified.versionPolicy
- CheckinPolicymakeCurrent
- set to True if making the new version as CURRENT version.pageNumber
- the rendition page numberretainLock
- whether keep lock after check incomment
- the check in comment- Returns:
- the checked in object
- Throws:
com.documentum.fc.common.DfException
- any exceptions
-
checkInWithRenditions
@Deprecated <T extends ContentfulObject> T checkInWithRenditions(String chronicleId, T object, String versionLabels, CheckinPolicy versionPolicy, boolean makeCurrent, int pageNumber, boolean retainLock, String comment) throws com.documentum.fc.common.DfException Deprecated.check in the object contents, the object metadata is optional. the object has more than one content to be checked in the first content in the content collection will be saved as the primary content, and all remaining will be saved as renditions on the specified page.- Type Parameters:
T
- the type of ContentfulObject- Parameters:
chronicleId
- the root id of the version treeobject
- the object to be checked inversionLabels
- comma delimited symbolic labels to set for the new version; 'CURRENT' and numeric labels are not allowed; if makeCurrent is set to False, at least one symbolic label(s) must be specified.versionPolicy
- CheckinPolicymakeCurrent
- set to True if making the new version as CURRENT version.pageNumber
- the rendition page numberretainLock
- whether keep lock after check incomment
- the check in comment- Returns:
- the checked in object
- Throws:
com.documentum.fc.common.DfException
- any exceptions
-
copy
@Deprecated SysObject copy(String objectId, String folderId, boolean deepCopy, boolean replicateVdChildren) throws com.documentum.fc.common.DfException Deprecated.Copy object into a folder- Parameters:
objectId
- source object idfolderId
- target folder iddeepCopy
- if source object is a folder, whether copy its contentsreplicateVdChildren
- if copy virtual documents in a folder with deep copy, whether copy or refer to its children- Returns:
- copied object
- Throws:
com.documentum.fc.common.DfException
- when any exception is caught during the operation
-
copy
@Deprecated SysObject copy(String objectId, String folderId, boolean deepCopy, boolean replicateVdChildren, ContentfulObject object) throws com.documentum.fc.common.DfException Deprecated.Copy object into a folder- Parameters:
objectId
- source object idfolderId
- target folder iddeepCopy
- if source object is a folder, whether copy its contentsreplicateVdChildren
- if copy virtual documents in a folder with deep copy, whether copy or refer to its childrenobject
- object contained attributes should be overwritten- Returns:
- copied object
- Throws:
com.documentum.fc.common.DfException
- when any exception is caught during the operation
-
copy
@Deprecated SysObject copy(String objectId, String folderId, boolean deepCopy, boolean replicateVdChildren, boolean retainAcl, ContentfulObject object) throws com.documentum.fc.common.DfException Deprecated.since Feldspar 16.3, please usecopy(String, String, ContentfulObject, CopyOptions)
Copy object into a folder- Parameters:
objectId
- source object idfolderId
- target folder iddeepCopy
- if source object is a folder, whether copy its contentsreplicateVdChildren
- if copy virtual documents in a folder with deep copy, whether copy or refer to its childrenretainAcl
- if retain cal, then the acl of the original object will be copied to the new objectobject
- object contained attributes should be overwritten- Returns:
- copied object
- Throws:
com.documentum.fc.common.DfException
- when any exception is caught during the operation
-
copy
SysObject copy(String objectId, String folderId, ContentfulObject object, com.emc.documentum.rest.dfc.util.CopyOptions copyOptions) throws com.documentum.fc.common.DfException Copy object into a folder- Parameters:
objectId
- source object idfolderId
- target folder idobject
- object contained attributes should be overwrittencopyOptions
- specify the copy options- Returns:
- copied object
- Throws:
com.documentum.fc.common.DfException
- when any exception is caught during the operation
-
copy
@Deprecated <T extends SysObject> T copy(String objectId, String folderId, boolean deepCopy, boolean replicateVdChildren, Class<T> targetClass) throws com.documentum.fc.common.DfException Deprecated.Copy object into a folder.- Type Parameters:
T
- the SysObject or its subclass- Parameters:
objectId
- source object idfolderId
- target folder iddeepCopy
- if source object is a folder, whether copy its contentsreplicateVdChildren
- if copy virtual documents in a folder with deep copy, whether copy or refer to its childrentargetClass
- the return class instance type for the model- Returns:
- copied object
- Throws:
com.documentum.fc.common.DfException
- when any exception is caught during the operation
-
getCurrentVersion
Deprecated.since 7.3, please useVersioningManager.getCurrentVersion(String)
Get current object by an object id.- Parameters:
id
- the object id- Returns:
- the current version of the version tree
- Throws:
com.documentum.fc.common.DfException
- when any exception is caught during the operation
-
getCurrentVersion
@Deprecated <T extends SysObject> T getCurrentVersion(String id, Class<T> targetClass) throws com.documentum.fc.common.DfException Deprecated.since 7.3, please useVersioningManager.getCurrentVersion(String, Class)
Get current object by an object id.- Type Parameters:
T
- the SysObject or its subclass- Parameters:
id
- the object idtargetClass
- the return class instance type for the model- Returns:
- the current version of the version tree
- Throws:
com.documentum.fc.common.DfException
- when any exception is caught during the operation
-
checkEnableChangePermit
Check whether the current login user can update the permission set of a specified sysobject.- Parameters:
objectId
- the sysobject object id- Returns:
true
if the user can update the object's permission set- Throws:
com.documentum.fc.common.DfException
- when any exception is caught during the operation
-
toPersistentObject
<T extends PersistentObject> T toPersistentObject(com.documentum.fc.client.IDfPersistentObject dfObject, AttributeView attributeView, Class<T> targetClass) throws com.documentum.fc.common.DfException Convert DFC persistent object to RESTPersistentObject
with specified attribute view applied- Type Parameters:
T
- the target class- Parameters:
dfObject
- DFC persistent object to convertattributeView
- attribute view applied during converttargetClass
- the target REST persistent object- Returns:
- converted REST persistent object
- Throws:
com.documentum.fc.common.DfException
- when any exception is caught during the operation
-
toPersistentObject
<T extends PersistentObject> T toPersistentObject(com.documentum.fc.client.IDfPersistentObject dfObject, Class<T> targetClass) throws com.documentum.fc.common.DfException Convert DFC persistent object to RESTPersistentObject
with all attribute view applied- Type Parameters:
T
- the target class- Parameters:
dfObject
- DFC persistent object to converttargetClass
- the target REST persistent object- Returns:
- converted REST persistent object
- Throws:
com.documentum.fc.common.DfException
- when any exception is caught during the operation
-
completeDcWrite
<T extends SysObject> T completeDcWrite(String objectId, InputStream completeResponse, Class<T> targetClass) throws com.documentum.fc.common.DfException Complete the distributed content write.- Type Parameters:
T
- the PersistentObject or its subclass- Parameters:
objectId
- the sysobject IDcompleteResponse
- the content write completion response from an ACS server or a BOCS servertargetClass
- the return class instance type for the model- Returns:
- the sysobject with content write completion
- Throws:
com.documentum.fc.common.DfException
- when any exception is caught during the operation
-
validateAndCreateChildSysObjectRequestingDcWrite
<T extends SysObject> T validateAndCreateChildSysObjectRequestingDcWrite(T object, String folderId, long length, String format, String netLoc, boolean async, String completionUrlBase, boolean ipBasedNetworkLocationOpted, String validationPolicy) throws com.documentum.fc.common.DfException Create a sysobject under the parent folder by requesting distributed content write URL(s).- Type Parameters:
T
- the PersistentObject or its subclass- Parameters:
object
- The persistent object with type and attributesfolderId
- The existing parent folder IDlength
- The planned primary content length to importformat
- The planned primary content format to importnetLoc
- The network location for choosing a BOCS server to importcompletionUrlBase
- the REST completion URL base for ACS server to write backasync
- whether turn on the bocs sync writeipBasedNetworkLocationOpted
- whether the network location selection need to be done based on client ip.validationPolicy
- the constraints validation policy need to be applied on the sysobject.- Returns:
- The newly created sysobject with ID and type only
- Throws:
com.documentum.fc.common.DfException
- when any exception is caught during the operation
-
VersioningManager.cancelCheckOut(String)