|
SiteMinder Java SDK r12.51 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netegrity.sdk.policyapi.SmObjId
public final class SmObjId
Represents the object identifier of Policy API objects.
| Field Summary | |
|---|---|
static SmObjId |
NULL_OID
Constant representing a NULL object identifier. |
static SmObjId |
SmNullOid
Deprecated. Use SmObjId.NULL_OID instead. |
| Constructor Summary | |
|---|---|
SmObjId()
Deprecated. Instead of creating a new NULL OID, use the NULL_OID member. |
|
SmObjId(java.lang.Object oid)
Deprecated. Use the valueOf method instead. If the
setOid method is not used, it is safe to reuse
instances of SmObjId rather then creating new
instances. |
|
SmObjId(SmObject obj)
Deprecated. If the setOid method is not used, it is safe
to reuse the result of the SmObject.getOid
method. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getObjectClass()
Returns the class name of the current object. |
static java.lang.String |
getObjectClass(java.lang.String strOid)
Returns the class name of the current object. |
java.lang.String |
getOidString()
Deprecated. Use toString() instead. |
int |
hashCode()
|
boolean |
isNull()
Checks to see if this SmObjId instance represents a NULL
OID. |
boolean |
isValid()
Checks to see if this SmObjId instance represents a valid
SiteMinder OID. |
void |
setOid(java.lang.String oid)
Deprecated. Create a new object using valueOf(java.lang.String) rather then
trying to modify an existing one. |
java.lang.String |
toString()
Returns the string representation of the current object. |
static SmObjId |
valueOf(java.lang.String str)
Gets the SmObjId representation of the specified string. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final SmObjId NULL_OID
public static final SmObjId SmNullOid
SmObjId.NULL_OID instead.
| Constructor Detail |
|---|
public SmObjId()
NULL_OID member.
public SmObjId(java.lang.Object oid)
valueOf method instead. If the
setOid method is not used, it is safe to reuse
instances of SmObjId rather then creating new
instances.
oid - The object identifier.public SmObjId(SmObject obj)
setOid method is not used, it is safe
to reuse the result of the SmObject.getOid
method.
obj - The Policy API object identifier.| Method Detail |
|---|
public static java.lang.String getObjectClass(java.lang.String strOid)
null
if the class is ill-defined or not exposed in the SDK.
strOid - The OID of the current object.
public static SmObjId valueOf(java.lang.String str)
SmObjId representation of the specified string.
str - the string representation of a SiteMinder OID
SmObjId instance representative of the supplied
stringpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String getObjectClass()
null
if the class is ill-defined or not exposed in the SDK.
public java.lang.String getOidString()
toString() instead.
Use this method for passing in an object's OID to methods that require
the OID in string form. For example, the following code uses
getOid to retrieve the OID for a
domain object, then converts the OID to a string that is
passed to the method addToGroup:
result = policyApi.addToGroup(SmGroup.Rule_Group_Prop, RULE2, RULE_GROUP,
domain.getOid().getOidString());
public int hashCode()
hashCode in class java.lang.Objectpublic boolean isNull()
SmObjId instance represents a NULL
OID. For an OID to be considered NULL, it's object type (the first two
hexadecimal numbers of the OID string) must be equal to zero.
If this method returns true, then the equals
method will return true when compared to the
NULL_OID member. This does not mean that
getOidString.equals(NULL_OID.getOidString()) will return
true, since both the OID string "00-" and
"00-00000000-0000-0000-0000-000000000000" are NULL OIDs.
true if this SmObjId represents a
NULL OID; false otherwise.public boolean isValid()
SmObjId instance represents a valid
SiteMinder OID. SiteMinder OIDs must be formatted as
"XX-XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" (where each X is a hexadecimal
character) or "00-" to be considered valid.
For historic reasons, it is possible to create an SmObjId
instance with a SiteMinder object name in order to provide some bootstrap
functionality (OIDs of well known objects can not be determined until a
policy store has been created).
true if this OID is a valid SiteMinder OID object.public void setOid(java.lang.String oid)
valueOf(java.lang.String) rather then
trying to modify an existing one.
oid - The Object identifier.public java.lang.String toString()
toString in class java.lang.Object
|
Java SDK r12.51 Mon 04/08/2013 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||