|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.metamatrix.platform.security.api.AuthorizationPermission com.metamatrix.platform.security.api.BasicAuthorizationPermission
public class BasicAuthorizationPermission
A BasicAuthorizationPermission defines access permissions for Metadata resources (i.e., MetadataID instances).
This class extends the AuthorizationPermission abstract class and provides specialized
implies
, equals
, and compareTo
method implementations.
Field Summary | |
---|---|
static java.lang.String |
RECURSIVE
|
static java.lang.String |
SEPARATOR_WITH_RECURSIVE
|
Fields inherited from class com.metamatrix.platform.security.api.AuthorizationPermission |
---|
DEFAULT_ACTIONS, hashCode, PRIME, resource |
Method Summary | |
---|---|
protected java.lang.Object |
clone()
Make a deep copy of this object. |
int |
compareTo(java.lang.Object o)
Compares this AuthorizationPermission to another Object. |
boolean |
equals(java.lang.Object obj)
Returns true if the specified object is semantically equal to this instance. |
boolean |
implies(AuthorizationPermission request)
Determine whether this official AuthorizationPermission instance implies
the access requested by the request AuthorizationPermission instance. |
static boolean |
isRecursiveResource(java.lang.String resourceName)
Does this resource have the recursive attribute. |
static java.lang.String |
removeRecursion(java.lang.String resourceName)
Remove recursive attribute. |
Methods inherited from class com.metamatrix.platform.security.api.AuthorizationPermission |
---|
compare, getActions, getContentModifier, getFactoryClassName, getRealm, getRealmName, getResource, getResourceName, hasContentModifier, hashCode, resourceIsRecursive, toString |
Methods inherited from class java.lang.Object |
---|
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
Method Detail |
---|
protected java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class AuthorizationPermission
java.lang.CloneNotSupportedException
public boolean implies(AuthorizationPermission request)
AuthorizationPermission
instance implies
the access requested by the request
AuthorizationPermission
instance. This
official permission is stored by the Authorization subsystem and is owned by a given
Principal
. The request
permission has been created by a software component
on behalf of the given Principal
wishing access to a resource controlled by the component.
The requested permission is implied by the official permission if all of the following conditions are satisfied:
request
permission must be of the same type (evaluated using
instanceof
);AuthorizationRealm
of each permission instance must be equivalent;AuthorizationActions.implies(com.metamatrix.platform.security.api.AuthorizationActions)
;
implies
in class AuthorizationPermission
request
- The permission that is being requested or attempted, and which is in question
by the caller
true
if the official permission does imply access to the resource(s) specified
by the requestpublic boolean equals(java.lang.Object obj)
AuthorizationPermission
compareTo()
.
equals
in class AuthorizationPermission
obj
- the object that this instance is to be compared to.
public int compareTo(java.lang.Object o) throws java.lang.ClassCastException
AuthorizationPermission
equals()
.
compareTo
in interface java.lang.Comparable
compareTo
in class AuthorizationPermission
o
- 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 AuthorizationPermission.public static java.lang.String removeRecursion(java.lang.String resourceName)
resourceName
- The resource name from which to remove recursion.
public static boolean isRecursiveResource(java.lang.String resourceName)
resourceName
- The resource name to check for recursion.
true
if the resource is recursive.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |