|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.platform.security.api.AuthorizationPermission
com.metamatrix.platform.security.util.RolePermission
public class RolePermission
A RolePermission 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 |
---|
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 the official AuthorizationPermission instance implies
the access requested by the request AuthorizationPermission instance. |
boolean |
resourceIsRecursive()
Roles are not recursive. |
Methods inherited from class com.metamatrix.platform.security.api.AuthorizationPermission |
---|
compare, getActions, getContentModifier, getFactoryClassName, getRealm, getRealmName, getResource, getResourceName, hasContentModifier, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
protected java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class AuthorizationPermission
java.lang.CloneNotSupportedException
public boolean resourceIsRecursive()
resourceIsRecursive
in class AuthorizationPermission
false
allways.public boolean implies(AuthorizationPermission request)
official
AuthorizationPermission instance implies
the access requested by the request
AuthorizationPermission instance.
The requested request is implied by the official request if all of the following conditions are satisfied:
String.equals()
method);
implies
in class AuthorizationPermission
request
- the request that is being requested or attempted, and which is in question
by the caller
public 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |