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 void
deleteState(IElementPrototypeWrapper<?> item)
Callback invoked via the delete button of theWorkflowState
prototype.boolean
isMarkedForDeletion(IElementPrototypeWrapper<?> item)
Callback method for the XHTML view.boolean
isNewState(IElementPrototypeWrapper<?> item)
boolean
isShowDeleteButton(IElementPrototypeWrapper<?> item)
Used in the XHTML page to check whether a state can be deleted.boolean
isShowRestoreButton(IElementPrototypeWrapper<?> item)
Used in the XHTML page to check whether a state can be deleted.void
restoreState(IElementPrototypeWrapper<?> item)
Callback invoked via the delete button of theWorkflowState
prototype.
-
-
-
Method Detail
-
deleteState
public void deleteState(IElementPrototypeWrapper<?> item)
Callback invoked via the delete button of theWorkflowState
prototype.- 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:
true
if 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:
true
if the state is potentially deletable,false
otherwise.
-
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:
true
if the state is potentially deletable,false
otherwise.
-
restoreState
public void restoreState(IElementPrototypeWrapper<?> item)
Callback invoked via the delete button of theWorkflowState
prototype.- Parameters:
item
- Item representing the state to delete.
-
-