Class FormRecordAccessDao
java.lang.Object
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<FormRecordAccess, Long, IEntityContext>, IFormRecordAccessDao, IGenericDao<FormRecordAccess>
public class FormRecordAccessDao
extends GenericDao<FormRecordAccess>
implements IFormRecordAccessDao
Implementation of the
IFormRecordAccessDao for reading and writing FormRecordAccess entities.- Since:
- 8.4.0
- Author:
- XIMA Media GmbH
-
Field Summary
Fields inherited from class de.xima.cmn.dao.AbstractDao
entityClass, LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetByExternalUserRef(IEntityContext ec, Vorgang formRecord, IExternalUserRef userRef) getByFormRecord(IEntityContext ec, Vorgang formRecord) Retrieves a list ofFormRecordAccessentities associated with a givenVorgang.getByMail(IEntityContext ec, Vorgang formRecord, String mail) Retrieves aFormRecordAccessentity by its associatedVorgangand email address.getByUserRef(IEntityContext ec, Vorgang formRecord, IUserRef userRef) getOrCreateByMail(IEntityContext ec, Vorgang formRecord, String mail, EFormRecordAccessGrantType grantType) Retrieves or creates aFormRecordAccessentity by its associatedVorgangand email address.getOrCreateExternalUserRef(IEntityContext ec, Vorgang formRecord, IExternalUserRef externalUserRef, EFormRecordAccessGrantType grantType) getOrCreateUserRef(IEntityContext ec, Vorgang formRecord, IUserRef userRef, EFormRecordAccessGrantType grantType) Methods inherited from class GenericDao
getEntityRefs, getPostActionHook, getPreActionHook, readMethods inherited from class de.xima.cmn.dao.AbstractDao
all, bulkDelete, bulkUpdate, cb, checkLockingVersion, cq, create, create, delete, delete, deleteAll, executePagedDaoAction, getAttributes, getAttributes, getSingleAttributes, getSingleAttributes, getTransactionHandler, notifyListener, notifyListener, read, registerListener, registerListener, registerListener, resultTotalCount, setTransactionHandler, singleElement, unregisterListener, unregisterListener, unregisterListener, update, updateMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, updateMethods inherited from interface IGenericDao
count, createOrUpdate, findAll, findSingle, getEntityRefs, read
-
Constructor Details
-
FormRecordAccessDao
public FormRecordAccessDao()
-
-
Method Details
-
getByFormRecord
Description copied from interface:IFormRecordAccessDaoRetrieves a list ofFormRecordAccessentities associated with a givenVorgang.- Specified by:
getByFormRecordin interfaceIFormRecordAccessDao- Parameters:
ec- The entity context.formRecord- The associatedVorgang.- Returns:
- A list of
FormRecordAccessentities.
-
getOrCreateByMail
public FormRecordAccess getOrCreateByMail(IEntityContext ec, Vorgang formRecord, String mail, EFormRecordAccessGrantType grantType) Description copied from interface:IFormRecordAccessDaoRetrieves or creates aFormRecordAccessentity by its associatedVorgangand email address.- Specified by:
getOrCreateByMailin interfaceIFormRecordAccessDao- Parameters:
ec- The entity context.formRecord- The associatedVorgang.mail- The email address to search for.grantType- The access grant type.- Returns:
- The found or created
FormRecordAccessentity.
-
getByMail
Description copied from interface:IFormRecordAccessDaoRetrieves aFormRecordAccessentity by its associatedVorgangand email address.- Specified by:
getByMailin interfaceIFormRecordAccessDao- Parameters:
ec- The entity context.formRecord- The associatedVorgang.mail- The email address to search for.- Returns:
- The found
FormRecordAccessentity, or null if not found.
-
getOrCreateExternalUserRef
public FormRecordAccess getOrCreateExternalUserRef(IEntityContext ec, Vorgang formRecord, IExternalUserRef externalUserRef, EFormRecordAccessGrantType grantType) Description copied from interface:IFormRecordAccessDao- Specified by:
getOrCreateExternalUserRefin interfaceIFormRecordAccessDao- Parameters:
ec- The entity context.formRecord- The associatedVorgang.externalUserRef- TheIExternalUserRefto search for.grantType- The access grant type.- Returns:
- The found or created
FormRecordAccessentity.
-
getByExternalUserRef
public FormRecordAccess getByExternalUserRef(IEntityContext ec, Vorgang formRecord, IExternalUserRef userRef) Description copied from interface:IFormRecordAccessDao- Specified by:
getByExternalUserRefin interfaceIFormRecordAccessDao- Parameters:
ec- The entity context.formRecord- The associatedVorgang.userRef- TheIExternalUserRefto search for.- Returns:
- The found
FormRecordAccessentity, or null if not found.
-
getOrCreateUserRef
public FormRecordAccess getOrCreateUserRef(IEntityContext ec, Vorgang formRecord, IUserRef userRef, EFormRecordAccessGrantType grantType) Description copied from interface:IFormRecordAccessDao- Specified by:
getOrCreateUserRefin interfaceIFormRecordAccessDao- Parameters:
ec- The entity context.formRecord- The associatedVorgang.userRef- TheIUserRefto search for.grantType- The access grant type.- Returns:
- The found or created
FormRecordAccessentity.
-
getByUserRef
Description copied from interface:IFormRecordAccessDao- Specified by:
getByUserRefin interfaceIFormRecordAccessDao- Parameters:
ec- The entity context.formRecord- The associatedVorgang.userRef- TheIUserRefto search for.- Returns:
- The found
FormRecordAccessentity, or null if not found.
-