public abstract class AbstractSimpleIdentity extends java.lang.Object implements SimpleIdentity
Modifier and Type | Field and Description |
---|---|
protected SimpleIdentityManager |
manager |
READ_AUTHORIZATION, WRITE_AUTHORIZATION
Constructor and Description |
---|
AbstractSimpleIdentity(SimpleIdentityManager manager) |
Modifier and Type | Method and Description |
---|---|
boolean |
canRead(java.lang.Object resource,
java.lang.String resourceName)
Checks if the identity has read access on the indicated resource.
|
boolean |
canWrite(java.lang.Object resource,
java.lang.String resourceName)
Checks if the identity has read access on the indicated resource.
|
java.lang.String |
getAttribute(java.lang.String name) |
java.util.List |
getAttributeNames() |
java.lang.String |
getFullName() |
SimpleIdentityManager |
getManager() |
java.lang.String |
getName() |
java.util.List<java.lang.String> |
getRoles() |
protected java.util.List<Rule> |
getRules() |
boolean |
isAuthenticated() |
boolean |
isAuthorized(java.lang.String actionName)
Checks is the identity is authorized to perform the action.
|
boolean |
isAuthorized(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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getID
protected final SimpleIdentityManager manager
public AbstractSimpleIdentity(SimpleIdentityManager manager)
public SimpleIdentityManager getManager()
public boolean isAuthenticated()
isAuthenticated
in interface SimpleIdentity
public java.lang.String getName()
getName
in interface SimpleIdentity
public java.lang.String getFullName()
getFullName
in interface SimpleIdentity
public java.util.List getAttributeNames()
getAttributeNames
in interface SimpleIdentity
public java.lang.String getAttribute(java.lang.String name)
getAttribute
in interface SimpleIdentity
public boolean isAuthorized(java.lang.String actionName)
SimpleIdentity
isAuthorized
in interface SimpleIdentity
public boolean isAuthorized(java.lang.String actionName, java.lang.Object resource, java.lang.String resourceName)
SimpleIdentity
isAuthorized
in interface SimpleIdentity
protected java.util.List<Rule> getRules()
public boolean canRead(java.lang.Object resource, java.lang.String resourceName)
SimpleIdentity
canRead
in interface SimpleIdentity
public boolean canWrite(java.lang.Object resource, java.lang.String resourceName)
SimpleIdentity
canWrite
in interface SimpleIdentity
public java.util.List<java.lang.String> getRoles()
getRoles
in interface SimpleIdentity