Package com.avoka.tm.vo
Class User
java.lang.Object
com.avoka.tm.vo.User
Provide a User value object class.
- Since:
- 5.0.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The "Active" user status.static final String
The "Inactive" user status.static final String
The "Locked" user status.static final String
The "Locked Temporarily" user status.static final String
The "Pending" user status.static final String
The "Rejected" user status.static final String
The "LDAP" user type.static final String
The "Local" user type.static final String
The "SSO" user type. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe user account status [ Active | Inactive | Locked | Locked Temporarily | Pending | Rejected ].The time the user was created.getEmail()
The user email address.int
The number of failed login attempts.The user first name (given name).The user group names.getId()
The user id (PK).The time the user last logged in.The user last name (family name).The time a temporary lockout should end.The user login name.The user mobile telephone number.The user organization names.getPhone()
The user telephone number.The user profile values map.The user role names.The user form space names.The user GUID alternative key.The user type [ Local | LDAP | SSO ].boolean
The user is forced change password on next login.boolean
The user requires email verification.boolean
The user has global client organization access.toString()
-
Field Details
-
STATUS_ACTIVE
The "Active" user status.- See Also:
-
STATUS_INACTIVE
The "Inactive" user status.- See Also:
-
STATUS_LOCKED
The "Locked" user status.- See Also:
-
STATUS_LOCKED_TEMPORARILY
The "Locked Temporarily" user status.- See Also:
-
STATUS_PENDING
The "Pending" user status.- See Also:
-
STATUS_REJECTED
The "Rejected" user status.- See Also:
-
TYPE_LOCAL
The "Local" user type.- See Also:
-
TYPE_LDAP
The "LDAP" user type.- See Also:
-
TYPE_SSO
The "SSO" user type.- See Also:
-
-
Constructor Details
-
User
public User() -
User
public User(com.avoka.fc.core.entity.UserAccount userAccount) Create a User value object with the given user account entity.- Parameters:
userAccount
- the user account entity (required)
-
User
Create a User value object with the given user account entity and group names.- Parameters:
userAccount
- the user account entity (required)groupNames
- the user group names (required)
-
User
Create a unit testing User value object with the given fields.- Parameters:
fields
- the user entity fields (required)- Since:
- 5.1.4
-
-
Method Details
-
toString
-
getId
The user id (PK). -
getLoginName
The user login name. -
getAccountStatus
The user account status [ Active | Inactive | Locked | Locked Temporarily | Pending | Rejected ]. -
getEmail
The user email address. -
getFirstName
The user first name (given name). -
getLastName
The user last name (family name). -
getMobile
The user mobile telephone number. -
getPhone
The user telephone number. -
getUserKey
The user GUID alternative key. -
getUserType
The user type [ Local | LDAP | SSO ]. -
isHasGlobalAccess
public boolean isHasGlobalAccess()The user has global client organization access. -
getFailedLoginAttempts
public int getFailedLoginAttempts()The number of failed login attempts. -
getCreatedTime
The time the user was created. -
getLastAccessedTime
The time the user last logged in. -
getLockoutEndTime
The time a temporary lockout should end. -
getProfileMap
The user profile values map. -
getGroupNames
The user group names. -
getOrgNames
The user organization names. -
getRoleNames
The user role names. -
getSpaceNames
The user form space names. -
isChangePassword
public boolean isChangePassword()The user is forced change password on next login.- Since:
- 19.11.3
-
isEmailVerificationRequired
public boolean isEmailVerificationRequired()The user requires email verification.- Since:
- 19.11.3
-