public interface ILifecycle
Copyright © Technology Services Group, Inc.
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.util.Map<java.lang.String,LifecycleDefinition> |
getAllLifecycleDefinitions()
This method returns all LifecycleDefinitions contained in the InstalledLifecycles
Returns null if the map does not exist.
|
java.lang.String |
getCurrentState(java.lang.String ticket,
java.lang.String objectId)
Check the current repository lifecycle state of a given object.
|
LifecycleDefinition |
getLifecycleDefinition(java.lang.String name)
This method returns the LifecycleDefinition object specified by name.
|
LifecycleDefinition |
getOcLifecycleDefinition(java.lang.String name,
java.lang.String objectType) |
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)
Suspend a single object.
|
LifecycleState[] getStates(java.lang.String ticket, java.lang.String lifecycleName)
ticket
- a valid authentication ticketlifecycleName
- the name of the lifecycle policyLifecycleResult resume(java.lang.String ticket, java.lang.String objectId, java.lang.String state, boolean resumeBaseState)
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 falseLifecycleResult suspend(java.lang.String ticket, java.lang.String objectId, java.lang.String state)
ticket
- a valid authentication ticketobjectId
- the object ID of the object to suspendstate
- the state to suspendLifecycleResult
error
returns true if method failed, otherwise falseboolean promote(java.lang.String ticket, java.lang.String objectId, java.lang.String statename)
ticket
- a valid authentication ticketobjectId
- the object ID of the object to promotestatename
- the state to promote the object toboolean demote(java.lang.String ticket, java.lang.String objectId, java.lang.String statename, boolean demoteToBase)
ticket
- a valid authentication ticketobjectId
- the object ID of the object to demotestatename
- the state to demote the object todemoteToBase
- boolean to indicate whether to demote to base or notjava.lang.String getCurrentState(java.lang.String ticket, java.lang.String objectId)
ticket
- a valid authentication ticketobjectId
- the object ID of the object to check stateLifecycleResult attachLifecycleById(java.lang.String ticket, java.lang.String objectId, java.lang.String lifecycleId, java.lang.String state)
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 trueLifecycleResult attachLifecycleByName(java.lang.String ticket, java.lang.String objectId, java.lang.String lifecycleName, java.lang.String state)
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 trueLifecycleResult detachLifecycle(java.lang.String ticket, java.lang.String objectId)
ticket
- a valid authentication ticketobjectId
- object id to detach the a lifecycle fromLifecycleResult
error
returns false if life cycle is successfully detached, otherwise trueLifecycleDefinition getLifecycleDefinition(java.lang.String name)
name
- - name of an installed wizard lifecycleLifecycleDefinition getOcLifecycleDefinition(java.lang.String name, java.lang.String objectType)
java.util.Map<java.lang.String,LifecycleDefinition> getAllLifecycleDefinitions()