Uses of Class
com.broadleafcommerce.auth.resource.domain.UserPermissionRef
Package
Description
-
Uses of UserPermissionRef in com.broadleafcommerce.auth.resource.domain
Modifier and TypeMethodDescriptionRestrictedPermission.getPermission()
Represents the permission that is being restricted.UserPermission.toRef()
Modifier and TypeMethodDescriptionUser.getPermissions()
The permissions that this user is directly assigned (in addition to permissions granted throughUser.roles
).UserRole.getPermissions()
The permissions that this role has been directly assigned.Modifier and TypeMethodDescriptionvoid
RestrictedPermission.setPermission
(UserPermissionRef permission) Represents the permission that is being restricted.Modifier and TypeMethodDescriptionvoid
User.setPermissions
(Set<UserPermissionRef> permissions) The permissions that this user is directly assigned (in addition to permissions granted throughUser.roles
).void
UserRole.setPermissions
(Set<UserPermissionRef> permissions) The permissions that this role has been directly assigned. -
Uses of UserPermissionRef in com.broadleafcommerce.auth.security.service
Modifier and TypeMethodDescriptionprotected Set<UserPermissionRef>
DefaultPrivilegeService.getAllFlatPermissions
(@NonNull User user, @NonNull AuthorizationServer server, @NonNull Collection<UserRole> userAndServerRolesWithAncestors) Gets a set of all flat permissions fromUser.getPermissions()
,AuthorizationServer.getDefaultUserPermissions()
, and permissions from the given roles.protected Set<UserPermissionRef>
DefaultPrivilegeService.getAllFlatPermissions
(@NonNull Collection<UserRole> roles) Gets a set of allUserRole.getPermissions()
from the given rolesDefaultPrivilegeService.PrivilegeHydrationResult.getFlatPermissions()
protected Set<UserPermissionRef>
DefaultPrivilegeService.getPermissionsFromRestrictedPrivileges
(@NonNull DefaultPrivilegeService.PrivilegeHydrationResult privilegeHydrationResult) Gets all the permissions from restricted roles and their ancestors, and restricted permissions.Modifier and TypeMethodDescriptionDefaultPrivilegeService.getRestrictionTypeAndTargetsByPermissionName
(@NonNull Set<UserPermissionRef> flatPermissions, @NonNull Set<Restriction> restrictions) Maps eachUserPermissionRef
with all ofRestriction
.void
DefaultPrivilegeService.PrivilegeHydrationResult.setFlatPermissions
(Set<UserPermissionRef> flatPermissions) ModifierConstructorDescriptionPrivilegeHydrationResult
(Set<UserPermissionRef> flatPermissions, Set<Restriction> restrictions, Set<RestrictedRole> restrictedRoles, Map<String, Collection<UserRole>> restrictedRoleWithAncestorsByRestrictedRoleId, Set<RestrictedPermission> restrictedPermissions) -
Uses of UserPermissionRef in com.broadleafcommerce.auth.server.domain
Modifier and TypeMethodDescriptionAuthorizationServer.getDefaultUserPermissions()
The default permissions a user is assigned when authenticating against this server.Modifier and TypeMethodDescriptionvoid
AuthorizationServer.setDefaultUserPermissions
(Set<UserPermissionRef> defaultUserPermissions) The default permissions a user is assigned when authenticating against this server. -
Uses of UserPermissionRef in com.broadleafcommerce.auth.tenant.service
Modifier and TypeMethodDescriptionprotected Set<UserPermissionRef>
DefaultAuthServerCreationHandler.getDefaultPermissions
(DefaultAuthServerProperties.AuthServerProperties defaultAuthServerProperties) -
Uses of UserPermissionRef in com.broadleafcommerce.auth.user.listener
Modifier and TypeMethodDescriptionprotected UserPermissionRef
AdminUserPersistenceHandler.toAuthPermissionRef
(AdminPermissionRef adminPermissionRef) Deprecated.Since 1.7.0.protected UserPermissionRef
AdminUserPersistenceHandler.toAuthPermissionRef
(String id) Modifier and TypeMethodDescriptionprotected boolean
AdminUserPersistenceHandler.arePermissionsEqual
(Set<UserPermissionRef> newPermissions, Set<UserPermissionRef> existingPermissions)