|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.iplanet.am.sdk.AMSchema
com.sun.identity.sm.ServiceSchema
.
The class AMSchema
provides
interfaces to get the schema information for
service configuration information
Nested Class Summary | |
static class |
AMSchema.Type
Deprecated. This class has been deprecated. Please use com.sun.identity.sm.SchemaType . |
Method Summary | |
static void |
addListener(java.lang.String serviceName,
AMServiceListener listener)
Deprecated. Registers the listener for the given service name |
java.util.Map |
getAttributeDefaults()
Deprecated. Get a map of all the attribute and their default values in this schema |
java.util.Set |
getAttributeNames()
Deprecated. Method to obtain the names of the schema attributes defined for the service. |
AMAttributeSchema |
getAttributeSchema(java.lang.String attributeName)
Deprecated. Method to obtain the schema for an attribute given the name of the attribute, defined for this service. |
java.util.Set |
getAttributeSchemas()
Deprecated. Get all the AMAttributeSchema defined for this Service
Schema. |
java.lang.String |
getI18NKey()
Deprecated. Method to get I18N key to describe the service |
java.lang.String |
getPropertiesViewBeanURL()
Deprecated. gets properties view bean associated with this schema |
java.util.Map |
getReadOnlyAttributeDefaults()
Deprecated. Get an unmodifiable map of all the attribute and their default values in this schema |
AMSchema.Type |
getSchemaType()
Deprecated. Method to obtain the schema type. |
java.lang.String |
getServiceName()
Deprecated. Method to obtain the service name. |
java.lang.String |
getStatusAttribute()
Deprecated. Method to get the name of the service status attribute. |
java.lang.String[] |
getStatusAttributeChoiceValues()
Deprecated. Method to get the choice values for the status attribute of this service (and this schema) |
AMSchema |
getSubSchema(java.lang.String subSchemaName)
Deprecated. Method to obtain Service SubSchema object given the name of the service's sub schema. |
java.util.Set |
getSubSchemaNames()
Deprecated. Method to get the names of sub-schemas names for the this Schema |
void |
removeAttributeDefaults(java.util.Set attrs)
Deprecated. Method to remove default values of attributes in the schema. |
static void |
removeListener(java.lang.String serviceName,
AMServiceListener listener)
Deprecated. Unregisters the listener for the given service name |
void |
setAttributeDefaults(java.util.Map attrs)
Deprecated. Method to change the default values of attributes in the schema. |
void |
setAttributeDefaults(java.lang.String attrName,
java.util.Set values)
Deprecated. Method to change default value for a specific attribute. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public java.lang.String getServiceName()
public AMSchema.Type getSchemaType()
AMSchema.Type.DYNAMIC
,
AMSchema.Type.POLICY
,
AMSchema.Type.ORGANIZATION
or
AMSchema.Type.USER
).public java.lang.String getI18NKey()
public java.lang.String getStatusAttribute()
public java.lang.String[] getStatusAttributeChoiceValues()
public java.util.Set getAttributeNames()
public AMAttributeSchema getAttributeSchema(java.lang.String attributeName)
attributeName
- the attribute name
public java.util.Set getAttributeSchemas()
AMAttributeSchema
defined for this Service
Schema.
AMAttributeSchema
defined in
this Schema.public java.util.Map getAttributeDefaults()
public java.util.Map getReadOnlyAttributeDefaults()
public java.util.Set getSubSchemaNames()
public AMSchema getSubSchema(java.lang.String subSchemaName) throws AMException
subSchemaName
- name of the service's sub schema
AMException
public void setAttributeDefaults(java.util.Map attrs) throws AMException
attrs
- A map of the names of attribute schema to modify,
and a Set of Values which should replace the default values
of the current schema.
AMException
public void setAttributeDefaults(java.lang.String attrName, java.util.Set values) throws AMException
attrName
- Name of the attribute for which defaults
values need to be replaced.values
- Set of new values to replace the old ones.
AMException
- if unable to access/modify the data store due to an errorpublic void removeAttributeDefaults(java.util.Set attrs) throws AMException
attrs
- A set of the names of attribute
AMException
- if unable to access/modify the data store due to an errorpublic java.lang.String getPropertiesViewBeanURL()
public static void addListener(java.lang.String serviceName, AMServiceListener listener) throws AMException
serviceName
- the name of the servicelistener
- the service listener
AMException
- if an error is encountered in registering
the listenerpublic static void removeListener(java.lang.String serviceName, AMServiceListener listener) throws AMException
serviceName
- the name of the service.listener
- the listener registration ID.
AMException
- if an error is encountered in unregistering
the listener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |