Package de.xima.fc.handler.entity
Class FormRecordAccessHandler
- java.lang.Object
-
- de.xima.fc.handler.AMSApiHandler
-
- de.xima.fc.handler.entity.GenericHandler
-
- de.xima.fc.handler.entity.FormRecordAccessHandler
-
- All Implemented Interfaces:
IAPIHandler
,IFormRecordAccessHandler
,IGenericHandler
,Serializable
public class FormRecordAccessHandler extends GenericHandler implements IFormRecordAccessHandler
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class de.xima.fc.handler.entity.GenericHandler
LOG
-
-
Constructor Summary
Constructors Constructor Description FormRecordAccessHandler()
-
Method Summary
-
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, update
-
Methods inherited from class de.xima.fc.handler.AMSApiHandler
getName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.xima.fc.com.interfaces.IAPIHandler
getName
-
Methods 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
-
-
-
-
Method Detail
-
getByUserRef
public FormRecordAccess getByUserRef(UserContext uc, Vorgang formRecord, IUserRef userRef)
Description copied from interface:IFormRecordAccessHandler
- Specified by:
getByUserRef
in interfaceIFormRecordAccessHandler
- Parameters:
uc
- The user context.formRecord
- The associatedVorgang
.userRef
- TheIUserRef
to search for.- Returns:
- The found
FormRecordAccess
entity, or null if not found.
-
getByExternalUserRef
public FormRecordAccess getByExternalUserRef(UserContext uc, Vorgang formRecord, IExternalUserRef externalUserRef)
Description copied from interface:IFormRecordAccessHandler
- Specified by:
getByExternalUserRef
in interfaceIFormRecordAccessHandler
- Parameters:
uc
- The user context.formRecord
- The associatedVorgang
.externalUserRef
- TheIExternalUserRef
to search for.- Returns:
- The found
FormRecordAccess
entity, or null if not found.
-
getByMail
public FormRecordAccess getByMail(UserContext uc, Vorgang formRecord, String mail)
Description copied from interface:IFormRecordAccessHandler
Retrieves aFormRecordAccess
entity by its associatedVorgang
and email address.- Specified by:
getByMail
in interfaceIFormRecordAccessHandler
- Parameters:
uc
- The user context.formRecord
- The associatedVorgang
.mail
- The email address to search for.- Returns:
- The found
FormRecordAccess
entity, or null if not found.
-
getByFormRecord
public List<FormRecordAccess> getByFormRecord(UserContext uc, Vorgang formRecord)
Description copied from interface:IFormRecordAccessHandler
Retrieves a list ofFormRecordAccess
entities associated with a givenVorgang
.- Specified by:
getByFormRecord
in interfaceIFormRecordAccessHandler
- Parameters:
uc
- The user context.formRecord
- The associatedVorgang
.- Returns:
- A list of
FormRecordAccess
entities.
-
getOrCreateByMail
public FormRecordAccess getOrCreateByMail(UserContext uc, Vorgang formRecord, String mail, EFormRecordAccessGrantType grantType)
Description copied from interface:IFormRecordAccessHandler
Creates or retrieves aFormRecordAccess
entity by its associatedVorgang
and email address.- Specified by:
getOrCreateByMail
in interfaceIFormRecordAccessHandler
- Parameters:
uc
- The user context.formRecord
- The associatedVorgang
.mail
- The email address to search for.grantType
- The access grant type.- Returns:
- The created or retrieved
FormRecordAccess
entity.
-
getOrCreateExternalUserRef
public FormRecordAccess getOrCreateExternalUserRef(UserContext uc, Vorgang formRecord, IExternalUserRef externalUserRef, EFormRecordAccessGrantType grantType)
Description copied from interface:IFormRecordAccessHandler
Creates or retrieves aFormRecordAccess
entity by its associatedVorgang
and external user reference.- Specified by:
getOrCreateExternalUserRef
in interfaceIFormRecordAccessHandler
- Parameters:
uc
- The user context.formRecord
- The associatedVorgang
.externalUserRef
- The external user ref to search for.grantType
- The access grant type.- Returns:
- The created or retrieved
FormRecordAccess
entity.
-
getOrCreateUserRef
public FormRecordAccess getOrCreateUserRef(UserContext uc, Vorgang formRecord, IUserRef userRef, EFormRecordAccessGrantType grantType)
Description copied from interface:IFormRecordAccessHandler
Creates or retrieves aFormRecordAccess
entity by its associatedVorgang
and user reference.- Specified by:
getOrCreateUserRef
in interfaceIFormRecordAccessHandler
- Parameters:
uc
- The user context.formRecord
- The associatedVorgang
.userRef
- The user ref to search for.grantType
- The access grant type.- Returns:
- The created or retrieved
FormRecordAccess
entity.
-
-