Class User
java.lang.Object
com.serinity.accesscontrol.model.base.IdentifiableEntity
com.serinity.accesscontrol.model.base.TimestampedEntity
com.serinity.accesscontrol.model.User
Represents a system user within the Access Control application.
This entity is mapped to the users database table
Note: This class is declared final to prevent inheritance and ensure
session integrity.
- Since:
- 2026-02-02 User.java
- Version:
- 1.0
- Author:
- @ZouariOmar (zouariomar20@gmail.com)
-
Field Summary
Fields inherited from class TimestampedEntity
createdAt, updatedAtFields inherited from class IdentifiableEntity
id -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the account status.getEmail()Returns the user email address.Returns the hashed password.Returns the current presence status.getRole()Returns the role assigned to this user.booleanIndicates whether face recognition login is enabled.protected voidonAction()voidsetAccountStatus(AccountStatus accountStatus) voidvoidsetFaceRecognitionEnabled(boolean faceRecognitionEnabled) voidsetPasswordHash(String passwordHash) voidsetPresenceStatus(PresenceStatus presenceStatus) voidMethods inherited from class IdentifiableEntity
getId
-
Constructor Details
-
User
public User()Creates an empty user entity.
-
-
Method Details
-
getEmail
-
setEmail
-
getPassword
-
setPasswordHash
-
getRole
-
setRole
-
getPresenceStatus
Returns the current presence status.- Returns:
- presence status
-
setPresenceStatus
-
getAccountStatus
-
setAccountStatus
-
isFaceRecognitionEnabled
public boolean isFaceRecognitionEnabled()Indicates whether face recognition login is enabled.- Returns:
trueif face recognition is enabled
-
setFaceRecognitionEnabled
public void setFaceRecognitionEnabled(boolean faceRecognitionEnabled) -
onAction
protected void onAction()
-