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:
getByUserRefin interfaceIFormRecordAccessHandler- Parameters:
uc- The user context.formRecord- The associatedVorgang.userRef- TheIUserRefto search for.- Returns:
- The found
FormRecordAccessentity, or null if not found.
-
getByExternalUserRef
public FormRecordAccess getByExternalUserRef(UserContext uc, Vorgang formRecord, IExternalUserRef externalUserRef)
Description copied from interface:IFormRecordAccessHandler- Specified by:
getByExternalUserRefin interfaceIFormRecordAccessHandler- Parameters:
uc- The user context.formRecord- The associatedVorgang.externalUserRef- TheIExternalUserRefto search for.- Returns:
- The found
FormRecordAccessentity, or null if not found.
-
getByMail
public FormRecordAccess getByMail(UserContext uc, Vorgang formRecord, String mail)
Description copied from interface:IFormRecordAccessHandlerRetrieves aFormRecordAccessentity by its associatedVorgangand email address.- Specified by:
getByMailin interfaceIFormRecordAccessHandler- Parameters:
uc- The user context.formRecord- The associatedVorgang.mail- The email address to search for.- Returns:
- The found
FormRecordAccessentity, or null if not found.
-
getByFormRecord
public List<FormRecordAccess> getByFormRecord(UserContext uc, Vorgang formRecord)
Description copied from interface:IFormRecordAccessHandlerRetrieves a list ofFormRecordAccessentities associated with a givenVorgang.- Specified by:
getByFormRecordin interfaceIFormRecordAccessHandler- Parameters:
uc- The user context.formRecord- The associatedVorgang.- Returns:
- A list of
FormRecordAccessentities.
-
getOrCreateByMail
public FormRecordAccess getOrCreateByMail(UserContext uc, Vorgang formRecord, String mail, EFormRecordAccessGrantType grantType)
Description copied from interface:IFormRecordAccessHandlerCreates or retrieves aFormRecordAccessentity by its associatedVorgangand email address.- Specified by:
getOrCreateByMailin 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
FormRecordAccessentity.
-
getOrCreateExternalUserRef
public FormRecordAccess getOrCreateExternalUserRef(UserContext uc, Vorgang formRecord, IExternalUserRef externalUserRef, EFormRecordAccessGrantType grantType)
Description copied from interface:IFormRecordAccessHandlerCreates or retrieves aFormRecordAccessentity by its associatedVorgangand external user reference.- Specified by:
getOrCreateExternalUserRefin 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
FormRecordAccessentity.
-
getOrCreateUserRef
public FormRecordAccess getOrCreateUserRef(UserContext uc, Vorgang formRecord, IUserRef userRef, EFormRecordAccessGrantType grantType)
Description copied from interface:IFormRecordAccessHandlerCreates or retrieves aFormRecordAccessentity by its associatedVorgangand user reference.- Specified by:
getOrCreateUserRefin 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
FormRecordAccessentity.
-
-