Package ch.tocco.nice2.security.impl
Class MixedListGuard
java.lang.Object
ch.tocco.nice2.security.api.AbstractListGuard
ch.tocco.nice2.security.impl.MixedListGuard
- All Implemented Interfaces:
ListGuard
-
Constructor Summary
ConstructorDescriptionMixedListGuard
(Principal principal, SecurityContext securityContext, List<?> secured, com.google.common.collect.ArrayListMultimap<ListGuard, Integer> actualGuards) -
Method Summary
Modifier and TypeMethodDescriptionevaluatePermissions
(Permission permission) Evaluates a permission.List
<?> toGuard()
Methods inherited from class ch.tocco.nice2.security.api.AbstractListGuard
checkPermission
-
Constructor Details
-
MixedListGuard
public MixedListGuard(Principal principal, SecurityContext securityContext, List<?> secured, com.google.common.collect.ArrayListMultimap<ListGuard, Integer> actualGuards)
-
-
Method Details
-
getPrincipal
-
getSecurityContext
-
getSecured
- Returns:
- The objects this guard is protecting.
-
evaluatePermissions
Description copied from interface:ListGuard
Evaluates a permission. This method returns anGuard.Decision
providing some more information about *why* a permission is granted or denied.- Parameters:
permission
- The permission to evaluate.- Returns:
- An
Guard.Decision
.
-
toGuard
Description copied from interface:ListGuard
-