|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.platform.security.api.AuthorizationPolicyID
public class AuthorizationPolicyID
Field Summary | |
---|---|
static char |
DELIMITER
|
static int |
DESCRIPTION_LEN
|
Constructor Summary | |
---|---|
AuthorizationPolicyID(java.lang.String name,
java.lang.String description)
ctor Meant to be used only by JDBCAuthorizationTransaction to
populate AuthorizationPolicyID s when retrieving
them from the authorization store. |
|
AuthorizationPolicyID(java.lang.String theDisplayName,
java.lang.String description,
AuthorizationRealm theRealm)
Construct a policy ID that is tied to an AuthorizationRealm . |
|
AuthorizationPolicyID(java.lang.String theDisplayName,
java.lang.String vdbName,
int vdbVersion)
Construct a policy ID that is tied to a VDB. |
|
AuthorizationPolicyID(java.lang.String theDisplayName,
java.lang.String vdbName,
java.lang.String vdbVersion)
Construct a policy ID that is tied to a VDB. |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
Compares this AuthorizationPolicyID to another Object. |
boolean |
equals(java.lang.Object obj)
Returns true if the specified object is semantically equal to this instance. |
static java.lang.String |
formName(java.lang.String displayName,
java.lang.String vdbName,
java.lang.String vdbVersion)
|
java.lang.String |
getDescription()
Obtain the description for this policy which may be null. |
java.lang.String |
getDisplayName()
Returns the Console display name for the policy. |
java.lang.String |
getName()
Returns the name for the policy. |
AuthorizationRealm |
getRealm()
Get the AuthorizationRealm this policy
belongs in. |
java.lang.String |
getVDBName()
Returns the Console's VDB name for the policy. |
int |
getVDBVersion()
Return the Console's VDB version for the policy. |
java.lang.String |
getVDBVersionString()
Return the Stringified Console's VDB version for the policy. |
int |
hashCode()
Overrides Object hashCode method. |
static java.lang.String |
parseRealm(AuthorizationRealm aRealm)
|
void |
setDescription(java.lang.String desc)
Define the set of description for this policy. |
java.lang.String |
toString()
Returns a string representing the current state of the object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final char DELIMITER
public static final int DESCRIPTION_LEN
Constructor Detail |
---|
public AuthorizationPolicyID(java.lang.String name, java.lang.String description)
JDBCAuthorizationTransaction
to
populate AuthorizationPolicyID
s when retrieving
them from the authorization store.
Construct a policy ID with the specified name and description.
name
- the identifier (name) for the policy composed ofdescription
- the policy description.public AuthorizationPolicyID(java.lang.String theDisplayName, java.lang.String description, AuthorizationRealm theRealm)
AuthorizationRealm
.
theDisplayName
- the identifier that the Console will display.description
- The policy description - may be null
.theRealm
- The AuthorizationRealm
this policy should
be tied to - may not be null
.public AuthorizationPolicyID(java.lang.String theDisplayName, java.lang.String vdbName, int vdbVersion)
theDisplayName
- the identifier that the Console will display.vdbName
- The name of the VDB this policy should be tied to.vdbVersion
- The version of the VDB this policy should be tied to.public AuthorizationPolicyID(java.lang.String theDisplayName, java.lang.String vdbName, java.lang.String vdbVersion)
theDisplayName
- the identifier that the Console will display.vdbName
- The name of the VDB this policy should be tied to.vdbVersion
- The version of the VDB this policy should be tied to.Method Detail |
---|
public AuthorizationRealm getRealm()
AuthorizationRealm
this policy
belongs in.
public java.lang.String getName()
public java.lang.String getDescription()
public java.lang.String getDisplayName()
getName()
.
public java.lang.String getVDBName()
null
.
null
if the policy that this ID represents
is not tied to a VDB.public int getVDBVersion()
-1
if the policy that this ID represents
is not tied to a VDB.public java.lang.String getVDBVersionString()
-1
if the policy that this ID represents
is not tied to a VDB.public void setDescription(java.lang.String desc)
desc
- the new description for this policy.public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
,
Object.equals(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
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 AuthorizationPolicyID.public static java.lang.String parseRealm(AuthorizationRealm aRealm)
public static java.lang.String formName(java.lang.String displayName, java.lang.String vdbName, java.lang.String vdbVersion)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |