public interface Rule
Modifier and Type | Method and Description |
---|---|
boolean |
accept(java.lang.String actionName) |
java.lang.String |
getDescription() |
java.lang.String |
getName() |
boolean |
isAuthorized(SimpleIdentity identity,
java.lang.String actionName,
java.lang.Object resource,
java.lang.String resourceName)
Checks is the identity is authorized to perform the action on the
indicated resource.
|
java.lang.String getName()
java.lang.String getDescription()
boolean isAuthorized(SimpleIdentity identity, java.lang.String actionName, java.lang.Object resource, java.lang.String resourceName)
identity
- actionName
- resource
- can be nullresourceName
- can be nullboolean accept(java.lang.String actionName)