E
- parent data object holding the lifecycleF
- the transition choice definitionpublic class Lifecycle<E extends DataObject<E> & UniqueidentifiedInterface<E> & LifecycleInterface<E,F>,F extends TransitionFieldChoiceDefinition<F>> extends DataObjectProperty<E>
updatedfieldingui
definition, field, parentpayload
Constructor and Description |
---|
Lifecycle(LifecycleDefinition<E,F> definition,
DataObjectPayload parentpayload,
F lifecyclehelper)
creates a lifecycle property for the object
|
Modifier and Type | Method and Description |
---|---|
static <E extends DataObject<E> & UniqueidentifiedInterface<E> & LifecycleInterface<E,F>,F extends TransitionFieldChoiceDefinition<F>> |
changestate(E[] objectbatch,
ChoiceValue<F>[] newstate,
Lifecycle<E,F>[] lifecyclearrayformethod)
massive change state method.
|
void |
changestate(E object,
ChoiceValue<F> newvalue)
controls that the new state provided is valid, and performs the state change
|
java.util.Date |
getFinalstatetime() |
java.lang.String |
getState() |
ChoiceValue<F> |
getstateforchange(E object)
gets the current state and transition
|
Uniqueidentified<E> |
getUniqueidentified() |
boolean |
isStateFinal(ChoiceValue<F> newvalue)
return true if the given state is final
|
void |
preprocStoredobjectInsert(E object)
pre-processing for the insertion of an object.
|
void |
setDependentPropertyUniqueidentified(Uniqueidentified<E> uniqueidentified)
sets the dependent property Unique Identified for the object
|
protected void |
setState(E object,
java.lang.String state)
sets the state (without check) and persists the object
|
protected void |
setStateWithoutPersistence(java.lang.String state)
sets state without persistence to the object (without control either
|
generateSimpleDataEltFromObject, getDisplayDataElt, getDynamicDataElt, getFieldBufferForGUI
getAllTriggersForRefresh, getFieldFromName, getFieldNumber, getStoredField, getTriggersForThisUpdate, initFromDB, postTreatmentAfterInitFromDB
changeName, cleanName, equals, getName
public Lifecycle(LifecycleDefinition<E,F> definition, DataObjectPayload parentpayload, F lifecyclehelper)
definition
- definition of the lifecycle property for the data
object classparentpayload
- parent data object payloadlifecyclehelper
- transition choice category used for the lifecyclepublic Uniqueidentified<E> getUniqueidentified()
public java.util.Date getFinalstatetime()
public java.lang.String getState()
protected void setState(E object, java.lang.String state)
object
- data objectstate
- new state stored valueprotected void setStateWithoutPersistence(java.lang.String state)
state
- the state stored valuepublic boolean isStateFinal(ChoiceValue<F> newvalue)
newvalue
- state to analyzepublic void changestate(E object, ChoiceValue<F> newvalue)
object
- data objectnewvalue
- new statepublic static <E extends DataObject<E> & UniqueidentifiedInterface<E> & LifecycleInterface<E,F>,F extends TransitionFieldChoiceDefinition<F>> void changestate(E[] objectbatch, ChoiceValue<F>[] newstate, Lifecycle<E,F>[] lifecyclearrayformethod)
objectbatch
- object batchnewstate
- new statelifecyclearrayformethod
- corresponding lifecycle batchpublic ChoiceValue<F> getstateforchange(E object)
object
- object to processpublic void setDependentPropertyUniqueidentified(Uniqueidentified<E> uniqueidentified)
uniqueidentified
- dependent property unique identifiedpublic void preprocStoredobjectInsert(E object)
object
- the object to process