Serialized Form
-
Package com.broadleafcommerce.adminuser.resource.domain
-
Class com.broadleafcommerce.adminuser.resource.domain.AdminPermission
class AdminPermission extends Object implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
contextState
MutabilityContextState contextState
Deprecated.Used to expose this entity's mutability in a request context.For example, can be used to hint to the admin application to show this entity as read-only.
- See Also:
-
id
String id
Deprecated.The unique identifier for this permission. -
name
String name
Deprecated.The name for this permission.This value should not be relied on as a unique identifier, but we do validate against duplicate names within the permission's context.
- See Also:
-
tenantId
String tenantId
Deprecated.The id of the tenant this permission is associated with.This is used to perform manual tenant discrimination - we do this because we require different behavior than what a
Trackable
implementation would provide.
-
-
Class com.broadleafcommerce.adminuser.resource.domain.AdminPermissionRef
class AdminPermissionRef extends Object implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
attributes
Map<String,
Object> attributes Contains any additional properties of a permission that do not fit in the above fields. -
id
String id
The ID of this permission as it exists in the system where roles are stored (default storage is Auth) -
name
String name
The name of this permission. Must be hydrated. -
tenantId
String tenantId
The tenant ID of this permission. TODO This currently appears to have no effect. Other than direct DB inserts, there is no valid way to set this value.
-
-
Class com.broadleafcommerce.adminuser.resource.domain.AdminRestrictedPermission
class AdminRestrictedPermission extends AdminRestrictedPrivilege implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
permission
AdminPermissionRef permission
Represents the permission that is being restricted.
-
-
Class com.broadleafcommerce.adminuser.resource.domain.AdminRestrictedPrivilege
class AdminRestrictedPrivilege extends Object implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
restriction
AdminRestriction restriction
Represents the restriction on a restricted entity
-
-
Class com.broadleafcommerce.adminuser.resource.domain.AdminRestrictedRole
class AdminRestrictedRole extends AdminRestrictedPrivilege implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
role
AdminRoleRef role
Represents the Role that is being restricted.
-
-
Class com.broadleafcommerce.adminuser.resource.domain.AdminRestriction
class AdminRestriction extends Object implements Serializable- serialVersionUID:
- 1L
-
Class com.broadleafcommerce.adminuser.resource.domain.AdminRole
class AdminRole extends Object implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
contextState
MutabilityContextState contextState
Deprecated.Used to expose this entity's mutability in a request context.For example, can be used to hint to the admin application to show this entity as read-only.
- See Also:
-
id
String id
Deprecated.The unique identifier for this role. -
name
String name
Deprecated.The name for this role. This has no purpose other than labeling.This value should not be relied on as a unique identifier, but we do validate against duplicate names within the role's context.
- See Also:
-
parentRoleId
String parentRoleId
Deprecated.The id of the parent of this role (if any).This role will effectively inherit all of the
AdminRole.permissions
of its parent and any ancestors further up in the hierarchy.Global roles can only have global parents, while tenant roles can have parents from global or the same tenant.
Furthermore, there is validation in place to prevent cycles from being created in a role's ancestry (role cannot become a parent of itself).
-
permissions
Set<AdminPermissionRef> permissions
Deprecated.The permissions directly assigned to this role. This is in addition to any permissions inherited from this role'sancestors
.Global roles can only have global permissions, while tenant roles can have permissions from global or the same tenant.
- See Also:
-
tenantId
String tenantId
Deprecated.The id of the tenant this role is assigned to.This is used to perform manual tenant discrimination - we do this because we require different behavior than what a
Trackable
implementation would provide.
-
-
Class com.broadleafcommerce.adminuser.resource.domain.AdminRoleRef
class AdminRoleRef extends Object implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
attributes
Map<String,
Object> attributes Contains any additional properties of a role that do not fit in the above fields. -
id
String id
The ID of this role as it exists in the system where roles are stored (default storage is Auth) -
name
String name
The name of this role. Must be hydrated. -
parentRoleId
String parentRoleId
The id of the parent of this role (if any).This role will effectively inherit all of the
AdminRoleRef.permissions
of its parent and any ancestors further up in the hierarchy.Global roles can only have global parents, while tenant roles can have parents from global or the same tenant.
Furthermore, there is validation in place to prevent cycles from being created in a role's ancestry (role cannot become a parent of itself).
-
permissions
Set<AdminPermissionRef> permissions
-
tenantId
String tenantId
The tenant ID of this role. TODO This currently appears to have no effect. Other than direct DB inserts, there is no valid way to set this value. -
thirdPartyAssigned
boolean thirdPartyAssigned
Indicate if this role was assigned by a third party system
-
-
Class com.broadleafcommerce.adminuser.resource.domain.AdminUser
class AdminUser extends Object implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
active
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.
-
applicationAccess
boolean applicationAccess
Indicates whether this user has access at the application level or not. -
applicationIds
Set<String> applicationIds
The ids of applications this user is a member of. -
changePasswordRequired
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. -
contextState
MutabilityContextState contextState
Used to expose this entity's mutability in a request context.For example, can be used to hint to the admin application to show this entity as read-only.
- See Also:
-
defaultApplicationId
String defaultApplicationId
The ids of applications this user is a member of. -
defaultCommunicationPreference
String defaultCommunicationPreference
The default communication preference of the user. -
defaultTimeZone
String defaultTimeZone
The default time zone for this user. It will be used to format the dates in the Admin panel if specified. -
email
String email
The email address of the user. -
expired
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
. -
global
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 viaAdminUser.applicationIds
. -
grantAnyAuthorityAllowed
boolean grantAnyAuthorityAllowed
A flag indicating whether the admin user account can grant any authority. If true, this user can grant any roles or permissions to any users without needing to have those permissions itself. If false, it can only grant authorities that the user itself has, either permissions that aredirectly assigned
or inherited fromAdminUser.roles
within the specifiedAdminUser.restrictions
, or permissions within their own specified restrictions fromAdminUser.restrictedRoles
orAdminUser.restrictedPermissions
. -
id
String id
The unique identifier for this user. -
locked
boolean locked
A flag indicating whether the admin user account is locked due to too many failed login attempts. -
name
String name
The name of this user. -
permissions
Set<AdminPermissionRef> permissions
The permissions that this user is directly assigned (in addition to permissions granted throughAdminUser.roles
).These can only be permissions whose
AdminPermission.tenantId
is accessible from this user'sAdminUser.tenantId
. -
phone
String phone
The phone number of the user. -
restrictedPermissions
Set<AdminRestrictedPermission> restrictedPermissions
The permissions that this user is directly assigned that are restricted to only apply when accessing certain segments of data. -
restrictedRoles
Set<AdminRestrictedRole> restrictedRoles
The roles that this user is directly assigned that are restricted to only apply when accessing certain segments of data. -
restrictions
Set<AdminRestriction> restrictions
The data restrictions that control the data this user is permitted to access. -
roles
Set<AdminRoleRef> roles
The roles that this user is assigned. The user is granted all permissions that each of these roles are directly assigned or inherit from their ancestors.These can only be roles whose
AdminRole.tenantId
is accessible from this user'sAdminUser.tenantId
.- See Also:
-
tenantAccess
boolean tenantAccess
Indicates whether this user has access at the tenant level or not. -
tenantId
String tenantId
The id of the tenant this user is associated with. -
tenantUser
boolean tenantUser
Deprecated.Indicates whether this is a tenant level user or not. -
username
String username
The username of this user, used to log into the application. May be the same asAdminUser.email
, but that is not necessary.
-
-
Class com.broadleafcommerce.adminuser.resource.domain.MutabilityContextState
class MutabilityContextState extends Object implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
mutable
boolean mutable
Reports whether the owning entity is mutable from the request's context.
-
-
-
Package com.broadleafcommerce.adminuser.resource.web.endpoint.exception
-
Exception com.broadleafcommerce.adminuser.resource.web.endpoint.exception.InvalidApplicationContextException
class InvalidApplicationContextException extends RuntimeException implements Serializable -
Exception com.broadleafcommerce.adminuser.resource.web.endpoint.exception.InvalidApplicationIdException
class InvalidApplicationIdException extends RuntimeException implements Serializable
-
-
Package com.broadleafcommerce.adminuser.user.domain
-
Class com.broadleafcommerce.adminuser.user.domain.User
class User extends Object implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
applicationAccess
boolean applicationAccess
Indicate if this user has access to the application level -
applicationIds
Set<String> applicationIds
The applications this user is restricted to. -
attributes
Map<String,
Object> attributes Additional attributes of a user. All of a User's attributes that are available at the time of registration are available. -
changePasswordRequired
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. -
email
String email
The user's email address. -
expired
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
. -
externalId
String externalId
Intended to hold any unique identifier for this user as known by an external (non-BLC) system. For example, many implementations may integrate or import/export data from other systems that manage their own unique identifiers. -
firstName
String firstName
The first name of the user, if the fullName is not being used for the user.- See Also:
-
Customer#getName()
-
fullName
String fullName
The full name of the user.- See Also:
-
Customer#getName()
-
id
String id
-
lastName
String lastName
The last name of the user, if the fullName is not being used for the user.- See Also:
-
Customer#getName()
-
locked
boolean locked
Indicates the user has been locked due to too many failed login attempts. -
middleName
String middleName
The middle name of the user, if the fullName is not being used for the user.- See Also:
-
Customer#getName()
-
phone
String phone
The user's phone number -
roles
Set<AdminRoleRef> roles
The roles of the user. Not generally relevant, but is useful if user modification originates from the auth service. -
serviceId
String serviceId
If the auth service received this user from a BLC service (ex: the admin user service or the customer service), this field will be the ID value used by that service for this user.If this value is set, there should also be a value set for
User.type
.Only if both values are non-null, a combination of this field and
User.type
will be unique across all records in the authentication service. There is no uniqueness guarantee for records which have a null service ID or nullUser.type
.- See Also:
-
User.type
-
tenantAccess
boolean tenantAccess
Indicate if this user has access to the tenant level -
tenantId
String tenantId
The id of the tenant this user is associated with. -
type
String type
Represents the type of user this is. This value must be supplied ifUser.serviceId
is set.- See Also:
-
User.serviceId
UserType
-
username
String username
What this user uses to actually log in. Often the same asUser.email
.
-
-
-
Package com.broadleafcommerce.adminuser.user.messaging
-
Class com.broadleafcommerce.adminuser.user.messaging.ExternalAdminUserModificationEvent
class ExternalAdminUserModificationEvent extends Object implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
-
Package com.broadleafcommerce.adminuser.user.provider.jpa
-
Class com.broadleafcommerce.adminuser.user.provider.jpa.ULIDGenerator
class ULIDGenerator extends Object implements Serializable
-
-
Package com.broadleafcommerce.adminuser.user.provider.jpa.domain
-
Class com.broadleafcommerce.adminuser.user.provider.jpa.domain.JpaAdminPermission
class JpaAdminPermission extends Object implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
id
String id
Deprecated.- See Also:
-
AdminPermission.id
-
name
String name
Deprecated.- See Also:
-
AdminPermission.name
-
notificationStates
List<? super com.broadleafcommerce.data.tracking.jpa.filtering.domain.JpaNotificationState> notificationStates
Deprecated. -
tenantId
String tenantId
Deprecated.- See Also:
-
AdminPermission.tenantId
-
-
Class com.broadleafcommerce.adminuser.user.provider.jpa.domain.JpaAdminRole
class JpaAdminRole extends Object implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
id
String id
Deprecated.- See Also:
-
AdminRole.id
-
name
String name
Deprecated.- See Also:
-
AdminRole.name
-
notificationStates
List<? super com.broadleafcommerce.data.tracking.jpa.filtering.domain.JpaNotificationState> notificationStates
Deprecated. -
parentRoleId
String parentRoleId
Deprecated.A soft reference to the parent of this role.- See Also:
-
AdminRole.parentRoleId
-
permissions
Set<JpaAdminPermission> permissions
Deprecated.- See Also:
-
AdminRole.permissions
AdminPermission
-
tenantId
String tenantId
Deprecated.- See Also:
-
AdminRole.tenantId
-
-
Class com.broadleafcommerce.adminuser.user.provider.jpa.domain.JpaAdminUser
class JpaAdminUser extends Object implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
active
boolean active
-
applicationAccess
boolean applicationAccess
-
applicationIds
Set<String> applicationIds
-
changePasswordRequired
boolean changePasswordRequired
-
defaultApplicationId
String defaultApplicationId
-
defaultCommunicationPreference
String defaultCommunicationPreference
-
defaultTimeZone
String defaultTimeZone
-
email
String email
-
expired
boolean expired
-
global
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 viaJpaAdminUser.applicationIds
. -
grantAnyAuthorityAllowed
boolean grantAnyAuthorityAllowed
If true, this user can grant any authority, meaning that it can grant any roles or permissions to any users without needing to have those permissions itself. If false, it can only assign authorities that the user itself has, eitherdirectly assigned
or inherited from#roles
. -
id
String id
-
locked
boolean locked
-
name
String name
-
notificationStates
List<? super com.broadleafcommerce.data.tracking.jpa.filtering.domain.JpaNotificationState> notificationStates
-
permissionIds
Set<String> permissionIds
-
phone
String phone
-
restrictedPermissions
Set<JpaAdminUserRestrictedPermission> restrictedPermissions
- See Also:
-
AdminUser.restrictedPermissions
AdminRestrictedPermission
-
restrictedRoles
Set<JpaAdminUserRestrictedRole> restrictedRoles
- See Also:
-
AdminUser.restrictedRoles
AdminRestrictedRole
-
restrictions
Set<JpaAdminUserRestriction> restrictions
- See Also:
-
AdminUser.restrictions
AdminRestriction
-
roleIds
Set<String> roleIds
-
tenantAccess
boolean tenantAccess
-
tenantId
String tenantId
-
tenantUser
boolean tenantUser
Deprecated.in favor ofJpaAdminUser.tenantAccess
-
username
String username
-
-
Class com.broadleafcommerce.adminuser.user.provider.jpa.domain.JpaAdminUserRestrictedPermission
class JpaAdminUserRestrictedPermission extends Object implements Serializable- serialVersionUID:
- 1L
-
Class com.broadleafcommerce.adminuser.user.provider.jpa.domain.JpaAdminUserRestrictedRole
class JpaAdminUserRestrictedRole extends Object implements Serializable- serialVersionUID:
- 1L
-
Class com.broadleafcommerce.adminuser.user.provider.jpa.domain.JpaAdminUserRestriction
class JpaAdminUserRestriction extends Object implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
id
String id
-
restrictionTargets
Set<String> restrictionTargets
-
restrictionType
String restrictionType
-
user
JpaAdminUser user
-
-
-
Package com.broadleafcommerce.adminuser.user.service.exception
-
Exception com.broadleafcommerce.adminuser.user.service.exception.InvalidAdminRoleDeleteException
class InvalidAdminRoleDeleteException extends RuntimeException implements Serializable
-
AdminUser.tenantAccess