Package de.xima.fc.api.entity
Class FormRecordAccessAPI
- java.lang.Object
-
- de.xima.fc.api.ASubAPI
-
- de.xima.fc.api.entity.AEntityAPI<FormRecordAccess>
-
- de.xima.fc.api.entity.FormRecordAccessAPI
-
public class FormRecordAccessAPI extends AEntityAPI<FormRecordAccess>
API class for reading and writingFormRecordAccess
entities.- Since:
- 8.4.0
- Author:
- XIMA Media GmbH
-
-
Field Summary
-
Fields inherited from class de.xima.fc.api.entity.AEntityAPI
entityClass
-
-
Constructor Summary
Constructors Constructor Description FormRecordAccessAPI()
-
Method Summary
-
Methods inherited from class de.xima.fc.api.entity.AEntityAPI
create, create, delete, delete, deleteAllBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getEntityRefs, getPagedResult, getSingleAttributes, getSingleAttributes, resultTotalCount, resultTotalCount, update, update
-
Methods inherited from class de.xima.fc.api.ASubAPI
getHandlerProvider
-
-
-
-
Method Detail
-
getByUserRef
public FormRecordAccess getByUserRef(UserContext uc, Vorgang formRecord, IUserRef userRef)
- 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)
- 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)
Retrieves aFormRecordAccess
entity by its associatedVorgang
and email address.- 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)
Retrieves a list ofFormRecordAccess
entities associated with a givenVorgang
.- 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)
Creates or retrieves aFormRecordAccess
entity by its associatedVorgang
and email address.- 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)
Creates or retrieves aFormRecordAccess
entity by its associatedVorgang
and external user reference.- 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)
Creates or retrieves aFormRecordAccess
entity by its associatedVorgang
and user reference.- 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.
-
-