public class DCTMLifecycleImpl extends AbstractLifecycleImpl implements ILifecycle
Modifier | Constructor and Description |
---|---|
protected |
DCTMLifecycleImpl() |
Modifier and Type | Method and Description |
---|---|
LifecycleResult |
attachLifecycleById(java.lang.String ticket,
java.lang.String objectId,
java.lang.String lifecycleId,
java.lang.String state)
Attach the lifecycle identified by the given id to the object.
|
LifecycleResult |
attachLifecycleByName(java.lang.String ticket,
java.lang.String objectId,
java.lang.String lifecycleName,
java.lang.String state)
Attach the lifecycle identified by the given name to the object.
|
boolean |
demote(java.lang.String ticket,
java.lang.String objectId,
java.lang.String stateName,
boolean demoteToBase)
Demote a single object to the specified state.
|
LifecycleResult |
detachLifecycle(java.lang.String ticket,
java.lang.String objectId)
Detach a lifecycle from the object.
|
java.lang.String |
getCurrentState(java.lang.String ticket,
java.lang.String objectId)
Check the current lifecycle state of a given sysobject.
|
LifecycleState[] |
getStates(java.lang.String ticket,
java.lang.String lifecycleName)
Returns the states for the given lifecycle.
|
boolean |
promote(java.lang.String ticket,
java.lang.String objectId,
java.lang.String stateName)
Promote a single object to the specified state.
|
LifecycleResult |
resume(java.lang.String ticket,
java.lang.String objectId,
java.lang.String state,
boolean resumeBaseState)
Resume a single object from the specified state.
|
LifecycleResult |
suspend(java.lang.String ticket,
java.lang.String objectId,
java.lang.String state)
Note - the state name does not matter in documentum.
|
getAllLifecycleDefinitions, getConfiguredLifecycleStateRepoNameForObjectId, getLifecycleDefinition, getOcConfiguredLifecycleStateRepoNameForObjectType, getOcLifecycleDefinition
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAllLifecycleDefinitions, getLifecycleDefinition, getOcLifecycleDefinition
public LifecycleState[] getStates(java.lang.String ticket, java.lang.String lifecycleName)
ILifecycle
getStates
in interface ILifecycle
ticket
- a valid authentication ticketlifecycleName
- the name of the lifecycle policypublic boolean promote(java.lang.String ticket, java.lang.String objectId, java.lang.String stateName)
promote
in interface ILifecycle
ticket
- a valid authentication ticketobjectId
- the object ID of the sysobject to promotestatename
- the state to promote the object topublic boolean demote(java.lang.String ticket, java.lang.String objectId, java.lang.String stateName, boolean demoteToBase)
demote
in interface ILifecycle
ticket
- a valid authentication ticketobjectId
- the object ID of the sysobject to demotestatename
- the state to demote the object topublic java.lang.String getCurrentState(java.lang.String ticket, java.lang.String objectId)
getCurrentState
in interface ILifecycle
ticket
- a valid authentication ticketobjectId
- the object ID of the sysobject to check statepublic LifecycleResult attachLifecycleById(java.lang.String ticket, java.lang.String objectId, java.lang.String lifecycleId, java.lang.String state)
ILifecycle
attachLifecycleById
in interface ILifecycle
ticket
- a valid authentication ticketobjectId
- object id the lifecycle is to be attached tolifecycleId
- id of the lifecycle to attachstate
- initial state name/state position of the lifecycle (if null, default to position 0)LifecycleResult
error
returns false if life cycle is successfully attached, otherwise trueILifecycle.attachLifecycleById(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
public LifecycleResult attachLifecycleByName(java.lang.String ticket, java.lang.String objectId, java.lang.String lifecycleName, java.lang.String state)
ILifecycle
attachLifecycleByName
in interface ILifecycle
ticket
- a valid authentication ticketobjectId
- object id the lifecycle is to be attached tolifecycleName
- name of the lifecycle to attachstate
- initial state name/state position of the lifecycle (if null, default to position 0)LifecycleResult
error
returns false if life cycle is successfully attached, otherwise trueILifecycle.attachLifecycleByName(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
public LifecycleResult detachLifecycle(java.lang.String ticket, java.lang.String objectId)
ILifecycle
detachLifecycle
in interface ILifecycle
ticket
- a valid authentication ticketobjectId
- object id to detach the a lifecycle fromLifecycleResult
error
returns false if life cycle is successfully detached, otherwise trueILifecycle.detachLifecycle(java.lang.String, java.lang.String)
public LifecycleResult resume(java.lang.String ticket, java.lang.String objectId, java.lang.String state, boolean resumeBaseState)
ILifecycle
resume
in interface ILifecycle
ticket
- a valid authentication ticketobjectId
- the object ID of the object to resumestate
- the state to resume fromresumeBaseState
- True to resume base state, false otherwise.LifecycleResult
error
returns true if method failed, otherwise falseILifecycle.resume(java.lang.String, java.lang.String, java.lang.String, boolean)
public LifecycleResult suspend(java.lang.String ticket, java.lang.String objectId, java.lang.String state)
suspend
in interface ILifecycle
ticket
- a valid authentication ticketobjectId
- the object ID of the object to suspendstate
- the state to suspendLifecycleResult
error
returns true if method failed, otherwise falseILifecycle.suspend(java.lang.String, java.lang.String, java.lang.String)