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 Booleanprotected Map<String,AdminUserAttribute> protected Set<AdminPermission>All roles that this user hasprotected Stringprotected static final Stringprotected Stringprotected Stringprotected SandBoxprotected Stringprotected Stringprotected StringFields 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.voidsetActiveStatusFlag(Boolean activeStatusFlag) Sets the users active status.voidsetAdditionalFields(Map<String, AdminUserAttribute> additionalFields) voidsetAllPermissions(Set<AdminPermission> allPermissions) voidsetAllRoles(Set<AdminRole> allRoles) voidsetContextKey(String contextKey) voidsetContextType(ContextType contextType) voidvoidvoidsetLastUsedSandBoxId(Long sandBoxId) Sets the last used sandbox for this admin uservoidvoidvoidsetOverrideSandBox(SandBox overrideSandBox) Overrides the user's sandbox.voidsetPassword(String password) voidsetPhoneNumber(String phoneNumber) Stores the user's phone number.voidsetUnencodedPassword(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:
getUnencodedPasswordin interfaceAdminUser
-
setUnencodedPassword
- Specified by:
setUnencodedPasswordin interfaceAdminUser
-
getId
-
setId
-
getName
-
setName
-
getLogin
-
setLogin
-
getPassword
- Specified by:
getPasswordin interfaceAdminUser
-
setPassword
- Specified by:
setPasswordin interfaceAdminUser
-
getEmail
-
setEmail
-
getPhoneNumber
Description copied from interface:AdminUserReturns the users phone number.- Specified by:
getPhoneNumberin interfaceAdminUser- Returns:
-
setPhoneNumber
Description copied from interface:AdminUserStores the user's phone number.- Specified by:
setPhoneNumberin interfaceAdminUser
-
getActiveStatusFlag
Description copied from interface:AdminUserReturns the users active status. A user whose active status is set to false will not be able to login.- Specified by:
getActiveStatusFlagin interfaceAdminUser- Returns:
-
setActiveStatusFlag
Description copied from interface:AdminUserSets the users active status. A user whose active status is set to false will not be able to login.- Specified by:
setActiveStatusFlagin interfaceAdminUser
-
getAllRoles
- Specified by:
getAllRolesin interfaceAdminSecurityContext- Specified by:
getAllRolesin interfaceAdminUser
-
setAllRoles
- Specified by:
setAllRolesin interfaceAdminSecurityContext- Specified by:
setAllRolesin interfaceAdminUser
-
getOverrideSandBox
Description copied from interface:AdminUserThe 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:
getOverrideSandBoxin interfaceAdminUser- Returns:
-
setOverrideSandBox
Description copied from interface:AdminUserOverrides 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:
setOverrideSandBoxin interfaceAdminUser
-
getAllPermissions
- Specified by:
getAllPermissionsin interfaceAdminSecurityContext- Specified by:
getAllPermissionsin interfaceAdminUser
-
setAllPermissions
- Specified by:
setAllPermissionsin interfaceAdminSecurityContext- Specified by:
setAllPermissionsin interfaceAdminUser
-
getContextType
- Specified by:
getContextTypein interfaceAdminSecurityContext
-
setContextType
- Specified by:
setContextTypein interfaceAdminSecurityContext
-
getContextKey
- Specified by:
getContextKeyin interfaceAdminSecurityContext
-
setContextKey
- Specified by:
setContextKeyin interfaceAdminSecurityContext
-
getFlatAdditionalFields
Description copied from interface:AdminUserReturns a map representing just the key-value pairs inside theAdminUser.getAdditionalFields()map.- Specified by:
getFlatAdditionalFieldsin interfaceAdminUser- Returns:
- the collapsed map
-
getAdditionalFields
- Specified by:
getAdditionalFieldsin interfaceAdminUser
-
setAdditionalFields
- Specified by:
setAdditionalFieldsin interfaceAdminUser
-
getLastUsedSandBoxId
- Specified by:
getLastUsedSandBoxIdin interfaceAdminUser- Returns:
- the id of the last sandbox this admin user used
-
setLastUsedSandBoxId
Description copied from interface:AdminUserSets the last used sandbox for this admin user- Specified by:
setLastUsedSandBoxIdin interfaceAdminUser
-
getMainEntityName
- Specified by:
getMainEntityNamein interfaceAdminMainEntity- Returns:
- the display name of this entity for the admin screen
-