| Package | Description |
|---|---|
| org.craftercms.commons.security.exception | |
| org.craftercms.commons.security.permissions | |
| org.craftercms.commons.security.permissions.impl |
| Modifier and Type | Class and Description |
|---|---|
class |
ActionDeniedException
Thrown when the execution of an action on an object has been denied to a subject.
|
class |
SubjectNotFoundException
Thrown to indicate that the current subject couldn't be found.
|
| Modifier and Type | Method and Description |
|---|---|
Permission |
PermissionResolver.getGlobalPermission(S subject)
Returns the global permission (that applies to any or all objects) associated to the given subject.
|
Permission |
PermissionResolver.getPermission(S subject,
O object)
Returns the permission associated to the given subject and object.
|
boolean |
PermissionEvaluator.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 |
PermissionEvaluator.isAllowed(S subject,
O object,
String action)
Checks if the given subject is allowed to perform the specified action to the given object
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
PermissionEvaluatorImpl.isAllowed(O object,
String action) |
boolean |
PermissionEvaluatorImpl.isAllowed(S subject,
O object,
String action) |
Copyright © 2018 CrafterCMS. All rights reserved.