Package de.xima.fc.dao.impl
Class FormRecordAccessDao
- java.lang.Object
-
- de.xima.cmn.dao.AbstractDao<T,Long,IEntityContext>
-
- de.xima.fc.dao.impl.GenericDao<FormRecordAccess>
-
- de.xima.fc.dao.impl.FormRecordAccessDao
-
- 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 theIFormRecordAccessDao
for reading and writingFormRecordAccess
entities.- Since:
- 8.4.0
- Author:
- XIMA Media GmbH
-
-
Constructor Summary
Constructors Constructor Description FormRecordAccessDao()
-
Method Summary
-
Methods inherited from class de.xima.fc.dao.impl.GenericDao
getEntityRefs, getPostActionHook, getPreActionHook, read
-
Methods 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, update
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
-
getByFormRecord
public List<FormRecordAccess> getByFormRecord(IEntityContext ec, Vorgang formRecord)
Description copied from interface:IFormRecordAccessDao
Retrieves a list ofFormRecordAccess
entities associated with a givenVorgang
.- Specified by:
getByFormRecord
in interfaceIFormRecordAccessDao
- Parameters:
ec
- The entity context.formRecord
- The associatedVorgang
.- Returns:
- A list of
FormRecordAccess
entities.
-
getOrCreateByMail
public FormRecordAccess getOrCreateByMail(IEntityContext ec, Vorgang formRecord, String mail, EFormRecordAccessGrantType grantType)
Description copied from interface:IFormRecordAccessDao
Retrieves or creates aFormRecordAccess
entity by its associatedVorgang
and email address.- Specified by:
getOrCreateByMail
in 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
FormRecordAccess
entity.
-
getByMail
public FormRecordAccess getByMail(IEntityContext ec, Vorgang formRecord, String mail)
Description copied from interface:IFormRecordAccessDao
Retrieves aFormRecordAccess
entity by its associatedVorgang
and email address.- Specified by:
getByMail
in interfaceIFormRecordAccessDao
- Parameters:
ec
- The entity context.formRecord
- The associatedVorgang
.mail
- The email address to search for.- Returns:
- The found
FormRecordAccess
entity, or null if not found.
-
getOrCreateExternalUserRef
public FormRecordAccess getOrCreateExternalUserRef(IEntityContext ec, Vorgang formRecord, IExternalUserRef externalUserRef, EFormRecordAccessGrantType grantType)
Description copied from interface:IFormRecordAccessDao
- Specified by:
getOrCreateExternalUserRef
in interfaceIFormRecordAccessDao
- Parameters:
ec
- The entity context.formRecord
- The associatedVorgang
.externalUserRef
- TheIExternalUserRef
to search for.grantType
- The access grant type.- Returns:
- The found or created
FormRecordAccess
entity.
-
getByExternalUserRef
public FormRecordAccess getByExternalUserRef(IEntityContext ec, Vorgang formRecord, IExternalUserRef userRef)
Description copied from interface:IFormRecordAccessDao
- Specified by:
getByExternalUserRef
in interfaceIFormRecordAccessDao
- Parameters:
ec
- The entity context.formRecord
- The associatedVorgang
.userRef
- TheIExternalUserRef
to search for.- Returns:
- The found
FormRecordAccess
entity, or null if not found.
-
getOrCreateUserRef
public FormRecordAccess getOrCreateUserRef(IEntityContext ec, Vorgang formRecord, IUserRef userRef, EFormRecordAccessGrantType grantType)
Description copied from interface:IFormRecordAccessDao
- Specified by:
getOrCreateUserRef
in interfaceIFormRecordAccessDao
- Parameters:
ec
- The entity context.formRecord
- The associatedVorgang
.userRef
- TheIUserRef
to search for.grantType
- The access grant type.- Returns:
- The found or created
FormRecordAccess
entity.
-
getByUserRef
public FormRecordAccess getByUserRef(IEntityContext ec, Vorgang formRecord, IUserRef userRef)
Description copied from interface:IFormRecordAccessDao
- Specified by:
getByUserRef
in interfaceIFormRecordAccessDao
- Parameters:
ec
- The entity context.formRecord
- The associatedVorgang
.userRef
- TheIUserRef
to search for.- Returns:
- The found
FormRecordAccess
entity, or null if not found.
-
-