Class WorkflowStateBean
- java.lang.Object
-
- de.xima.fc.workflow.designer.bean.WorkflowStateBean
-
- All Implemented Interfaces:
Serializable
@ViewScoped @Named public class WorkflowStateBean extends Object implements Serializable
Bean that handles deleting states, creating new states and viewing existing states in the workflow designer.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WorkflowStateBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteState(IElementPrototypeWrapper<?> item)Callback invoked via the delete button of theWorkflowStateprototype.booleanisMarkedForDeletion(IElementPrototypeWrapper<?> item)Callback method for the XHTML view.booleanisNewState(IElementPrototypeWrapper<?> item)booleanisShowDeleteButton(IElementPrototypeWrapper<?> item)Used in the XHTML page to check whether a state can be deleted.booleanisShowRestoreButton(IElementPrototypeWrapper<?> item)Used in the XHTML page to check whether a state can be deleted.voidrestoreState(IElementPrototypeWrapper<?> item)Callback invoked via the delete button of theWorkflowStateprototype.
-
-
-
Method Detail
-
deleteState
public void deleteState(IElementPrototypeWrapper<?> item)
Callback invoked via the delete button of theWorkflowStateprototype.- Parameters:
item- Item representing the state to delete.
-
isMarkedForDeletion
public boolean isMarkedForDeletion(IElementPrototypeWrapper<?> item)
Callback method for the XHTML view.- Parameters:
item- Prototype item to check.- Returns:
- Whether the state was marked for deletion.
-
isNewState
public boolean isNewState(IElementPrototypeWrapper<?> item)
- Parameters:
item- Item to check that corresponds to aEWorkflowNodeType.FC_CHANGE_STATE.- Returns:
trueif the given item is a state change prototype for a new state.
-
isShowDeleteButton
public boolean isShowDeleteButton(IElementPrototypeWrapper<?> item)
Used in the XHTML page to check whether a state can be deleted. If not, no delete button is shown.- Parameters:
item- Item to check,- Returns:
trueif the state is potentially deletable,falseotherwise.
-
isShowRestoreButton
public boolean isShowRestoreButton(IElementPrototypeWrapper<?> item)
Used in the XHTML page to check whether a state can be deleted. If not, no delete button is shown.- Parameters:
item- Item to check,- Returns:
trueif the state is potentially deletable,falseotherwise.
-
restoreState
public void restoreState(IElementPrototypeWrapper<?> item)
Callback invoked via the delete button of theWorkflowStateprototype.- Parameters:
item- Item representing the state to delete.
-
-