Class FormVersionHandler
java.lang.Object
de.xima.fc.handler.AMSApiHandler
de.xima.fc.handler.entity.GenericHandler
de.xima.fc.handler.entity.FormVersionHandler
- All Implemented Interfaces:
IAPIHandler, IFormVersionHandler, IGenericHandler, Serializable
The Class FormVersionHandler.
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Field Summary
Fields inherited from class GenericHandler
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(UserContext uc, FormVersion fv, Boolean setActive) Persists the given new form version in the database.getByProjekt(UserContext uc, Projekt projekt) getByVersionNumber(UserContext uc, Integer formVersionNumber, Long projectId) Gets a form version by its version number.Methods inherited from class GenericHandler
create, create, delete, delete, deleteBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getById, getEntityRefs, getSingleAttributes, getSingleAttributes, resultTotalCount, serializableList, update, updateMethods inherited from class AMSApiHandler
getNameMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IAPIHandler
getNameMethods inherited from interface IGenericHandler
create, create, delete, delete, deleteBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getById, getEntityRefs, getSingleAttributes, getSingleAttributes, resultTotalCount, update, update
-
Constructor Details
-
FormVersionHandler
public FormVersionHandler()
-
-
Method Details
-
create
Description copied from interface:IFormVersionHandlerPersists the given new form version in the database.- Specified by:
createin interfaceIFormVersionHandler- Parameters:
uc- the ucfv- the fvsetActive- the set active- Returns:
- the form version
-
getByProjekt
- Specified by:
getByProjektin interfaceIFormVersionHandler
-
getByVersionNumber
Description copied from interface:IFormVersionHandlerGets a form version by its version number. Defaults to the project's current version if the version number is null or no form version with the given version number exists.- Specified by:
getByVersionNumberin interfaceIFormVersionHandler- Parameters:
uc- The user context of the user who requests the form version.formVersionNumber- The version number of the form version to get.projectId- ID of the project to get the form version for.- Returns:
- The form version with the given version number or the project's current version if the version number is null or no form version with the given version number exists.
-