Package de.xima.fc.dao.interfaces
Interface IFormVersionDao
-
- All Superinterfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<FormVersion,Long,IEntityContext>,IGenericDao<FormVersion>,IProjektDependentBaseDao<FormVersion>
- All Known Implementing Classes:
FormVersionDao
public interface IFormVersionDao extends IProjektDependentBaseDao<FormVersion>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intcalcNewVersionNumber(IEntityContext ec, Projekt projekt)FormVersioncopy(IEntityContext ec, FormVersion source, Projekt projekt)FormVersioncreateDefaultFormVersion(IEntityContext ec, Projekt project, IUser user)Returns a new default form version on the basis of a given project.FormVersiongetBy(IEntityContext ec, Projekt projekt, int versionNumber)List<FormVersion>getByFormTheme(IEntityContext ec, Mandant client, FormThemeReference formTheme)Finds all form versions that are associated with the given form theme.List<FormVersion>getByFormThemePlugin(IEntityContext ec, Mandant client, String formThemePluginKey)Finds all form versions that are associated with any theme from the given form theme plugin.List<FormVersion>getByProjekt(IEntityContext ec, Projekt projekt)FormVersiongetByUUID(IEntityContext ec, Projekt project, String uuid)Returns the form version for the given UUID string and projectFormVersiongetByUUID(IEntityContext ec, Projekt project, UUID uuid)Returns the form version for the given UUID and projectFormVersiongetByVersionNumber(IEntityContext ec, Integer formVersionNumber, Long projectId)Gets the form version with the given version number.-
Methods inherited from interface de.xima.cmn.dao.interfaces.IAbstractDao
all, 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, update
-
Methods inherited from interface de.xima.fc.dao.interfaces.IGenericDao
count, findAll, findSingle, getEntityRefs, read
-
-
-
-
Method Detail
-
calcNewVersionNumber
int calcNewVersionNumber(IEntityContext ec, Projekt projekt)
-
getBy
FormVersion getBy(IEntityContext ec, Projekt projekt, int versionNumber)
-
getByUUID
FormVersion getByUUID(IEntityContext ec, Projekt project, String uuid)
Returns the form version for the given UUID string and project- Parameters:
ec-IEntityContextto useproject-Projektcontext in which to look for form versionuuid-StringUUID string of the form version- Returns:
FormVersionfor the given UUID and project- Since:
- 6.1.0
-
getByUUID
FormVersion getByUUID(IEntityContext ec, Projekt project, UUID uuid)
Returns the form version for the given UUID and project- Parameters:
ec-IEntityContextto useproject-Projektcontext in which to look for form versionuuid-UUIDUUID of the form version- Returns:
FormVersionfor the given UUID and project- Since:
- 6.1.0
-
copy
FormVersion copy(IEntityContext ec, FormVersion source, Projekt projekt)
-
getByProjekt
List<FormVersion> getByProjekt(IEntityContext ec, Projekt projekt)
-
createDefaultFormVersion
FormVersion createDefaultFormVersion(IEntityContext ec, Projekt project, IUser user)
Returns a new default form version on the basis of a given project.- Parameters:
ec-IEntityContextto useproject-Projektcontext in which to create the form versionuser-IUseruser for form file data informations- Returns:
- default
FormVersionfor the given project - Since:
- 8.0.0
-
getByVersionNumber
FormVersion getByVersionNumber(IEntityContext ec, Integer formVersionNumber, Long projectId)
Gets the form version with the given version number. Returns the project's default version if the version number is null or no such version exists.- Parameters:
ec- Entity context for accessing the databaseformVersionNumber- Version number of the form version to get.projectId- ID of the project containing the form version.- Returns:
- Form version with the given version number
-
getByFormThemePlugin
List<FormVersion> getByFormThemePlugin(IEntityContext ec, Mandant client, String formThemePluginKey)
Finds all form versions that are associated with any theme from the given form theme plugin.- Parameters:
ec- Entity context for accessing the database.client- The client to which to limit the search. May be null to search all clients.formThemePluginKey- The key of the form theme plugin.- Returns:
- All form versions that are associated with a theme from the given form theme plugin.
-
getByFormTheme
List<FormVersion> getByFormTheme(IEntityContext ec, Mandant client, FormThemeReference formTheme)
Finds all form versions that are associated with the given form theme.- Parameters:
ec- Entity context for accessing the database.client- The client to which to limit the search. May be null to search all clients.formTheme- The form theme reference to search for.- Returns:
- All form versions that are associated with the given form theme.
-
-