|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.metamatrix.platform.security.api.DataAccessResource
public class DataAccessResource
Defines a resource associated with a
BasicAuthorizationPermission.
| Field Summary | |
|---|---|
static java.lang.String |
RECURSIVE
|
static java.lang.String |
SEPARATOR_WITH_RECURSIVE
|
| Constructor Summary | |
|---|---|
DataAccessResource(java.lang.String name)
ctor |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object o)
Compares this DataAccessResource to another Object. |
boolean |
equals(java.lang.Object obj)
Overrides method defined in Object. |
java.lang.String |
getCanonicalName()
Get the canonical name for this resource - used internally for comparing. |
java.lang.String |
getID()
Get the identifier of this resource. |
java.lang.String |
getName()
Get the resource name. |
java.lang.String |
getUUID()
Get the UUID of this resource. |
int |
hashCode()
Overrides method defined in Object. |
boolean |
implies(AuthorizationResource thatResource)
Does this resource "imply" another? |
boolean |
isCannonicallyEquivalent(AuthorizationResource resource)
Are these resources equal exception for recursion? |
boolean |
isRecursive()
Determine if the Actions applies to this resource should be applied recursively to sub resources. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String RECURSIVE
public static final java.lang.String SEPARATOR_WITH_RECURSIVE
| Constructor Detail |
|---|
public DataAccessResource(java.lang.String name)
name - The resource name| Method Detail |
|---|
public int hashCode()
Object.
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
Object.
Note: this method is consistent with compareTo().
equals in class java.lang.Objectobj - The Object to compare.
true if two DataAccessResource instances are semantically equal.public boolean isCannonicallyEquivalent(AuthorizationResource resource)
isCannonicallyEquivalent in interface AuthorizationResourceresource - The resource to compare with this one disregarding recursion.
true if these two resources differ only be recursion.public java.lang.String getName()
getName in interface AuthorizationResourcepublic java.lang.String getID()
null.
This is the identifier used to store and retrieve this resource from
the Authorization store.
getID in interface AuthorizationResourcepublic java.lang.String getUUID()
null.
This is a payload of UUID for MetaBase authorization code.
getUUID in interface AuthorizationResourcenull.public java.lang.String getCanonicalName()
getCanonicalName in interface AuthorizationResourcepublic boolean isRecursive()
isRecursive in interface AuthorizationResource
public int compareTo(java.lang.Object o)
throws java.lang.ClassCastException
equals().
compareTo in interface java.lang.Comparableo - the object that this instance is to be compared to.
java.lang.ClassCastException - if the specified object's type prevents it
from being compared to this DataAccessResource.public boolean implies(AuthorizationResource thatResource)
implies in interface AuthorizationResourcethatResource - The other resourcepublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||