SiteMinder
Java SDK r12.0 SP2


com.netegrity.sdk.policyapi
Interface SmObject

All Superinterfaces:
java.lang.Cloneable
All Known Subinterfaces:
SmDomainObject
All Known Implementing Classes:
SmDomainObjectImpl, SmObjectImpl

public interface SmObject
extends java.lang.Cloneable

SmObject is the root of the Policy API interfaces.

Since:
SDK 2.0

Field Summary
static java.lang.String ConfigurationClassName
          Property name to be specified in the method GetGlobalObjectNames().
static java.lang.String PropDesc
          Constant to indicate the object's Description property.
static java.lang.String PropName
          Constant to indicate the object's Name property (searchable).
static java.lang.String PropOid
          Constant to indicate the object's Object Identifier property (searchable).
 
Method Summary
 java.lang.String getDescription()
          Gets the description of the object.
 java.lang.String getName()
          Gets the name of the object.
 java.lang.String getObjectClassname()
          Gets the Policy API object class name.
 SmObjId getOid()
          Gets the object identifier.
 boolean isDomainObject()
          Specifies whether the current object is a domain object.
 boolean isWriteable()
          Specifies whether the current object is writable.
 void readProperties(java.util.Hashtable properties)
          Copies the object properties from the specified hashtable.
 void setDescription(java.lang.String description)
          Sets the description of the object.
 void setName(java.lang.String name)
          Sets the name of the object.
 void setObjectClassname(java.lang.String className)
          Sets the Policy API object class name.
 void setOid(java.lang.Object oid)
          Sets the object identifier for the Object object.
 void setOid(SmObjId oid)
          Sets the object identifier for the SmObjId object.
 java.lang.String toString()
          Returns the name of the current object.
 void writeProperties(java.util.Hashtable properties)
          Copies the object properties to the specified hashtable.
 void writeSearchProperties(java.util.Hashtable properties, java.lang.String[] searchProps)
          Copies the properties of the object specified in searchProps to the properties hashtable.
 

Field Detail

PropName

public static final java.lang.String PropName
Constant to indicate the object's Name property (searchable). You can search objects based on this property.

See Also:
Constant Field Values

PropOid

public static final java.lang.String PropOid
Constant to indicate the object's Object Identifier property (searchable). You can search objects based on this property.

See Also:
Constant Field Values

PropDesc

public static final java.lang.String PropDesc
Constant to indicate the object's Description property.

See Also:
Constant Field Values

ConfigurationClassName

public static final java.lang.String ConfigurationClassName
Property name to be specified in the method GetGlobalObjectNames().

See Also:
Constant Field Values
Method Detail

getObjectClassname

public java.lang.String getObjectClassname()
Gets the Policy API object class name. For example, when called on the SmDomain object, it would return Domain.

Returns:
The policy API object class name.

setObjectClassname

public void setObjectClassname(java.lang.String className)
Sets the Policy API object class name.

Parameters:
className - Policy API object class name.

getOid

public SmObjId getOid()

Gets the object identifier.

To put the object identifier in string form, use getOidString().

Returns:
The object identifier.

setOid

public void setOid(SmObjId oid)
Sets the object identifier for the SmObjId object. Use this method to copy one object ID to another object.

Parameters:
oid - The object identifier.

setOid

public void setOid(java.lang.Object oid)
Sets the object identifier for the Object object. This ID is the object's unique object identifier.

Parameters:
oid - The object identifier.

getName

public java.lang.String getName()
Gets the name of the object.

Returns:
The name of the object.

setName

public void setName(java.lang.String name)
Sets the name of the object.

Parameters:
name - The name of the object.

getDescription

public java.lang.String getDescription()
Gets the description of the object.

Returns:
The description of the object.

setDescription

public void setDescription(java.lang.String description)
Sets the description of the object.

Parameters:
description - The description of the object.

isWriteable

public boolean isWriteable()
Specifies whether the current object is writable.

Returns:
true if the object is writable.

readProperties

public void readProperties(java.util.Hashtable properties)
Copies the object properties from the specified hashtable.

Parameters:
properties - The new properties of the object.

writeProperties

public void writeProperties(java.util.Hashtable properties)
Copies the object properties to the specified hashtable.

Parameters:
properties - The hashtable where the object properties will be copied.

isDomainObject

public boolean isDomainObject()
Specifies whether the current object is a domain object.

Returns:
true if the object is a domain object.

toString

public java.lang.String toString()
Returns the name of the current object.

Overrides:
toString in class java.lang.Object
Returns:
The name of the object.

writeSearchProperties

public void writeSearchProperties(java.util.Hashtable properties,
                                  java.lang.String[] searchProps)
Copies the properties of the object specified in searchProps to the properties hashtable.

Parameters:
properties - The hashtable where the search properties will be copied.
searchProps - Object whose search properties will be copied to properties.

SiteMinder
Java SDK r12.0 SP2

Fri 11/06/2009

http://ca.com
Copyright (c) 2009 CA.