Package de.xima.fc.handler.entity
Class WorkflowVersionHandler
- java.lang.Object
 - 
- de.xima.fc.handler.AMSApiHandler
 - 
- de.xima.fc.handler.entity.GenericHandler
 - 
- de.xima.fc.handler.entity.WorkflowVersionHandler
 
 
 
 
- 
- All Implemented Interfaces:
 IAPIHandler,IGenericHandler,IWorkflowVersionHandler,Serializable
public class WorkflowVersionHandler extends GenericHandler implements IWorkflowVersionHandler
Handler implementation for reading and writingWorkflowVersionentities.- Since:
 - 7.0.0
 - Author:
 - XIMA MEDIA GmbH
 - See Also:
 - Serialized Form
 
 
- 
- 
Field Summary
- 
Fields inherited from class de.xima.fc.handler.entity.GenericHandler
LOG 
 - 
 
- 
Constructor Summary
Constructors Constructor Description WorkflowVersionHandler() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkflowVersiongetActiveByProject(UserContext uc, Projekt project)Finds the active workflow version for the given project.WorkflowVersiongetByVersionNumber(UserContext uc, Projekt project, long versionNumber)Finds the workflow version with the given version number, if such a version exists.- 
Methods inherited from class de.xima.fc.handler.entity.GenericHandler
create, create, delete, delete, deleteBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getById, getEntityRefs, getSingleAttributes, getSingleAttributes, resultTotalCount, serializableList, update, update 
- 
Methods inherited from class de.xima.fc.handler.AMSApiHandler
getName 
- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface de.xima.fc.com.interfaces.IAPIHandler
getName 
- 
Methods inherited from interface de.xima.fc.handler.interfaces.entity.IGenericHandler
create, create, delete, delete, deleteBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getById, getEntityRefs, getSingleAttributes, getSingleAttributes, resultTotalCount, update, update 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getActiveByProject
public WorkflowVersion getActiveByProject(UserContext uc, Projekt project)
Description copied from interface:IWorkflowVersionHandlerFinds the active workflow version for the given project. Creates a new workflow version when no version exists yet.- Specified by:
 getActiveByProjectin interfaceIWorkflowVersionHandler- Parameters:
 uc- The current user context to use for interacting with the database.project- The project for which to find the active workflow version.- Returns:
 - The currently active workflow version of the given project. Returns 
nullwhen the project does not use the new workflow. 
 
- 
getByVersionNumber
public WorkflowVersion getByVersionNumber(UserContext uc, Projekt project, long versionNumber)
Description copied from interface:IWorkflowVersionHandlerFinds the workflow version with the given version number, if such a version exists.- Specified by:
 getByVersionNumberin interfaceIWorkflowVersionHandler- Parameters:
 uc- The current user context to use for interacting with the database.project- The project to search for the workflow version.versionNumber- The version number of the workflow version to find.- Returns:
 - The workflow version with the given version number that belong to the given project, or 
nullif no such workflow version exists. 
 
 - 
 
 -