public interface PermissionResolver<S,O>
| Modifier and Type | Method and Description |
|---|---|
Permission |
getGlobalPermission(S subject)
Returns the global permission (that applies to any or all objects) associated to the given subject.
|
Permission |
getPermission(S subject,
O object)
Returns the permission associated to the given subject and object.
|
Permission getGlobalPermission(S subject) throws PermissionException
subject - the subjectPermissionExceptionPermission getPermission(S subject, O object) throws PermissionException
subject - the subject (not null)object - the secured object or ID of the secured object (not null).PermissionExceptionCopyright © 2018 CrafterCMS. All rights reserved.