Package de.xima.fc.dao.interfaces
Interface IVorgangDao
- All Superinterfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<Vorgang,
,Long, IEntityContext> IGenericDao<Vorgang>
- All Known Implementing Classes:
VorgangDao
-
Method Summary
Modifier and TypeMethodDescriptionallByPostfach
(IEntityContext ec, Postfach postfach) allByProjekt
(IEntityContext ec, Projekt pro) int
bulkdDeleteAll
(IEntityContext ec, Postfach postfach) Deprecated.int
bulkdDeleteAll
(IEntityContext ec, Projekt project) Deprecated.int
bulkDelete
(IEntityContext ec, List<Long> formRecordIds) Bulk deletes all form records with the given IDs iff the authenticated user given by the entity context has permission to access the form records and the form records can be deleted (the state allows deletion).int
bulkDeleteAll
(IEntityContext ec, Postfach postfach) int
bulkDeleteAll
(IEntityContext ec, Projekt project) int
bulkMarkRead
(IEntityContext ec, List<Long> formRecordIds, boolean read) Bulk updates the 'read' value of all form records with the given IDs to the given 'read' value iff the authenticated user given by the entity context has permission to access the form records.int
bulkMove
(IEntityContext ec, Set<Long> formRecordIds, Postfach inbox) Bulk moves all form records with the given IDs to the given inbox iff the authenticated user given by the entity context has permission to access the form records.correctStatus
(IEntityContext ec, Vorgang formRecord, Status targetState, Benutzer user) Deprecated.correctStatus
(IEntityContext ec, Vorgang formRecord, Status targetState, IUser user) void
deleteAll
(IEntityContext ec, Postfach postfach) Deprecated.void
deleteAll
(IEntityContext ec, Projekt selected) Deprecated.int
boolean
existsIdentityToken
(IEntityContext ec, Vorgang formRecord, String identityToken, Projekt project) Checks whether there exists any form record that belongs to the same project as the given project is not the same as the given form record but has got the same identity token as the given tokengetByProzessId
(IEntityContext ec, String prozessId) getByUUID
(IEntityContext ec, String uuid) Returns the form record with the given UUIDgetByUUID
(IEntityContext ec, UUID uuid) Returns the form record with the given UUIDgetByVerifyId
(IEntityContext ec, String verifyId) GetsVorgang
by its Verify-IDgetChildren
(IEntityContext ec, Vorgang formRecord) int
getCountByAuthenticatorDependentCreator
(IEntityContext ec, IAuthenticator<?> authenticator) Returns the number of form records that have a creator that is dependent on this authenticator.getFormData
(IEntityContext ec, Vorgang v) getParent
(IEntityContext ec, Vorgang formRecord) getVorgaengeByBenutzer
(IEntityContext ec, Benutzer benutzer) Deprecated.setFormData
(IEntityContext ec, Vorgang process, String formData) Deprecated.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 Details
-
getByProzessId
-
getByVerifyId
GetsVorgang
by its Verify-ID- Parameters:
ec
-IEntityContext
verifyId
-String
- Returns:
Vorgang
- Since:
- 6.0.0
-
allByProjekt
-
allByPostfach
-
getFormData
-
setFormData
Deprecated.- Parameters:
ec
-IEntityContext
process
- the process to set the form-data toformData
- the form-data to set- Returns:
- the process with the new form-data
-
deleteAll
Deprecated.- Parameters:
ec
-IEntityContext
selected
-Projekt
-
bulkdDeleteAll
Deprecated.- Parameters:
ec
-IEntityContext
for accessing the database.project
-Projekt
to which the form record belongs.- Returns:
- count of deleted entries
-
bulkDeleteAll
- Parameters:
ec
-IEntityContext
for accessing the database.project
-Projekt
to which the form record belongs.- Returns:
- count of deleted entries
- Since:
- 6.0.2
-
deleteAll
Deprecated.- Parameters:
ec
- {IEntityContext
for accessing the database.postfach
-Postfach
in which the form set is located.
-
bulkdDeleteAll
Deprecated.- Parameters:
ec
-IEntityContext
for accessing the database.postfach
-Postfach
in which the form set is located.
-
bulkDeleteAll
- Parameters:
ec
-IEntityContext
for accessing the database.postfach
-Postfach
in which the form set is located.- Since:
- 6.0.2
-
existsIdentityToken
boolean existsIdentityToken(IEntityContext ec, Vorgang formRecord, String identityToken, Projekt project) Checks whether there exists any form record that- belongs to the same project as the given project
- is not the same as the given form record
- but has got the same identity token as the given token
- Parameters:
ec
- Entity context for accessing the database.formRecord
- Current form record. Ifnull
, allows all form records for the given project.identityToken
- New identity token to be checked.project
- Project to which the form record belongs.- Returns:
- True iff a form record with the given identity token exists already.
-
deleteAllUnverified
- Parameters:
ec
- Entity context for accessing the database.
-
correctStatus
-
bulkMarkRead
Bulk updates the 'read' value of all form records with the given IDs to the given 'read' value iff the authenticated user given by the entity context has permission to access the form records. If the entity context does not provide an authenticated user (e.g. avirtual user
) no form records will be updated.- Parameters:
ec
-IEntityContext
with an authenticated user for database transactions. For creating an entity context for an authenticated user seeEntityContextFactory.newEntityContext(IUser)
.formRecordIds
-List
of IDs of the form records that the user requests to be updated.read
-Boolean
value to set the attribute 'gelesen' to- Returns:
- the number of updated records.
- Throws:
de.xima.cmn.dao.exceptions.UpdateException
- if the given entity context does not provide an authenticated user.- Since:
- 6.2.1
-
bulkMove
Bulk moves all form records with the given IDs to the given inbox iff the authenticated user given by the entity context has permission to access the form records. If the entity context does not provide an authenticated user (e.g. avirtual user
) no form records will be updated.- Parameters:
ec
-IEntityContext
with an authenticated user for database transactions. For creating an entity context for an authenticated user seeEntityContextFactory.newEntityContext(IUser)
.formRecordIds
-Set
of IDs of the form records that the user requests to be updated.- Returns:
- the number of updated records.
- Throws:
de.xima.cmn.dao.exceptions.UpdateException
- if the given entity context does not provide an authenticated user.- Since:
- 8.0.2
-
bulkDelete
int bulkDelete(IEntityContext ec, List<Long> formRecordIds) throws de.xima.cmn.dao.exceptions.DeleteException Bulk deletes all form records with the given IDs iff the authenticated user given by the entity context has permission to access the form records and the form records can be deleted (the state allows deletion). If the entity context does not provide an authenticated user (e.g. avirtual user
) no form records will be deleted.- Parameters:
ec
-IEntityContext
with an authenticated user for database transactions. For creating an entity context for an authenticated user seeEntityContextFactory.newEntityContext(IUser)
.formRecordIds
-List
of IDs of the form records that the user requests to be deleted.- Returns:
- the number of deleted form records.
- Throws:
de.xima.cmn.dao.exceptions.DeleteException
- if the given entity context does not provide an authenticated user.- Since:
- 8.0.2
-
getByUUID
Returns the form record with the given UUID- Parameters:
ec
-IEntityContext
to useuuid
-String
UUID of the template- Returns:
- The appointment template for the given UUID
-
getByUUID
Returns the form record with the given UUID- Parameters:
ec
-IEntityContext
to useuuid
-UUID
UUID of the template- Returns:
- The appointment template for the given UUID
-
getParent
- Parameters:
ec
- Entity context to access the database.formRecord
- Form record for which to find the parent.- Returns:
- The parent form record of the given form record, or
null
if no parent exists.
-
getChildren
- Parameters:
ec
- Entity context to access the database.formRecord
- Form record for which to find the parent.- Returns:
- All children of the given form record, or an empty list if no children exist.
-
getCountByAuthenticatorDependentCreator
Returns the number of form records that have a creator that is dependent on this authenticator.- Parameters:
ec
- Entity context to access the database.authenticator
- the creator of a form record used.- Returns:
- the number of form records that have a creator that is dependent on this authenticator.
- Since:
- 8.0.0
-
getVorgaengeByBenutzer
Deprecated. -
correctStatus
@Deprecated Vorgang correctStatus(IEntityContext ec, Vorgang formRecord, Status targetState, Benutzer user) Deprecated.
-
bulkDeleteAll(IEntityContext, Postfach)