Class FormRecordAccess
java.lang.Object
de.xima.cmn.dao.model.AEntity<Long>
de.xima.fc.entities.AbstractEntity
de.xima.fc.entities.AbstractLockableEntity
de.xima.fc.entities.FormRecordAccess
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IEntity<Long>, de.xima.cmn.dao.interfaces.ILockableEntity<Long>, ILockingVersionProviding, ITransferable, ITransferableEntity, ITransferableLockableEntity, Serializable, Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>
Entity representing the access to a form record.
This entity is used to store information about the access granted to a form record, including the type of access, the user reference, and the access token.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class AbstractLockableEntity
COL_LOCKINGVERSION, lockingVersionFields inherited from class AbstractEntity
COL_ID, idFields inherited from interface de.xima.cmn.dao.interfaces.IEntity
ATTR_IDFields inherited from interface de.xima.cmn.dao.interfaces.ILockableEntity
ATTR_LOCKINGVERSIONFields inherited from interface ITransferableEntity
IMPORT_ID, INVALID_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()booleanhasUserRefAccess(IUserRef userRef) Checks if the access is granted to the given user reference.booleanChecks if the access is expired.voidsetAccessExpireAt(Instant accessExpireAt) voidsetAccessGrantedAt(Instant accessGrantedAt) voidsetAccessGrantType(EFormRecordAccessGrantType accessGrantType) voidsetAccessPassword(String accessPassword) voidsetAccessToken(String accessToken) voidsetExternalReferenceId(String externalAccessId) voidsetFormRecord(Vorgang formRecord) void!!!voidsetUniversalReferenceId(String userReferenceId) voidsetUserMail(String accessMail) voidsetUserProfileUuid(UUID uuid) voidsetUserRef(@NotNull IUserRef userRef) Sets the user reference for this access.booleanupdateUserRef(@NotNull IUserRef userRef) Updates the user reference for this access.Methods inherited from class AbstractLockableEntity
entityHasChanged, getLockingVersion, setLockingVersion, toStringMethods inherited from class AbstractEntity
asIntValue, isPersisted, setIdMethods inherited from class de.xima.cmn.dao.model.AEntity
compareTo, equals, getDBTableName, hashCodeMethods inherited from interface Comparable
compareToMethods inherited from interface de.xima.cmn.dao.interfaces.IEntity
isPersisted
-
Field Details
-
ATTR_FORM_RECORD
- See Also:
-
ATTR_ACCESS_GRANT_TYPE
- See Also:
-
ATTR_UNIVERSAL_REFERENCE_ID
- See Also:
-
ATTR_EXTERNAL_REFERENCE_ID
- See Also:
-
ATTR_USER_PROFILE_UUID
- See Also:
-
ATTR_USER_MAIL
- See Also:
-
ATTR_ACCESS_TOKEN
- See Also:
-
ATTR_ACCESS_PASSWORD
- See Also:
-
ATTR_ACCESS_GRANTED_AT
- See Also:
-
ATTR_ACCESS_EXPIRE_AT
- See Also:
-
COL_FORM_RECORD_ID
- See Also:
-
COL_ACCESS_GRANT_TYPE
- See Also:
-
COL_UNIVERSAL_REFERENCE_ID
- See Also:
-
COL_EXTERNAL_REFERENCE_ID
- See Also:
-
COL_USER_PROFILE_UUID
- See Also:
-
COL_USER_MAIL
- See Also:
-
COL_ACCESS_TOKEN
- See Also:
-
COL_ACCESS_PASSWORD
- See Also:
-
COL_ACCESS_GRANTED_TIMESTAMP
- See Also:
-
COL_ACCESS_EXPIRE_TIMESTAMP
- See Also:
-
-
Constructor Details
-
FormRecordAccess
public FormRecordAccess()
-
-
Method Details
-
getId
-
setId
Description copied from class:AbstractEntity!!!WARNING: Currently values biggerInteger.MAX_VALUEor lower thenInteger.MIN_VALUEwill be altered to null!!!- Specified by:
setIdin interfacede.xima.cmn.dao.interfaces.IEntity<Long>- Overrides:
setIdin classAbstractEntity- Parameters:
id-Longthe database-id to set
-
getFormRecord
-
setFormRecord
-
getAccessGrantType
-
setAccessGrantType
-
getUniversalReferenceId
-
setUniversalReferenceId
-
getAccessGrantedAt
-
setAccessGrantedAt
-
getAccessExpireAt
-
setAccessExpireAt
-
getUserMail
-
setUserMail
-
getExternalReferenceId
-
setExternalReferenceId
-
getAccessToken
-
setAccessToken
-
getAccessPassword
-
setAccessPassword
-
getUserProfileUuid
-
setUserProfileUuid
-
setUserRef
Sets the user reference for this access.This method sets the universal reference ID and the user profile UUID based on the provided user reference.
- Parameters:
userRef- The user reference to set.
-
updateUserRef
Updates the user reference for this access.This method updates the universal reference ID and the user profile UUID based on the provided user reference and only if they are not already set.
- Parameters:
userRef- The user reference to update.- Returns:
- true if the universal reference ID or the user profile UUID was updated, false otherwise.
-
isExpired
public boolean isExpired()Checks if the access is expired.This method checks if the access granted until timestamp is before the current instant.
- Returns:
- true if the access is expired, false otherwise.
-
hasUserRefAccess
Checks if the access is granted to the given user reference.- Parameters:
userRef- the user reference to check- Returns:
- true if the access is granted to the given user reference, false otherwise
-