Package com.emc.documentum.rest.dfc
Interface LifecycleManager
public interface LifecycleManager
The lifecycle manager
-
Method Summary
Modifier and TypeMethodDescriptionattachLifecycle
(String objectId, String lifecycleId, String state, String aliasSetName) Attach a lifecycle to the object The operation is not allowed to be put in an user transaction.cancelScheduledDemote
(String objectId, Date schedule) Cancel a scheduled demotion The operation is not allowed to be put in an user transaction.cancelScheduledPromote
(String objectId, Date schedule) Cancel a scheduled promotion The operation is not allowed to be put in an user transaction.cancelScheduledResume
(String objectId, Date schedule) Cancel a scheduled resumption The operation is not allowed to be put in an user transaction.cancelScheduledSuspend
(String objectId, Date schedule) Cancel a scheduled suspension The operation is not allowed to be put in an user transaction.Demote the object to the previous normal lifecycle state The operation is not allowed to be put in an user transaction.void
detachLifecycle
(String objectId) Detach the lifecycle from the object The operation is not allowed to be put in an user transaction.com.emc.documentum.rest.dfc.impl.query.LifecycleQueryTemplate
getAttachableQueryTemplateByObjectId
(String objectId, com.emc.documentum.rest.dfc.impl.query.LifecycleQueryTemplate template) Get the paged result of the attachable lifecycles for a specified object id The operation is not allowed to be put in an user transaction.com.emc.documentum.rest.dfc.impl.query.LifecycleQueryTemplate
getAttachableQueryTemplateByObjectType
(String typeName, com.emc.documentum.rest.dfc.impl.query.LifecycleQueryTemplate template) Get the paged result of the attachable lifecycles for a specified object type The operation is not allowed to be put in an user transaction.getLifecycle
(String id) Get theLifecycle
by the idgetObjectLifecycle
(String objectId) Get the current object lifecycle statePromote the object to the next normal lifecycle state The operation is not allowed to be put in an user transaction.Resume the object to the normal lifecycle state The operation is not allowed to be put in an user transaction.Suspend the object to the exceptional lifecycle state The operation is not allowed to be put in an user transaction.
-
Method Details
-
getLifecycle
Get theLifecycle
by the id- Parameters:
id
- the id of the lifecycle- Returns:
- the lifecycle object
- Throws:
com.documentum.fc.common.DfException
- the exceptions during the operation
-
getAttachableQueryTemplateByObjectId
com.emc.documentum.rest.dfc.impl.query.LifecycleQueryTemplate getAttachableQueryTemplateByObjectId(String objectId, com.emc.documentum.rest.dfc.impl.query.LifecycleQueryTemplate template) throws com.documentum.fc.common.DfException Get the paged result of the attachable lifecycles for a specified object id The operation is not allowed to be put in an user transaction.- Parameters:
objectId
- the id of the objecttemplate
- the LifecycleQueryTemplate instance- Returns:
- the query template
- Throws:
com.documentum.fc.common.DfException
- the exceptions during the operation
-
getAttachableQueryTemplateByObjectType
com.emc.documentum.rest.dfc.impl.query.LifecycleQueryTemplate getAttachableQueryTemplateByObjectType(String typeName, com.emc.documentum.rest.dfc.impl.query.LifecycleQueryTemplate template) throws com.documentum.fc.common.DfException Get the paged result of the attachable lifecycles for a specified object type The operation is not allowed to be put in an user transaction.- Parameters:
typeName
- the name of the object typetemplate
- the LifecycleQueryTemplate instance- Returns:
- the query template
- Throws:
com.documentum.fc.common.DfException
- the exceptions during the operation
-
attachLifecycle
ObjectLifecycle attachLifecycle(String objectId, String lifecycleId, String state, String aliasSetName) throws com.documentum.fc.common.DfException Attach a lifecycle to the object The operation is not allowed to be put in an user transaction.- Parameters:
objectId
- the id of the objectlifecycleId
- the id of the lifecyclestate
- the initial state, where the lifecycle will be attached toaliasSetName
- the aliasset name- Returns:
- the current object lifecycle state
- Throws:
com.documentum.fc.common.DfException
- the exceptions during the operation
-
detachLifecycle
Detach the lifecycle from the object The operation is not allowed to be put in an user transaction.- Parameters:
objectId
- the object id- Throws:
com.documentum.fc.common.DfException
- the exceptions during the operation
-
promote
ObjectLifecycle promote(String objectId, boolean force, boolean trial, Date schedule) throws com.documentum.fc.common.DfException Promote the object to the next normal lifecycle state The operation is not allowed to be put in an user transaction.- Parameters:
objectId
- the object idforce
- whether force to promote without check the entry criteria of the statetrial
- if true, then just check whether the object can be promoted to the next normal state. the object's current lifecycle state won't be really changed.schedule
- if provided, the promotion will be executed by the schedule time. the schedule format should follow the ISO 8601. e.g. 2013-05-10T19:51:13.559+0800- Returns:
- the current object lifecycle state
- Throws:
com.documentum.fc.common.DfException
- the exceptions during the operation
-
demote
ObjectLifecycle demote(String objectId, boolean toBase, Date schedule) throws com.documentum.fc.common.DfException Demote the object to the previous normal lifecycle state The operation is not allowed to be put in an user transaction.- Parameters:
objectId
- the object idtoBase
- whether demote to the base state of the lifecycleschedule
- if provided, the demotion will be executed by the schedule time. the schedule format should follow the ISO 8601. e.g. 2013-05-10T19:51:13.559+0800- Returns:
- the current object lifecycle state
- Throws:
com.documentum.fc.common.DfException
- the exceptions during the operation
-
suspend
ObjectLifecycle suspend(String objectId, boolean force, boolean trial, Date schedule) throws com.documentum.fc.common.DfException Suspend the object to the exceptional lifecycle state The operation is not allowed to be put in an user transaction.- Parameters:
objectId
- the object idforce
- whether force to suspend without check the entry criteria of the statetrial
- if true, then just check whether the object can be suspended. the object's current lifecycle state won't be really changed.schedule
- if provided, the suspension will be executed by the schedule time. the schedule format should follow the ISO 8601. e.g. 2013-05-10T19:51:13.559+0800- Returns:
- the current object lifecycle state
- Throws:
com.documentum.fc.common.DfException
- the exceptions during the operation
-
resume
ObjectLifecycle resume(String objectId, boolean toBase, boolean force, boolean trial, Date schedule) throws com.documentum.fc.common.DfException Resume the object to the normal lifecycle state The operation is not allowed to be put in an user transaction.- Parameters:
objectId
- the object idtoBase
- whether directly resume the object to the base stateforce
- whether force to resume without check the entry criteria of the statetrial
- if true, then just check whether the object can be resumed to the normal state. the object's current lifecycle state won't be really changed.schedule
- if provided, the resumption will be executed by the schedule time. the schedule format should follow the ISO 8601. e.g. 2013-05-10T19:51:13.559+0800- Returns:
- the current object lifecycle state
- Throws:
com.documentum.fc.common.DfException
- the exceptions during the operation
-
cancelScheduledPromote
ObjectLifecycle cancelScheduledPromote(String objectId, Date schedule) throws com.documentum.fc.common.DfException Cancel a scheduled promotion The operation is not allowed to be put in an user transaction.- Parameters:
objectId
- the object idschedule
- the previous scheduled time- Returns:
- the current object lifecycle state
- Throws:
com.documentum.fc.common.DfException
- the exceptions during the operation
-
cancelScheduledDemote
ObjectLifecycle cancelScheduledDemote(String objectId, Date schedule) throws com.documentum.fc.common.DfException Cancel a scheduled demotion The operation is not allowed to be put in an user transaction.- Parameters:
objectId
- the object idschedule
- the previous scheduled time- Returns:
- the current object lifecycle state
- Throws:
com.documentum.fc.common.DfException
- the exceptions during the operation
-
cancelScheduledSuspend
ObjectLifecycle cancelScheduledSuspend(String objectId, Date schedule) throws com.documentum.fc.common.DfException Cancel a scheduled suspension The operation is not allowed to be put in an user transaction.- Parameters:
objectId
- the object idschedule
- the previous scheduled time- Returns:
- the current object lifecycle state
- Throws:
com.documentum.fc.common.DfException
- the exceptions during the operation
-
cancelScheduledResume
ObjectLifecycle cancelScheduledResume(String objectId, Date schedule) throws com.documentum.fc.common.DfException Cancel a scheduled resumption The operation is not allowed to be put in an user transaction.- Parameters:
objectId
- the object idschedule
- the previous scheduled time- Returns:
- the current object lifecycle state
- Throws:
com.documentum.fc.common.DfException
- the exceptions during the operation
-
getObjectLifecycle
Get the current object lifecycle state- Parameters:
objectId
- the object id- Returns:
- the current object lifecycle state
- Throws:
com.documentum.fc.common.DfException
- the exceptions during the operation
-