public class Lifecycle extends Property<Lifecycle>
TransitionChoiceCategory
.
UniqueIdentified
Property.PropertyElementDisplayDefinition
FIELDDIPLSAY_TITLE_MOD, FIELDDISPLAY_BOTTOMNOTES, FIELDDISPLAY_NONE, FIELDDISPLAY_NORMAL, FIELDDISPLAY_NORMAL_MOD, FIELDDISPLAY_TITLE, parent
Constructor and Description |
---|
Lifecycle(TransitionChoiceCategory lifecyclehelper)
creates a new lifecycle property with the default label (state)
|
Lifecycle(TransitionChoiceCategory lifecyclehelper,
java.lang.String newstatelabel)
creates a new lifecycle property with a customized label (something more
specific to the context than state)
|
Lifecycle(TransitionChoiceCategory lifecyclehelper,
java.lang.String newstatelabel,
java.lang.String nonreleasedlabel)
creates a new lifecycle property with a customized label (something more
specific to the context than state), and also a non-released label showing in
red
|
Modifier and Type | Method and Description |
---|---|
void |
controlAfterParentDefinition()
to be implemented if controls have to be performed after parent is added.
|
static AutomaticActionMarker |
getChangeStateAutomaticAction(DataObjectDefinition parent)
returns a reference to change state action to provide a privilege just for
this action
|
UniqueIdentified |
getDependentPropertyUniqueIdentified() |
java.util.ArrayList<DataObjectDefinition> |
getExternalObjectDependence() |
java.lang.String |
getJavaType() |
TransitionChoiceCategory |
getLifecycleHelper() |
java.lang.String[] |
getPropertyDeepCopyStatement()
Returns the required deepcopy statement for the property, sends back null if
nothing is required.
|
java.lang.String[] |
getPropertyExtractMethod()
This method should return non null value only if
setCreationDataInputForUpdate() is set
|
java.lang.String[] |
getPropertyInitMethod()
this method uses the context data for creation and the data-input for
standard creation.
|
TransitionChoiceCategory |
getTransitionChoiceCategory() |
java.lang.String |
getUnreleasedWarning() |
boolean |
hasChoiceValue(ChoiceValue value)
checks if the lifecycle helper has the following choice value
|
void |
setFinalSettings()
an abstract method to be implemented by properties for finalizations to be
performed after all data objects have been created.
|
void |
writeDependentClass(SourceGenerator sg,
Module module)
only send here classes that are NOT data objects.
|
addBusinessRule, addChoiceCategoryHelper, addContextForDataCreation, addDataAccessMethod, addDataInput, addDependentProperty, addDisplayProfileForProperty, addElement, addElement, addElementasSearchElement, addExternalObjectProperty, addFieldOverrides, addMethodAdditionalProcessing, addObjectToAuthorityMapper, addPropertyGenerics, addStringHelper, generatePropertyHelperToFile, getBusinessRule, getBusinessRuleByName, getBusinessRuleNumber, getChoiceCategoryByKey, getChoiceCategoryKeyNumber, getChoiceCategoryNumber, getContextDataForCreation, getContextDataForCreationSize, getDataAccessMethod, getDataAccessMethod, getDataAccessMethodnumber, getDataInputForCreation, getDataInputSize, getDataObjectConstructorAttributes, getDataObjectFieldName, getDependentProperties, getDisplayDefinitionForElement, getDisplayProfileForProperty, getDisplayProfileForPropertyNumber, getExternalObject, getExternalObjectProperty, getExternalObjectPropertySize, getFieldOverridesat, getFieldOverridesNumber, getInstancename, getJavaClassType, getMethodAdditionalProcessing, getMethodAdditionalProcessingnumber, getParent, getPropertyclassname, getPropertyGenerics, getPropertyGenericsSize, getPropertyGenericsString, getPropertyHelperName, hasDynamicDefinitionHelper, hasInterface, hasStaticQuery, hideDataInputForCreation, isDatainputatbottom, isDataInputHiddenForCreation, isDataInputUsedForUpdate, isLegacy, isPropertyHelperTransient, setAsLegacy, setDatainputatbottom, setDataInputForUpdate, setDynamicDefinitionHelper, setExtraAttributes, writeAdditionalDefinition
AddElementWithSearch, addIndex, getDisplayname, getElements, getIndex, getSearchWidgetList, getTooltip
changeName, cleanName, equals, getName
public Lifecycle(TransitionChoiceCategory lifecyclehelper)
lifecyclehelper
- the definition of the lifecycle (list of status and
transitions, also definition of default, working and
final states)public Lifecycle(TransitionChoiceCategory lifecyclehelper, java.lang.String newstatelabel)
lifecyclehelper
- the definition of the lifecycle (list of status and
transitions)newstatelabel
- name of the state for the object (could be a synonym
like status...)public Lifecycle(TransitionChoiceCategory lifecyclehelper, java.lang.String newstatelabel, java.lang.String nonreleasedlabel)
lifecyclehelper
- the definition of the lifecycle (list of status and
transitions)newstatelabel
- name of the state for the object (could be a synonym
like status...)nonreleasedlabel
- a warning for non-released datapublic TransitionChoiceCategory getLifecycleHelper()
public void controlAfterParentDefinition()
Property
controlAfterParentDefinition
in class Property<Lifecycle>
public TransitionChoiceCategory getTransitionChoiceCategory()
public UniqueIdentified getDependentPropertyUniqueIdentified()
public boolean hasChoiceValue(ChoiceValue value)
value
- value to checkpublic java.lang.String getUnreleasedWarning()
public static AutomaticActionMarker getChangeStateAutomaticAction(DataObjectDefinition parent)
parent
- parent data objectpublic java.lang.String getJavaType()
getJavaType
in class ObjectElement
public void writeDependentClass(SourceGenerator sg, Module module) throws java.io.IOException
ObjectElement
writeDependentClass
in class ObjectElement
java.io.IOException
public java.util.ArrayList<DataObjectDefinition> getExternalObjectDependence()
getExternalObjectDependence
in class Property<Lifecycle>
public java.lang.String[] getPropertyInitMethod()
Property
getPropertyInitMethod
in class Property<Lifecycle>
public java.lang.String[] getPropertyExtractMethod()
Property
getPropertyExtractMethod
in class Property<Lifecycle>
public void setFinalSettings()
Property
setFinalSettings
in class Property<Lifecycle>
public java.lang.String[] getPropertyDeepCopyStatement()
Property
getPropertyDeepCopyStatement
in class Property<Lifecycle>