Class FormRecordAccessAPI
API class for reading and writing
FormRecordAccess entities.- Since:
- 8.4.0
- Author:
- XIMA Media GmbH
-
Field Summary
Fields inherited from class AEntityAPI
entityClass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetByExternalUserRef(UserContext uc, Vorgang formRecord, IExternalUserRef externalUserRef) getByFormRecord(UserContext uc, Vorgang formRecord) Retrieves a list ofFormRecordAccessentities associated with a givenVorgang.getByMail(UserContext uc, Vorgang formRecord, String mail) Retrieves aFormRecordAccessentity by its associatedVorgangand email address.getByUserRef(UserContext uc, Vorgang formRecord, IUserRef userRef) getOrCreateByMail(UserContext uc, Vorgang formRecord, String mail, EFormRecordAccessGrantType grantType) Creates or retrieves aFormRecordAccessentity by its associatedVorgangand email address.getOrCreateExternalUserRef(UserContext uc, Vorgang formRecord, IExternalUserRef externalUserRef, EFormRecordAccessGrantType grantType) Creates or retrieves aFormRecordAccessentity by its associatedVorgangand external user reference.getOrCreateUserRef(UserContext uc, Vorgang formRecord, IUserRef userRef, EFormRecordAccessGrantType grantType) Creates or retrieves aFormRecordAccessentity by its associatedVorgangand user reference.Methods inherited from class AEntityAPI
create, create, delete, delete, deleteAllBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getEntityRefs, getPagedResult, getSingleAttributes, getSingleAttributes, resultTotalCount, resultTotalCount, update, updateMethods inherited from class ASubAPI
getHandlerProvider
-
Constructor Details
-
FormRecordAccessAPI
public FormRecordAccessAPI()
-
-
Method Details
-
getByUserRef
- 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) - Parameters:
uc- The user context.formRecord- The associatedVorgang.externalUserRef- TheIExternalUserRefto search for.- Returns:
- The found
FormRecordAccessentity, or null if not found.
-
getByMail
Retrieves aFormRecordAccessentity by its associatedVorgangand email address.- 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
Retrieves a list ofFormRecordAccessentities associated with a givenVorgang.- 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) Creates or retrieves aFormRecordAccessentity by its associatedVorgangand 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
FormRecordAccessentity.
-
getOrCreateExternalUserRef
public FormRecordAccess getOrCreateExternalUserRef(UserContext uc, Vorgang formRecord, IExternalUserRef externalUserRef, EFormRecordAccessGrantType grantType) Creates or retrieves aFormRecordAccessentity by its associatedVorgangand 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
FormRecordAccessentity.
-
getOrCreateUserRef
public FormRecordAccess getOrCreateUserRef(UserContext uc, Vorgang formRecord, IUserRef userRef, EFormRecordAccessGrantType grantType) Creates or retrieves aFormRecordAccessentity by its associatedVorgangand 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
FormRecordAccessentity.
-