Class AdminUserImpl
java.lang.Object
org.broadleafcommerce.openadmin.server.security.domain.AdminUserImpl
- All Implemented Interfaces:
Serializable
,AdminMainEntity
,AdminSecurityContext
,AdminUser
,AdminUserAdminPresentation
@Entity
public class AdminUserImpl
extends Object
implements AdminUser, AdminMainEntity, AdminUserAdminPresentation
- Author:
- jfischer
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.broadleafcommerce.openadmin.server.security.domain.AdminUserAdminPresentation
AdminUserAdminPresentation.FieldOrder, AdminUserAdminPresentation.GroupName, AdminUserAdminPresentation.GroupOrder, AdminUserAdminPresentation.TabName, AdminUserAdminPresentation.TabOrder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Boolean
protected Map<String,
AdminUserAttribute> protected Set<AdminPermission>
All roles that this user hasprotected String
protected static final String
protected String
protected String
protected SandBox
protected String
protected String
protected String
Fields inherited from interface org.broadleafcommerce.common.admin.domain.AdminMainEntity
MAIN_ENTITY_NAME_PROPERTY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the users active status.getEmail()
Returns a map representing just the key-value pairs inside theAdminUser.getAdditionalFields()
map.getId()
getLogin()
getName()
The current sandbox associated with this user.Returns the users phone number.void
setActiveStatusFlag
(Boolean activeStatusFlag) Sets the users active status.void
setAdditionalFields
(Map<String, AdminUserAttribute> additionalFields) void
setAllPermissions
(Set<AdminPermission> allPermissions) void
setAllRoles
(Set<AdminRole> allRoles) void
setContextKey
(String contextKey) void
setContextType
(ContextType contextType) void
void
void
setLastUsedSandBoxId
(Long sandBoxId) Sets the last used sandbox for this admin uservoid
void
void
setOverrideSandBox
(SandBox overrideSandBox) Overrides the user's sandbox.void
setPassword
(String password) void
setPhoneNumber
(String phoneNumber) Stores the user's phone number.void
setUnencodedPassword
(String unencodedPassword)
-
Field Details
-
LAST_USED_SANDBOX
- See Also:
-
name
-
login
-
password
-
email
-
phoneNumber
-
activeStatusFlag
-
allRoles
All roles that this user has -
allPermissions
-
unencodedPassword
-
overrideSandBox
-
additionalFields
-
-
Constructor Details
-
AdminUserImpl
public AdminUserImpl()
-
-
Method Details
-
getUnencodedPassword
- Specified by:
getUnencodedPassword
in interfaceAdminUser
-
setUnencodedPassword
- Specified by:
setUnencodedPassword
in interfaceAdminUser
-
getId
-
setId
-
getName
-
setName
-
getLogin
-
setLogin
-
getPassword
- Specified by:
getPassword
in interfaceAdminUser
-
setPassword
- Specified by:
setPassword
in interfaceAdminUser
-
getEmail
-
setEmail
-
getPhoneNumber
Description copied from interface:AdminUser
Returns the users phone number.- Specified by:
getPhoneNumber
in interfaceAdminUser
- Returns:
-
setPhoneNumber
Description copied from interface:AdminUser
Stores the user's phone number.- Specified by:
setPhoneNumber
in interfaceAdminUser
-
getActiveStatusFlag
Description copied from interface:AdminUser
Returns the users active status. A user whose active status is set to false will not be able to login.- Specified by:
getActiveStatusFlag
in interfaceAdminUser
- Returns:
-
setActiveStatusFlag
Description copied from interface:AdminUser
Sets the users active status. A user whose active status is set to false will not be able to login.- Specified by:
setActiveStatusFlag
in interfaceAdminUser
-
getAllRoles
- Specified by:
getAllRoles
in interfaceAdminSecurityContext
- Specified by:
getAllRoles
in interfaceAdminUser
-
setAllRoles
- Specified by:
setAllRoles
in interfaceAdminSecurityContext
- Specified by:
setAllRoles
in interfaceAdminUser
-
getOverrideSandBox
Description copied from interface:AdminUser
The current sandbox associated with this user. This is primarily intended to be used by the BLC-CMS workflow processes.If null, the user is using their own SandBox.
- Specified by:
getOverrideSandBox
in interfaceAdminUser
- Returns:
-
setOverrideSandBox
Description copied from interface:AdminUser
Overrides the user's sandbox. This could be used to setup shared sandboxes. Setting to null will mean that the user is setup to use the sandbox associated with their user.- Specified by:
setOverrideSandBox
in interfaceAdminUser
-
getAllPermissions
- Specified by:
getAllPermissions
in interfaceAdminSecurityContext
- Specified by:
getAllPermissions
in interfaceAdminUser
-
setAllPermissions
- Specified by:
setAllPermissions
in interfaceAdminSecurityContext
- Specified by:
setAllPermissions
in interfaceAdminUser
-
getContextType
- Specified by:
getContextType
in interfaceAdminSecurityContext
-
setContextType
- Specified by:
setContextType
in interfaceAdminSecurityContext
-
getContextKey
- Specified by:
getContextKey
in interfaceAdminSecurityContext
-
setContextKey
- Specified by:
setContextKey
in interfaceAdminSecurityContext
-
getFlatAdditionalFields
Description copied from interface:AdminUser
Returns a map representing just the key-value pairs inside theAdminUser.getAdditionalFields()
map.- Specified by:
getFlatAdditionalFields
in interfaceAdminUser
- Returns:
- the collapsed map
-
getAdditionalFields
- Specified by:
getAdditionalFields
in interfaceAdminUser
-
setAdditionalFields
- Specified by:
setAdditionalFields
in interfaceAdminUser
-
getLastUsedSandBoxId
- Specified by:
getLastUsedSandBoxId
in interfaceAdminUser
- Returns:
- the id of the last sandbox this admin user used
-
setLastUsedSandBoxId
Description copied from interface:AdminUser
Sets the last used sandbox for this admin user- Specified by:
setLastUsedSandBoxId
in interfaceAdminUser
-
getMainEntityName
- Specified by:
getMainEntityName
in interfaceAdminMainEntity
- Returns:
- the display name of this entity for the admin screen
-