|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.identity.sm.ServiceSchemaManager
The class ServiceSchemaManager
provides interfaces
to manage the service's schema. It provides access
to ServiceSchema
, which represents a single "schema"
in the service.
Constructor Summary | |
ServiceSchemaManager(SSOToken token,
java.lang.String serviceName,
java.lang.String version)
Creates an instance of ServiceSchemaManager for the
given service and version pair. |
Method Summary | |
java.lang.String |
addListener(ServiceListener listener)
Register for changes to service's schema. |
boolean |
equals(java.lang.Object o)
Checks if the given object equals this object. |
ServiceSchema |
getDynamicSchema()
Returns the dynamic service configuration schema. |
ServiceSchema |
getGlobalSchema()
Returns the global service configuration schema. |
java.lang.String |
getI18NFileName()
Returns the I18N properties file name for the service. |
java.lang.String |
getI18NJarURL()
Returns the URL of the JAR file that contains the I18N properties file. |
java.lang.String |
getName()
Returns the name of the service. |
ServiceSchema |
getOrganizationSchema()
Returns the organization service configuration schema. |
ServiceSchema |
getPolicySchema()
Returns the policy service configuration schema. |
java.lang.String |
getPropertiesViewBeanURL()
Returns URL of the view bean for the service |
java.io.InputStream |
getSchema()
Returns the service schema in XML for this service. |
ServiceSchema |
getSchema(SchemaType type)
Returns the configuration schema for the given schema type |
java.util.Set |
getSchemaTypes()
Returns the SchemaTypes available with this service |
java.util.Set |
getServiceAttributeNames(SchemaType type)
Returns the attribute schemas for the given schema type excluding status and service identifier attributes. |
java.lang.String |
getServiceHierarchy()
Returns the service's hierarchy |
ServiceSchema |
getUserSchema()
Returns the user service configuration schema. |
java.lang.String |
getVersion()
Returns the version of the service. |
void |
removeListener(java.lang.String listenerID)
Removes the listener from the service for the given listener ID. |
void |
replaceSchema(java.io.InputStream xmlServiceSchema)
Replaces the existing service schema with the given schema defined by the XML inputstream that follows the SMS DTD. |
java.lang.String |
toString()
Returns the string representation of the Service Schema |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ServiceSchemaManager(SSOToken token, java.lang.String serviceName, java.lang.String version) throws SMSException, SSOException
ServiceSchemaManager
for the
given service and version pair. It requires an user identity, that
will used to perform operations with. It is assumed that
the application calling this constructor should authenticate
the user.ssoToken
- the user identity on whose behalf the operations
are performedserviceName
- the name of the serviceversion
- the version of the serviceSMSException
- Method Detail |
public java.lang.String getName()
public java.lang.String getVersion()
public java.lang.String getI18NFileName()
public java.lang.String getI18NJarURL()
public java.lang.String getServiceHierarchy()
public java.lang.String getPropertiesViewBeanURL()
public java.util.Set getSchemaTypes() throws SMSException
public ServiceSchema getSchema(SchemaType type) throws SMSException
public java.util.Set getServiceAttributeNames(SchemaType type) throws SMSException
public ServiceSchema getGlobalSchema() throws SMSException
SMSException
- public ServiceSchema getOrganizationSchema() throws SMSException
SMSException
- public ServiceSchema getDynamicSchema() throws SMSException
SMSException
- public ServiceSchema getUserSchema() throws SMSException
SMSException
- public ServiceSchema getPolicySchema() throws SMSException
SMSException
- public java.io.InputStream getSchema() throws SMSException
SMSException
- public void replaceSchema(java.io.InputStream xmlServiceSchema) throws SSOException, SMSException, java.io.IOException
xmlServiceSchema
- the XML format of the service schemaSMSException
- public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String addListener(ServiceListener listener)
serviceListener
- callback object that will be invoked
when schema changespublic void removeListener(java.lang.String listenerID)
listenerID
- the listener ID issued when the
listener was registered
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |