Class AdminUser
java.lang.Object
com.broadleafcommerce.notification.service.provider.external.domain.user.AdminUser
- All Implemented Interfaces:
Serializable
Represents a user of the admin application.
- Author:
- Susana Cruz (susanaccruz)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe ids of applications this user is a member of.The default communication preference of the user.getEmail()The email address of the user.getId()The unique identifier for this user.getName()The name of this user.getPhone()The phone number of the user.The id of the tenant this user is associated with.The username of this user, used to log into the application.inthashCode()booleanisActive()A flag indicating whether the admin user account is enabled.booleanIndicates whether this user has access at the application level or not.booleanA flag indicating whether the admin user account requires a password reset.booleanA flag indicating whether the admin user account is expired.booleanisGlobal()If true, this user is a global user, meaning that they can access the global applications.booleanisLocked()A flag indicating whether the admin user account is locked due to too many failed login attempts.booleanIndicates whether this user has access at the tenant level or not.voidsetActive(boolean active) A flag indicating whether the admin user account is enabled.voidsetApplicationAccess(boolean applicationAccess) Indicates whether this user has access at the application level or not.voidsetApplicationIds(Set<String> applicationIds) The ids of applications this user is a member of.voidsetChangePasswordRequired(boolean changePasswordRequired) A flag indicating whether the admin user account requires a password reset.voidsetDefaultCommunicationPreference(String defaultCommunicationPreference) The default communication preference of the user.voidThe email address of the user.voidsetExpired(boolean expired) A flag indicating whether the admin user account is expired.voidsetGlobal(boolean global) If true, this user is a global user, meaning that they can access the global applications.voidThe unique identifier for this user.voidsetLocked(boolean locked) A flag indicating whether the admin user account is locked due to too many failed login attempts.voidThe name of this user.voidThe phone number of the user.voidsetTenantAccess(boolean tenantAccess) Indicates whether this user has access at the tenant level or not.voidsetTenantId(String tenantId) The id of the tenant this user is associated with.voidsetUsername(String username) The username of this user, used to log into the application.toString()
-
Constructor Details
-
AdminUser
public AdminUser()
-
-
Method Details
-
getId
The unique identifier for this user. -
getName
The name of this user. -
getUsername
The username of this user, used to log into the application. May be the same asemail, but that is not necessary. -
getEmail
The email address of the user. -
getPhone
The phone number of the user. -
getDefaultCommunicationPreference
The default communication preference of the user. -
isGlobal
public boolean isGlobal()If true, this user is a global user, meaning that they can access the global applications. If not, the user can only access the applications they are assigned to viaapplicationIds.- Returns:
- true if the user is a global user which can access global applications, false if the user can only access applications they are assigned to
-
isActive
public boolean isActive()A flag indicating whether the admin user account is enabled. If false, they will not be able to log in.This flag should be used if the admin user needs to be enabled/disabled for administrative reasons.
- Returns:
- true if the admin user account is enabled, false otherwise
-
isLocked
public boolean isLocked()A flag indicating whether the admin user account is locked due to too many failed login attempts.- Returns:
- true if the admin user account is locked, false otherwise
-
isExpired
public boolean isExpired()A flag indicating whether the admin user account is expired. If false, they will not be able to log in.This flag can be used to declare an account as expired and unusable, but currently there is no logic for that. It will always be
false.- Returns:
- true if the admin user account is expired, false otherwise
-
isChangePasswordRequired
public boolean isChangePasswordRequired()A flag indicating whether the admin user account requires a password reset. If true, they will not be able to log in until they reset their password.- Returns:
- true if the admin user's password is expired and requires a reset, false otherwise
-
getApplicationIds
The ids of applications this user is a member of. -
getTenantId
The id of the tenant this user is associated with. -
isTenantAccess
public boolean isTenantAccess()Indicates whether this user has access at the tenant level or not.- Returns:
- Does this user have tenant level access?
-
isApplicationAccess
public boolean isApplicationAccess()Indicates whether this user has access at the application level or not.- Returns:
- Does this user have application level access?
-
setId
The unique identifier for this user. -
setName
The name of this user. -
setUsername
The username of this user, used to log into the application. May be the same asemail, but that is not necessary. -
setEmail
The email address of the user. -
setPhone
The phone number of the user. -
setDefaultCommunicationPreference
The default communication preference of the user. -
setGlobal
public void setGlobal(boolean global) If true, this user is a global user, meaning that they can access the global applications. If not, the user can only access the applications they are assigned to viaapplicationIds.- Parameters:
global- true if the user is a global user which can access global applications, false if the user can only access applications they are assigned to
-
setActive
public void setActive(boolean active) A flag indicating whether the admin user account is enabled. If false, they will not be able to log in.This flag should be used if the admin user needs to be enabled/disabled for administrative reasons.
- Parameters:
active- true if the admin user account is enabled, false otherwise
-
setLocked
public void setLocked(boolean locked) A flag indicating whether the admin user account is locked due to too many failed login attempts.- Parameters:
locked- true if the admin user account is locked, false otherwise
-
setExpired
public void setExpired(boolean expired) A flag indicating whether the admin user account is expired. If false, they will not be able to log in.This flag can be used to declare an account as expired and unusable, but currently there is no logic for that. It will always be
false.- Parameters:
expired- true if the admin user account is expired, false otherwise
-
setChangePasswordRequired
public void setChangePasswordRequired(boolean changePasswordRequired) A flag indicating whether the admin user account requires a password reset. If true, they will not be able to log in until they reset their password.- Parameters:
changePasswordRequired- true if the admin user's password is expired and requires a reset, false otherwise
-
setApplicationIds
The ids of applications this user is a member of. -
setTenantId
The id of the tenant this user is associated with. -
setTenantAccess
public void setTenantAccess(boolean tenantAccess) Indicates whether this user has access at the tenant level or not.- Parameters:
tenantAccess- Does this user have tenant level access?
-
setApplicationAccess
public void setApplicationAccess(boolean applicationAccess) Indicates whether this user has access at the application level or not.- Parameters:
applicationAccess- Does this user have application level access?
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-