Package de.xima.fc.api.entity
Class WorkflowVersionAPI
API class for reading and writing
WorkflowVersion
entities.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
Field Summary
Fields inherited from class de.xima.fc.api.entity.AEntityAPI
entityClass
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetActiveByProject
(UserContext uc, Projekt project) Finds the active workflow version for the given project.getByVersionNumber
(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.api.entity.AEntityAPI
create, create, delete, delete, deleteAllBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getEntityRefs, getSingleAttributes, getSingleAttributes, resultTotalCount, resultTotalCount, update, update
Methods inherited from class de.xima.fc.api.ASubAPI
getHandlerProvider
-
Constructor Details
-
WorkflowVersionAPI
public WorkflowVersionAPI()
-
-
Method Details
-
getActiveByProject
Finds the active workflow version for the given project. Creates a new workflow version when no version exists yet.- 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
null
when the project does not use the new workflow.
-
getByVersionNumber
Finds the workflow version with the given version number, if such a version exists.- 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
null
if no such workflow version exists.
-