public abstract class AbstractSimpleIdentity extends Object implements SimpleIdentity
READ_AUTHORIZATION, WRITE_AUTHORIZATION| Constructor and Description |
|---|
AbstractSimpleIdentity() |
| 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 |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIDpublic String getName()
getName in interface SimpleIdentitypublic String getFullName()
getFullName in interface SimpleIdentitypublic List getAttributeNames()
getAttributeNames in interface SimpleIdentitypublic String getAttribute(String name)
getAttribute in interface SimpleIdentitypublic boolean isAuthorized(String actionName)
SimpleIdentityisAuthorized in interface SimpleIdentitypublic boolean isAuthorized(String actionName, Object resource, String resourceName)
SimpleIdentityisAuthorized in interface SimpleIdentitypublic boolean canRead(Object resource, String resourceName)
SimpleIdentitycanRead in interface SimpleIdentitypublic boolean canWrite(Object resource, String resourceName)
SimpleIdentitycanWrite in interface SimpleIdentity