public interface PermissionEvaluator<S,O>
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAllowed(O object,
String action)
Checks if the current subject (according to
SubjectResolver)
is allowed to perform the specified action to the given object. |
boolean |
isAllowed(S subject,
O object,
String action)
Checks if the given subject is allowed to perform the specified action to the given object
|
boolean isAllowed(O object, String action) throws PermissionException
SubjectResolver)
is allowed to perform the specified action to the given object.object - the object or ID of the object whose permissions should be checked. If null,
the global permission should be checkedaction - the action the subject wants to perform (not null)PermissionExceptionboolean isAllowed(S subject, O object, String action) throws PermissionException
subject - the subject (not null)object - the object or ID of the object whose permissions should be checked. If null,
the global permission should be checkedaction - the action the subject wants to perform (not null)PermissionExceptionCopyright © 2018 CrafterCMS. All rights reserved.