Class DefaultPrivilegeService.PrivilegeHydrationResult
- java.lang.Object
-
- com.broadleafcommerce.auth.security.service.DefaultPrivilegeService.PrivilegeHydrationResult
-
- Enclosing class:
- DefaultPrivilegeService
public static class DefaultPrivilegeService.PrivilegeHydrationResult extends Object
An intermediary data structure used internally byPrivilegeService
to hold all the restrictions, flat permissions, restricted roles, and restricted permissions of auser entity
and permissions from aserver entity
to prevent querying the data multiple times.
-
-
Constructor Summary
Constructors Constructor Description PrivilegeHydrationResult(Set<UserPermissionRef> flatPermissions, Set<Restriction> restrictions, Set<RestrictedRole> restrictedRoles, Map<String,Collection<UserRole>> restrictedRoleWithAncestorsByRestrictedRoleId, Set<RestrictedPermission> restrictedPermissions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
Set<UserPermissionRef>
getFlatPermissions()
Set<RestrictedPermission>
getRestrictedPermissions()
Set<RestrictedRole>
getRestrictedRoles()
Map<String,Collection<UserRole>>
getRestrictedRoleWithAncestorsByRestrictedRoleId()
Set<Restriction>
getRestrictions()
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)
String
toString()
-
-
-
Constructor Detail
-
PrivilegeHydrationResult
public PrivilegeHydrationResult(Set<UserPermissionRef> flatPermissions, Set<Restriction> restrictions, Set<RestrictedRole> restrictedRoles, Map<String,Collection<UserRole>> restrictedRoleWithAncestorsByRestrictedRoleId, Set<RestrictedPermission> restrictedPermissions)
-
-
Method Detail
-
getFlatPermissions
public Set<UserPermissionRef> getFlatPermissions()
-
getRestrictions
public Set<Restriction> getRestrictions()
-
getRestrictedRoles
public Set<RestrictedRole> getRestrictedRoles()
-
getRestrictedRoleWithAncestorsByRestrictedRoleId
public Map<String,Collection<UserRole>> getRestrictedRoleWithAncestorsByRestrictedRoleId()
-
getRestrictedPermissions
public Set<RestrictedPermission> getRestrictedPermissions()
-
setFlatPermissions
public void setFlatPermissions(Set<UserPermissionRef> flatPermissions)
-
setRestrictions
public void setRestrictions(Set<Restriction> restrictions)
-
setRestrictedRoles
public void setRestrictedRoles(Set<RestrictedRole> restrictedRoles)
-
setRestrictedRoleWithAncestorsByRestrictedRoleId
public void setRestrictedRoleWithAncestorsByRestrictedRoleId(Map<String,Collection<UserRole>> restrictedRoleWithAncestorsByRestrictedRoleId)
-
setRestrictedPermissions
public void setRestrictedPermissions(Set<RestrictedPermission> restrictedPermissions)
-
canEqual
protected boolean canEqual(Object other)
-
-