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, wait
getID
public String getName()
getName
in interface SimpleIdentity
public String getFullName()
getFullName
in interface SimpleIdentity
public List getAttributeNames()
getAttributeNames
in interface SimpleIdentity
public String getAttribute(String name)
getAttribute
in interface SimpleIdentity
public boolean isAuthorized(String actionName)
SimpleIdentity
isAuthorized
in interface SimpleIdentity
public boolean isAuthorized(String actionName, Object resource, String resourceName)
SimpleIdentity
isAuthorized
in interface SimpleIdentity
public boolean canRead(Object resource, String resourceName)
SimpleIdentity
canRead
in interface SimpleIdentity
public boolean canWrite(Object resource, String resourceName)
SimpleIdentity
canWrite
in interface SimpleIdentity