|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.identity.sm.ServiceManager
The ServiceManager
class provides methods to register/remove
services and to list currently registered services. It also provides
methods to obtain an instance of ServiceSchemaManager
and an instance of ServiceConfigManager
.
Constructor Summary | |
ServiceManager(SSOToken token)
Creates an instance of ServiceManager . |
Method Summary | |
void |
clearCache()
Removes all the SMS cached entries. |
ServiceConfigManager |
getConfigManager(java.lang.String serviceName,
java.lang.String version)
Returns the ServiceConfigManager for the given
service name and version. |
ServiceSchemaManager |
getSchemaManager(java.lang.String serviceName,
java.lang.String version)
Returns the ServiceSchemaManager for the given
service name and version. |
java.util.Set |
getServiceNames()
Returns all the service names that have been registered. |
java.util.Set |
getServiceVersions(java.lang.String serviceName)
Returns all versions supported by the service. |
void |
registerServices(java.io.InputStream xmlServiceSchema)
Registers one or more services, defined by the XML inputstream that follows the SMS DTD. |
void |
removeService(java.lang.String serviceName,
java.lang.String version)
Removes the service schema and configuration for the given service name. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ServiceManager(SSOToken token) throws SSOException, SMSException
ServiceManager
. The
SSOToken
is used to identify the user performing
service operations.token
- the authenticated SSOTokenSSOException
- SMSException
- Method Detail |
public ServiceSchemaManager getSchemaManager(java.lang.String serviceName, java.lang.String version) throws SMSException, SSOException
ServiceSchemaManager
for the given
service name and version.serviceName
- the name of the serviceversion
- the version of the serviceServiceSchemaManager
for the given service
name and versionSMSException
- public ServiceConfigManager getConfigManager(java.lang.String serviceName, java.lang.String version) throws SMSException, SSOException
ServiceConfigManager
for the given
service name and version.serviceName
- the name of the serviceversion
- the version of the serviceServiceConfigManager
for the given service
name and versionSMSException
- public java.util.Set getServiceNames() throws SMSException
SMSException
- public java.util.Set getServiceVersions(java.lang.String serviceName) throws SMSException
SMSException
- public void registerServices(java.io.InputStream xmlServiceSchema) throws SMSException, SSOException
xmlServicesSchema
- the inputStream of service metadata in xml
conforming to SMS DTDSMSException
- public void removeService(java.lang.String serviceName, java.lang.String version) throws SMSException, SSOException
serviceName
- the name of the serviceversion
- the version of the serviceSMSException
- public void clearCache()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |