Package com.emc.d2fs.interfaces
Interface ID2LifeCycleService
- All Superinterfaces:
ID2fsService
D2 Life Cycle Management Services Interface.
-
Method Summary
Modifier and TypeMethodDescriptionApply lifecycle statechangeState
(Context context, String docId, String targetState, String event, String operation, List<Attribute> parameters) Change lifecycle state of documentchangeStateMass
(Context context, String docId, String targetState, String event, String operation, List<Attribute> parameters) changeStateOnEvent
(Context context, String docId, String targetState, String event) Change lifecycle state on event handlegetChangeStateSignoffParameters
(Context context, String docId, String targetState) Return the signoff parameters for a target statenextStateOnEvent
(Context context, String docId, String event) Get next states for specified eventnextStates
(Context context, String docId, String operation) Get next states for specified operationtestChangeStateConditions
(Context context, String docId, String targetState, String event) Check change state conditionstestNextState
(Context context, String docId) Check next state resulttestTransition
(Context context, String docId, String operation) Check transition resultMethods inherited from interface com.emc.d2fs.interfaces.ID2fsService
isRemote, setRemote
-
Method Details
-
changeState
LifeCycleResult changeState(Context context, String docId, String targetState, String event, String operation, List<Attribute> parameters) throws Exception Change lifecycle state of document- Parameters:
context
-Context
object containing informations about client/sessiondocId
- String value of document idtargetState
- String value of targeted state nameevent
- String value of event nameoperation
- String value of operation nameparameters
-Attribute
list of parameters- list: DF_STRING - String containing a list of attribute names to be set(separated by AttributeUtils.SEPARATOR_VALUE)
- signoff_required: DF_BOOLEAN - (optional; default false)Indicate that signoff is required.
- signoff_intention: DF_BOOLEAN - (optional) signoff intention
- Returns:
LifeCycleResult
object- Throws:
Exception
- Since:
- 4.0.1
-
changeStateMass
List<LifeCycleResult> changeStateMass(Context context, String docId, String targetState, String event, String operation, List<Attribute> parameters) throws Exception - Throws:
Exception
-
testChangeStateConditions
LifeCycleResult testChangeStateConditions(Context context, String docId, String targetState, String event) throws Exception Check change state conditions- Parameters:
context
-Context
object containing informations about client/sessiondocId
- String value of document idtargetState
- String value of state nameevent
- String value of event name- Returns:
LifeCycleResult
object- Throws:
Exception
- Since:
- 4.0.1
-
changeStateOnEvent
LifeCycleResult changeStateOnEvent(Context context, String docId, String targetState, String event) throws D2fsException Change lifecycle state on event handle- Parameters:
context
-Context
object containing informations about client/sessiondocId
- String value of document idtargetState
- String value of state nameevent
- String value of event name- Returns:
LifeCycleResult
object- Throws:
D2fsException
- Since:
- 4.0.1
-
nextStateOnEvent
Get next states for specified event- Parameters:
context
-Context
object containing informations about client/sessiondocId
- String value of document idevent
- String value of event name- Returns:
LifeCycleResult
object- Throws:
D2fsException
- Since:
- 4.0.1
-
nextStates
Get next states for specified operation- Parameters:
context
-Context
object containing informations about client/sessiondocId
- String value of document idoperation
- String value of operation name- Returns:
LifeCycleResult
object- Throws:
D2fsException
- Since:
- 4.0.1
-
testNextState
Check next state result- Parameters:
context
-Context
object containing informations about client/sessiondocId
- String value of document id- Returns:
LifeCycleResult
object- Throws:
D2fsException
- Since:
- 4.0.1
-
testTransition
LifeCycleResult testTransition(Context context, String docId, String operation) throws D2fsException Check transition result- Parameters:
context
-Context
object containing informations about client/sessiondocId
- String value of document idoperation
- String value of operation name- Returns:
LifeCycleResult
object- Throws:
D2fsException
- Since:
- 4.0.1
-
apply
LifeCycleResult apply(Context context, String docId, String targetState, String event) throws D2fsException Apply lifecycle state- Parameters:
context
-Context
object containing informations about client/sessiondocId
- String value of document idtargetState
- String value of targeted state nameevent
- String value of event name- Returns:
LifeCycleResult
object- Throws:
D2fsException
- Since:
- 4.0.1
-
getChangeStateSignoffParameters
List<Attribute> getChangeStateSignoffParameters(Context context, String docId, String targetState) throws D2fsException Return the signoff parameters for a target state- Parameters:
context
-Context
object containing informations about client/sessiondocId
- String value of document idtargetState
- String value of targeted state name- Returns:
- A list of
Attribute
objects containing signoff parameters - Throws:
D2fsException
- Since:
- 4.1.0
-