Package com.emc.documentum.rest.dfc
Interface VersioningManager
public interface VersioningManager
The versioning manager.
-
Method Summary
Modifier and TypeMethodDescriptioncancelCheckOut
(String id) Deprecated.since feldspar 16.3, please use method cancelCheckOut(String id,LockOptions lockOptions)cancelCheckOut
(String id, com.emc.documentum.rest.dfc.util.LockOptions lockOptions) Cancel check out specified object by its id<T extends SysObject>
TcancelCheckOut
(String id, Class<T> targetClass) Cancel check out specified object by its idcheckIn
(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 methodcheckIn(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) Check in specified objectcheckIn
(String chronicleId, String id, String versionLabels, CheckinPolicy versionPolicy, boolean makeCurrent, InputStream contentStream, int pageNumber, String format, long contentLength, String charset, boolean retainLock, String comment) Check in specified object<T extends SysObject>
TcheckIn
(String chronicleId, T object, String versionLabels, CheckinPolicy versionPolicy, boolean makeCurrent, boolean retainLock, String comment) Check in specified object<T extends ContentfulObject>
TcheckIn
(String chronicleId, T object, String versionLabels, CheckinPolicy versionPolicy, boolean makeCurrent, int pageNumber, String format, boolean retainLock, String comment) Check in specified object<T extends ContentfulObject>
TcheckInWithContents
(String chronicleId, T object, String versionLabels, CheckinPolicy versionPolicy, boolean makeCurrent, int pageNumber, boolean retainLock, String comment) check in the object contents, the object metadata is optional.<T extends ContentfulObject>
TcheckInWithRenditions
(String chronicleId, T object, String versionLabels, CheckinPolicy versionPolicy, boolean makeCurrent, int pageNumber, boolean retainLock, String comment) check in the object contents, the object metadata is optional.Deprecated.since feldspar 16.3, please use method checkOut(String id,LockOptions lockOptions)Check out specified object by its id<T extends SysObject>
TCheck out specified object by its idGet current object by an object id.<T extends SysObject>
TgetCurrentVersion
(String id, Class<T> targetClass) Get current object by an object id.
-
Method Details
-
checkOut
Deprecated.since feldspar 16.3, please use method checkOut(String id,LockOptions lockOptions)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
SysObject checkOut(String id, com.emc.documentum.rest.dfc.util.LockOptions lockOptions) throws com.documentum.fc.common.DfException Check out specified object by its id- Parameters:
id
- The ID of the object to be checked outlockOptions
- Specify the checkout behavior for a virtual document- Returns:
- checked out object
- Throws:
com.documentum.fc.common.DfException
- when any exception is caught during the operation
-
checkOut
<T extends SysObject> T checkOut(String id, Class<T> targetClass) throws com.documentum.fc.common.DfException 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 feldspar 16.3, please use method cancelCheckOut(String id,LockOptions lockOptions)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
<T extends SysObject> T cancelCheckOut(String id, Class<T> targetClass) throws com.documentum.fc.common.DfException 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
-
cancelCheckOut
SysObject cancelCheckOut(String id, com.emc.documentum.rest.dfc.util.LockOptions lockOptions) throws com.documentum.fc.common.DfException Cancel check out specified object by its id- Parameters:
id
- The ID of sysobject to be cancelledlockOptions
- Specify the cancel checkout behavior for a virtual document- Returns:
- cancelled object
- Throws:
com.documentum.fc.common.DfException
- when any exception is caught during the operation
-
checkIn
<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 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
<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 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 methodcheckIn(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
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 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
<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 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
<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 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
<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 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
-
getCurrentVersion
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
<T extends SysObject> T getCurrentVersion(String id, Class<T> targetClass) throws com.documentum.fc.common.DfException 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
-