public interface SimpleIdentity
Modifier and Type | Field and Description |
---|---|
static String |
READ_AUTHORIZATION |
static String |
WRITE_AUTHORIZATION |
Modifier and Type | Method and Description |
---|---|
boolean |
canRead(Object resource,
String resourceName)
Checks if the identity has read access on the indicated resource.
|
boolean |
canWrite(Object resource,
String resourceName)
Checks if the identity has read access on the indicated resource.
|
String |
getAttribute(String name) |
List |
getAttributeNames() |
String |
getFullName() |
String |
getID()
Return the identifier of this user
|
String |
getName() |
boolean |
isAuthorized(String actionName)
Checks is the identity is authorized to perform the action.
|
boolean |
isAuthorized(String actionName,
Object resource,
String resourceName)
Checks is the identity is authorized to perform the action on the
indicated resource.
|
static final String READ_AUTHORIZATION
static final String WRITE_AUTHORIZATION
String getID()
String getName()
String getFullName()
List getAttributeNames()
boolean isAuthorized(String actionName)
actionName
- boolean isAuthorized(String actionName, Object resource, String resourceName)
actionName
- resource
- resourceName
- boolean canRead(Object resource, String resourceName)
resource
- resourceName
- boolean canWrite(Object resource, String resourceName)
resource
- resourceName
-