Package de.xima.fc.dao.interfaces
Interface IWorkflowStateDao
- All Superinterfaces:
- de.xima.cmn.dao.interfaces.IAbstractDao<WorkflowState,,- Long, - IEntityContext> - IGenericDao<WorkflowState>
- All Known Implementing Classes:
- WorkflowStateDao
Data access object for creating, updating, and deleting 
WorkflowState entities.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- 
Method SummaryModifier and TypeMethodDescriptionDeprecated.createDefaultStates(Locale locale) Creates the system default workflow statesgetAllByWorkflowVersion(IEntityContext ec, Projekt project, long versionNumber) Finds all states of the given workflow version.getAllByWorkflowVersion(IEntityContext ec, WorkflowVersion workflowVersion) Finds all states of the given workflow version.getAllForActiveVersion(IEntityContext ec, Projekt project) Finds all states of the active workflow version of the given project.getByUuid(IEntityContext ec, WorkflowVersion workflowVersion, UUID uuid) Finds the state with the given UUID contained in the given workflow version.getOrCreateSystemState(IEntityContext ec, WorkflowVersion workflowVersion, EWorkflowStateType type) Finds the given built-in workflow state.Methods inherited from interface de.xima.cmn.dao.interfaces.IAbstractDaoall, bulkDelete, bulkUpdate, checkLockingVersion, create, create, delete, delete, deleteAll, executePagedDaoAction, getAttributes, getAttributes, getSingleAttributes, getSingleAttributes, getTransactionHandler, read, registerListener, registerListener, registerListener, resultTotalCount, setTransactionHandler, singleElement, unregisterListener, unregisterListener, unregisterListener, update, updateMethods inherited from interface de.xima.fc.dao.interfaces.IGenericDaocount, findAll, findSingle, getEntityRefs, read
- 
Method Details- 
createDefaultStatesDeprecated.Creates the system default workflow states- Returns:
- list of system default states
 
- 
createDefaultStatesCreates the system default workflow states- Parameters:
- locale- the current locale
- Returns:
- list of system default states
 
- 
getAllByWorkflowVersionFinds all states of the given workflow version.- Parameters:
- ec- Entity context for accessing the database.
- project- Project which contains the workflow version.
- versionNumber- Version number of the workflow version, must belong to the given project.
- Returns:
- A list of all WorkflowStatecontained in the given workflow version.
 
- 
getAllByWorkflowVersionFinds all states of the given workflow version.- Parameters:
- ec- Entity context for accessing the database.
- workflowVersion- Workflow version for which to retrieve the states.
- Returns:
- A list of all WorkflowStatecontained in the given workflow version.
 
- 
getAllForActiveVersionFinds all states of the active workflow version of the given project.- Parameters:
- ec- Entity context for accessing the database.
- project- Project which contains the workflow version.
- Returns:
- A list of all WorkflowStatecontained in the active workflow version of the given project.
 
- 
getByUuidFinds the state with the given UUID contained in the given workflow version. Note that theWorkflowState.getUuid()is unique only within all states of a certain workflow version.- Parameters:
- ec- Entity context for accessing the database.
- workflowVersion- The workflow version for which to retrieve the state.
- uuid- The UUID of the workflow state to retrieve.
- Returns:
- A workflow state with the given UUID that is contained in the given workflow version, or nullif no such state exists.
 
- 
getOrCreateSystemStateWorkflowState getOrCreateSystemState(IEntityContext ec, WorkflowVersion workflowVersion, EWorkflowStateType type) Finds the given built-in workflow state. Creates it if it does not exist yet.- Parameters:
- ec- Entity context for accessing the database.
- workflowVersion- Workflow version with states to search.
- type- Workflow state type to find.
- Returns:
- The state with the given type.
- Throws:
- IllegalArgumentException- When type is- nullor- EWorkflowStateType.CUSTOMwas passed.
 
 
- 
createDefaultStates(Locale)