Package ch.tocco.nice2.security.api
Interface ListGuard
- All Known Implementing Classes:
AbstractEntityDocsGuardFactory.AbstractEntityDocsGuard
,AbstractListGuard
,DefaultListGuard
,DelegatingEntityDocsListGuard
,MixedListGuard
public interface ListGuard
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkPermission
(Permission permission) evaluatePermissions
(Permission permission) Evaluates a permission.List
<?> toGuard()
-
Method Details
-
getPrincipal
Principal getPrincipal() -
getSecured
List<?> getSecured()- Returns:
- The objects this guard is protecting.
-
evaluatePermissions
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
.
-
checkPermission
- Throws:
UnauthorizedException
- when the permission is not granted to at least one object in this list guard
-
getSecurityContext
SecurityContext getSecurityContext() -
toGuard
Guard toGuard()
-