Class DefaultPrivilegeService.PrivilegeHydrationResult
java.lang.Object
com.broadleafcommerce.auth.security.service.DefaultPrivilegeService.PrivilegeHydrationResult
- Enclosing class:
- DefaultPrivilegeService
An intermediary data structure used internally by
PrivilegeService
to hold all the
restrictions, flat permissions, restricted roles, and restricted permissions of a user entity
and permissions from a server entity
to prevent
querying the data multiple times.-
Constructor Summary
ConstructorDescriptionPrivilegeHydrationResult
(Set<UserPermissionRef> flatPermissions, Set<Restriction> restrictions, Set<RestrictedRole> restrictedRoles, Map<String, Collection<UserRole>> restrictedRoleWithAncestorsByRestrictedRoleId, Set<RestrictedPermission> restrictedPermissions) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
int
hashCode()
void
setFlatPermissions
(Set<UserPermissionRef> flatPermissions) void
setRestrictedPermissions
(Set<RestrictedPermission> restrictedPermissions) void
setRestrictedRoles
(Set<RestrictedRole> restrictedRoles) void
setRestrictedRoleWithAncestorsByRestrictedRoleId
(Map<String, Collection<UserRole>> restrictedRoleWithAncestorsByRestrictedRoleId) void
setRestrictions
(Set<Restriction> restrictions) toString()
-
Constructor Details
-
PrivilegeHydrationResult
public PrivilegeHydrationResult(Set<UserPermissionRef> flatPermissions, Set<Restriction> restrictions, Set<RestrictedRole> restrictedRoles, Map<String, Collection<UserRole>> restrictedRoleWithAncestorsByRestrictedRoleId, Set<RestrictedPermission> restrictedPermissions)
-
-
Method Details
-
getFlatPermissions
-
getRestrictions
-
getRestrictedRoles
-
getRestrictedRoleWithAncestorsByRestrictedRoleId
-
getRestrictedPermissions
-
setFlatPermissions
-
setRestrictions
-
setRestrictedRoles
-
setRestrictedRoleWithAncestorsByRestrictedRoleId
public void setRestrictedRoleWithAncestorsByRestrictedRoleId(Map<String, Collection<UserRole>> restrictedRoleWithAncestorsByRestrictedRoleId) -
setRestrictedPermissions
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-