|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.itim.apps.provisioning.ServiceManager
public class ServiceManager
Provides aggregate service management capabilities. These capabilities include the creation of services and the testing of their configuration parameters.
ServiceMO
Constructor Summary | |
---|---|
ServiceManager(PlatformContext platform,
javax.security.auth.Subject subject)
Constructs the manager with a platform context and a subject. |
Method Summary | |
---|---|
ServiceMO |
createService(OrganizationalContainerMO container,
Service subject)
Creates a service in the provisioning platform with the specified attributes within the given container. |
ServiceMO |
createService(OrganizationalContainerMO container,
Service subject,
ManualWorkOrder manualWorkOrder)
Creates a service in the provisioning platform with the specified attributes within the container. |
ServiceMO |
createService(OrganizationalContainerMO container,
Service subject,
ServiceTestResult result)
Creates a service in the provisioning platform with the specified attributes within the given container. |
ServiceMO |
getServiceByURI(OrganizationalContainerMO container,
java.lang.String uri)
Returns the service for the given Uniform Resource Identifier (URI) within the specified parent container. |
java.util.Collection |
getServices(OrganizationalContainerMO container,
java.lang.String name)
Returns the Collection of the ServiceMO objects by name. |
java.util.Collection |
getServices(OrganizationalContainerMO parent,
java.lang.String attributeName,
java.lang.Object attributeValue)
Returns the service(s) matching the given attribute within the given parent container. |
void |
getServices(OrganizationalContainerMO parent,
java.lang.String attributeName,
java.lang.Object attributeValue,
SearchResultsMO results)
Returns the service(s) matching the given attribute within the given container. |
java.util.Collection |
getServices(OrganizationalContainerMO container,
java.lang.String profileName,
java.lang.String name)
Returns the service(s) with the the name within the given parent container. |
java.util.Collection<ServiceMO> |
getServices(OrganizationalContainerMO container,
java.lang.String profileName,
java.lang.String name,
java.util.Collection<ServiceStatus> statusValues,
boolean subtree,
int sizeLimit)
Returns the service(s) with the profileName, name, and status within the given parent container. |
ServiceTestResult |
testCommunications(OrganizationalContainerMO container,
Service subject)
Tests the communication with the physical service defined in a given service value object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceManager(PlatformContext platform, javax.security.auth.Subject subject)
platform
- PlatformContext holding platform connection information.subject
- Subject representing the authenticated caller.Method Detail |
---|
public ServiceMO createService(OrganizationalContainerMO container, Service subject) throws java.rmi.RemoteException, AuthorizationException, SchemaViolationException, ApplicationException
container
- OrganizationalContainerMO within which the
service will be placed.subject
- Service value object defining the attributes the service
will have.
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
AuthorizationException
- Thrown if client is unauthorized to
create the service in the given
container.
SchemaViolationException
- Thrown if any of the attributes
in the value object are violate the
managed object's schema. This
may be caused by an invalid attribute
or if a required attribute is missing
entirely.
ApplicationException
- Thrown if unable to create the service.
This may possibly be caused by
the container being removed by another
client previous to this call.public ServiceMO createService(OrganizationalContainerMO container, Service subject, ManualWorkOrder manualWorkOrder) throws java.rmi.RemoteException, AuthorizationException, SchemaViolationException, ApplicationException
container
- - OrganizationalContainerMO that contains the service.subject
- - Service value object that defines the attributes the service has.manualWorkOrder
- - ManualWorkOrder value object that defines the attributes of the work order.
java.rmi.RemoteException
- - Thrown if the method is unable to communicate with platform.
AuthorizationException
- - Thrown if client is unauthorized to create the service in the container.
SchemaViolationException
- - Thrown if any of the attributes in the value object violate the schema of the managed object.
This error might be caused by an incorrect
attribute or a missing required attribute.
ApplicationException
- - Thrown if the method is unable to create the service.
This error might be caused if another client
removes the container before this call. DL>public ServiceMO createService(OrganizationalContainerMO container, Service subject, ServiceTestResult result) throws java.rmi.RemoteException, AuthorizationException, SchemaViolationException, ApplicationException
container
- OrganizationalContainerMO within which the
service will be placed.subject
- Service value object defining the attributes the service
will have.result
- Service's test connection result during service creation.
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
AuthorizationException
- Thrown if client is unauthorized to
create the service in the given
container.
SchemaViolationException
- Thrown if any of the attributes
in the value object are violate the
managed object's schema. This
may be caused by an invalid attribute
or if a required attribute is missing
entirely.
ApplicationException
- Thrown if unable to create the service.
This may possibly be caused by
the container being removed by another
client previous to this call.public ServiceTestResult testCommunications(OrganizationalContainerMO container, Service subject) throws java.rmi.RemoteException, ApplicationException
container
- OrganizationalContainerMO representing the container
to provide the root context of the (potential) service.subject
- Service value object representing the subject of the
test.
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
AuthorizationException
- Thrown if client is unauthorized to
know this information.
ApplicationException
- Thrown if unable to determine the
answer. This may possibly be
caused by the container being removed by
another client previous to this call.ServiceTestResult
public java.util.Collection getServices(OrganizationalContainerMO container, java.lang.String name) throws java.rmi.RemoteException, ApplicationException
container
- OrganizationalContainerMO representing the parent container
to scope the search. In a single-tenant deployment, null
can be specified to indicate the entire tree should be
searched. In a multi-tenant deployment, an
OrganizationalContainerMO object must be provided that
represents the root of the tenant.name
- Name of the service(s) to return.
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
ApplicationException
- Thrown if unable to obtain the
services. This may possibly
be caused by the container being removed
by another client previous to this call.public java.util.Collection getServices(OrganizationalContainerMO container, java.lang.String profileName, java.lang.String name) throws java.rmi.RemoteException, ApplicationException
container
- OrganizationalContainerMO representing the parent container
to scope the search. In a single-tenant deployment, null
can be specified to indicate the entire tree should be
searched. In a multi-tenant deployment, an
OrganizationalContainerMO object must be provided that
represents the root of the tenant.profileName
- Name of the profile for a given service.name
- Name of the service(s) to return.
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
ApplicationException
- Thrown if unable to obtain the
services. This may possibly
be caused by the container being removed
by another client previous to this call.public java.util.Collection<ServiceMO> getServices(OrganizationalContainerMO container, java.lang.String profileName, java.lang.String name, java.util.Collection<ServiceStatus> statusValues, boolean subtree, int sizeLimit) throws java.rmi.RemoteException, ApplicationException
container
- OrganizationalContainerMO representing the parent container
to scope the search. In a single-tenant deployment, null
can be specified to indicate the entire tree should be
searched. In a multi-tenant deployment, an
OrganizationalContainerMO object must be provided that
represents the root of the tenant.profileName
- Name of the profile for a given service.name
- Name of the service(s) to return.statusValues
- ServiceStatus values for services to include in the resultsubtree
- specifies whether to include results in sub-containerssizeLimit
- maximum number of results to return
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
ApplicationException
- Thrown if unable to obtain the
services. This may possibly
be caused by the container being removed
by another client previous to this call.public java.util.Collection getServices(OrganizationalContainerMO parent, java.lang.String attributeName, java.lang.Object attributeValue) throws java.rmi.RemoteException, ApplicationException
parent
- OrganizationalContainerMO representing the parent container
to scope the search. In a single-tenant deployment, null
can be specified to indicate the entire tree should be
searched. In a multi-tenant deployment, an
OrganizationalContainerMO object must be provided that
represents the root of the tenant.attributeName
- Name of attribute to match with.attributeValue
- Value of the attribute to match with. A * can be
used as the first and/or last character of a
String value if a "contains" expression is wished.
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
ApplicationException
- Thrown if unable to obtain the
services. This may possibly
be caused by the parent container being
removed by another client previous to
this call.public void getServices(OrganizationalContainerMO parent, java.lang.String attributeName, java.lang.Object attributeValue, SearchResultsMO results) throws java.rmi.RemoteException, ApplicationException
parent
- OrganizationalContainerMO representing the parent container
to scope the search. In a single-tenant deployment, null
can be specified to indicate the entire tree should be
searched. In a multi-tenant deployment, an
OrganizationalContainerMO object must be provided that
represents the root of the tenant.attributeName
- Name of attribute to match with.attributeValue
- Value of the attribute to match with. A * can be
used as the first and/or last character of a
String value if a "contains" expression is wished.results
- SearchResultsMO to hold the results of the search. The
objet will be filled with Service value objects that
match the given criteria. Note, if the SearchResultsMO
object was constructed using a different user context,
that context will be changed to match the context of this
object. SearchResultsMO supports the paging and sorting.
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
ApplicationException
- Thrown if unable to obtain the
services. This may possibly
be caused by the parent container being
removed by another client previous to
this call.public ServiceMO getServiceByURI(OrganizationalContainerMO container, java.lang.String uri) throws java.rmi.RemoteException, ApplicationException
container
- OrganizationalContainerMO representing the parent container to
scope the search.uri
- String representing the service URI.
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
ApplicationException
- Thrown if unable to obtain the service. This might
be caused by the container being removed by
another client previous to this call. This exception might also be thrown
if the container object is null or represents the tenant,
no service is found for the given URI within the container,
or more than one service is found for the given URI
within the container.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |