Package de.xima.fc.handler.entity
Class VorgangHandler
java.lang.Object
de.xima.fc.handler.AMSApiHandler
de.xima.fc.handler.entity.GenericHandler
de.xima.fc.handler.entity.VorgangHandler
- All Implemented Interfaces:
IAPIHandler,IGenericHandler,IVorgangHandler,Serializable
The Class VorgangHandler.
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Field Summary
Fields inherited from class de.xima.fc.handler.entity.GenericHandler
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAttachment(UserContext uc, Vorgang vorgang, Attachment attachment) addAttachment(UserContext uc, Long vorgangId, Long attachmentId) intbulkDelete(UserContext uc, List<Long> formRecordIds) Bulk deletes all form records with the given IDs iff the authenticated user given by the user context has permission to access the form records and the form records can be deleted (the state allows deletion).intbulkMarkRead(UserContext uc, 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 user context has permission to access the form records.intbulkMove(UserContext uc, 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 user context has permission to access the form records.correctStatus(UserContext uc, Vorgang formRecord, Status targetState, Benutzer user) Deprecated.correctStatus(UserContext uc, Vorgang formRecord, Status targetState, IUser user) Deprecated.voiddelete(UserContext uc, Vorgang formRecord) getAllByPostfach(UserContext uc, Postfach postfach) getChildren(UserContext uc, Vorgang formRecord) getCustomAttributes(UserContext uc, Vorgang process) getFormRecordBaseData(UserContext uc, de.xima.cmn.criteria.QueryCriteriaManager qcm) getFormRecordDoiInitData(UserContext uc, Vorgang formRecord) getFormRecordReviewData(UserContext uc, IInboxFormRecordRequest inboxRequest) getParent(UserContext uc, Vorgang formRecord) getVorgaengeByBenutzer(UserContext uc, Benutzer benutzer) Deprecated.getVorgaengeData(UserContext uc, Projekt pro, de.xima.cmn.criteria.QueryCriteriaManager qcm, EProjectSpecificDBTable tableType, Postfach... inboxes) getVorgaengeData(UserContext uc, Projekt pro, Postfach pf, de.xima.cmn.criteria.QueryCriteriaManager qcm, EProjectSpecificDBTable tableType) longgetVorgaengeDataTotalCount(UserContext uc, Projekt pro, de.xima.cmn.criteria.QueryCriteriaManager qcm, EProjectSpecificDBTable tableType, Postfach... inboxes) longgetVorgaengeDataTotalCount(UserContext uc, Projekt pro, Postfach pf, de.xima.cmn.criteria.QueryCriteriaManager qcm, EProjectSpecificDBTable tableType) getVorgangsData(UserContext uc, Projekt pro, Vorgang v, de.xima.cmn.criteria.QueryCriteriaManager qcm, EProjectSpecificDBTable tableType) getVorgangsData(UserContext uc, String prozessId, de.xima.cmn.criteria.QueryCriteriaManager qcm, EProjectSpecificDBTable tableType) 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, updateMethods inherited from class de.xima.fc.handler.AMSApiHandler
getNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.xima.fc.com.interfaces.IAPIHandler
getNameMethods 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
-
Constructor Details
-
VorgangHandler
public VorgangHandler()
-
-
Method Details
-
addAttachment
- Specified by:
addAttachmentin interfaceIVorgangHandler
-
addAttachment
- Specified by:
addAttachmentin interfaceIVorgangHandler
-
getVorgaengeData
public List<ExtendedEntityModel<Vorgang>> getVorgaengeData(UserContext uc, Projekt pro, Postfach pf, de.xima.cmn.criteria.QueryCriteriaManager qcm, EProjectSpecificDBTable tableType) - Specified by:
getVorgaengeDatain interfaceIVorgangHandler
-
getVorgaengeData
public List<ExtendedEntityModel<Vorgang>> getVorgaengeData(UserContext uc, Projekt pro, de.xima.cmn.criteria.QueryCriteriaManager qcm, EProjectSpecificDBTable tableType, Postfach... inboxes) - Specified by:
getVorgaengeDatain interfaceIVorgangHandler
-
getVorgaengeDataTotalCount
public long getVorgaengeDataTotalCount(UserContext uc, Projekt pro, Postfach pf, de.xima.cmn.criteria.QueryCriteriaManager qcm, EProjectSpecificDBTable tableType) - Specified by:
getVorgaengeDataTotalCountin interfaceIVorgangHandler
-
getVorgaengeDataTotalCount
public long getVorgaengeDataTotalCount(UserContext uc, Projekt pro, de.xima.cmn.criteria.QueryCriteriaManager qcm, EProjectSpecificDBTable tableType, Postfach... inboxes) - Specified by:
getVorgaengeDataTotalCountin interfaceIVorgangHandler
-
getVorgangsData
public ExtendedEntityModel<Vorgang> getVorgangsData(UserContext uc, String prozessId, de.xima.cmn.criteria.QueryCriteriaManager qcm, EProjectSpecificDBTable tableType) - Specified by:
getVorgangsDatain interfaceIVorgangHandler
-
getVorgangsData
public ExtendedEntityModel<Vorgang> getVorgangsData(UserContext uc, Projekt pro, Vorgang v, de.xima.cmn.criteria.QueryCriteriaManager qcm, EProjectSpecificDBTable tableType) - Specified by:
getVorgangsDatain interfaceIVorgangHandler
-
getAllByPostfach
- Specified by:
getAllByPostfachin interfaceIVorgangHandler
-
getCustomAttributes
- Specified by:
getCustomAttributesin interfaceIVorgangHandler
-
getFormRecordReviewData
public IFormRecordReviewData getFormRecordReviewData(UserContext uc, IInboxFormRecordRequest inboxRequest) - Specified by:
getFormRecordReviewDatain interfaceIVorgangHandler
-
getFormRecordBaseData
public List<IFormRecordBaseData> getFormRecordBaseData(UserContext uc, de.xima.cmn.criteria.QueryCriteriaManager qcm) - Specified by:
getFormRecordBaseDatain interfaceIVorgangHandler
-
getFormRecordDoiInitData
- Specified by:
getFormRecordDoiInitDatain interfaceIVorgangHandler
-
getParent
- Specified by:
getParentin interfaceIVorgangHandler- Parameters:
uc- The user context for the user who initiated this query.formRecord- Form record for which to find the parent.- Returns:
- The parent form record of the given form record, or
nullif no parent exists.
-
getChildren
- Specified by:
getChildrenin interfaceIVorgangHandler- Parameters:
uc- The user context for the user who initiated this query.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.
-
bulkMarkRead
Description copied from interface:IVorgangHandlerBulk updates the 'read' value of all form records with the given IDs to the given 'read' value iff the authenticated user given by the user context has permission to access the form records. If the user context does not provide an authenticated user (e.g. avirtual user) no form records will be updated.- Specified by:
bulkMarkReadin interfaceIVorgangHandler- Parameters:
uc-UserContextwith an authenticated user for database transactions. For creating a user context for an authenticated user seeUserContextFactory.forUser(IUser).formRecordIds-Listof IDs of the form records that the user requests to be updated.read-Booleanvalue to set the attribute 'gelesen' to- Returns:
- the number of updated records
-
bulkMove
Description copied from interface:IVorgangHandlerBulk moves all form records with the given IDs to the given inbox iff the authenticated user given by the user context has permission to access the form records. If the user context does not provide an authenticated user (e.g. avirtual user) no form records will be updated.- Specified by:
bulkMovein interfaceIVorgangHandler- Parameters:
uc-UserContextwith an authenticated user for database transactions. For creating a user context for an authenticated user seeUserContextFactory.forUser(IUser).formRecordIds-Setof IDs of the form records that the user requests to be updated.- Returns:
- the number of updated records.
-
bulkDelete
Description copied from interface:IVorgangHandlerBulk deletes all form records with the given IDs iff the authenticated user given by the user context has permission to access the form records and the form records can be deleted (the state allows deletion). If the user context does not provide an authenticated user (e.g. avirtual user) no form records will be deleted.- Specified by:
bulkDeletein interfaceIVorgangHandler- Parameters:
uc-UserContextwith an authenticated user for database transactions. For creating a user context for an authenticated user seeUserContextFactory.forUser(IUser).formRecordIds-Listof IDs of the form records that the user requests to be deleted.- Returns:
- the number of deleted form records.
-
acquireExclusiveFormRecordLock
public IExclusiveFormRecordLockResult acquireExclusiveFormRecordLock(UserContext uc, IBasicFormRecordRequestData req) - Specified by:
acquireExclusiveFormRecordLockin interfaceIVorgangHandler
-
releaseExclusiveFormRecordLock
public IExclusiveFormRecordLockResult releaseExclusiveFormRecordLock(UserContext uc, IBasicFormRecordRequestData req) - Specified by:
releaseExclusiveFormRecordLockin interfaceIVorgangHandler
-
correctStatus
@Deprecated public Vorgang correctStatus(UserContext uc, Vorgang formRecord, Status targetState, IUser user) Deprecated.- Specified by:
correctStatusin interfaceIVorgangHandler
-
getVorgaengeByBenutzer
Deprecated.- Specified by:
getVorgaengeByBenutzerin interfaceIVorgangHandler
-
correctStatus
@Deprecated public Vorgang correctStatus(UserContext uc, Vorgang formRecord, Status targetState, Benutzer user) Deprecated.- Specified by:
correctStatusin interfaceIVorgangHandler
-
delete
- Specified by:
deletein interfaceIVorgangHandler
-
correctStatus(UserContext, Vorgang, de.xima.fc.entities.Status, IUser)instead.