|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.platform.security.api.GranteeEntitlementEntry
public final class GranteeEntitlementEntry
This object contains one entry for an entitlement entry in UserEntitlementInfo
.
It comprises the triplet of Grantee the Grantor that assigned him the
Allowed Actions and the Allowed Actions on the Resource of the
entitlement.
This is not a standalone object. These objects are returned as elements of
UserEntitlementInfo.iterator()
. Specifically, the Resource and VDB name and
version are constant over iteration and are contained in UserEntitlementInfo
.
Constructor Summary | |
---|---|
GranteeEntitlementEntry(MetaMatrixPrincipalName grantee,
GranteeEntitlementEntry clone)
ctor. Uses another GranteeEntitlementEntry as a pattern to clone only changing the Grantee. |
|
GranteeEntitlementEntry(MetaMatrixPrincipalName grantee,
java.lang.String grantor,
int allowedActions)
ctor. Used when creating in the Authorization JDBC layer. |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
Compares this GranteeEntitlementEntry to another Object. |
boolean |
equals(java.lang.Object obj)
Returns true if the specified object is semantically equal to this instance. |
java.lang.String[] |
getAllowedActions()
Get the Allowed Actions. |
java.lang.String |
getGrantee()
Get the Grantee. |
java.lang.String |
getGrantor()
Get the Grantor. |
int |
hashCode()
Overrides Object method of the same name |
boolean |
isUserGroup()
Does this Grantee represent a user group? If not, it's a user. |
java.lang.String |
toString()
String representation of object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GranteeEntitlementEntry(MetaMatrixPrincipalName grantee, java.lang.String grantor, int allowedActions)
grantee
- grantor
- alloweActions
- public GranteeEntitlementEntry(MetaMatrixPrincipalName grantee, GranteeEntitlementEntry clone)
grantee
- The new principal this object will represent.clone
- All other inforamtion comes from this clone.Method Detail |
---|
public java.lang.String getGrantee()
public boolean isUserGroup()
true
if the Grantee represents a user group,
false
if it's of type user.public java.lang.String getGrantor()
public java.lang.String[] getAllowedActions()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
compareTo()
.
equals
in class java.lang.Object
obj
- the object that this instance is to be compared to.
public int compareTo(java.lang.Object o) throws java.lang.ClassCastException
equals()
.
compareTo
in interface java.lang.Comparable
obj
- 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 GranteeEntitlementEntry.public 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 |