|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.itim.apps.provisioning.ServiceMO
public class ServiceMO
Managed object representing a service.
Constructor Summary | |
---|---|
ServiceMO(PlatformContext platform,
javax.security.auth.Subject subject,
DistinguishedName name)
Constructs the the managed object with a platform context, a subject, and the distinguished name of the object to manage. |
Method Summary | |
---|---|
java.util.Collection |
getAccounts()
Returns all the accounts that are hosted by this service. |
OrganizationalContainerMO |
getContainer()
Returns the current parent container in the tree. |
Service |
getData()
Returns a current snapshot of the Service object. |
DistinguishedName |
getDistinguishedName()
Returns the distinguished name of the managed object |
ServiceMO |
getHost()
Returns the host, or concrete service, this service proxies. |
ManualWorkOrder |
getManualWorkOrder()
Retrieves the ManualWorkOrder for the service. |
java.util.Collection |
getOrphanedAccounts()
Returns all of the orphaned accounts for this service. |
java.util.Collection |
getOwnedAccounts()
Returns all the owned accounts that are hosted by this service. |
PersonMO |
getOwner()
Deprecated. since 5.0. Please use getOwners(). |
java.util.Collection<PersonMO> |
getOwners()
Returns the service owner(s) (if any). |
java.util.Collection |
getPrerequisites()
Returns the prerequisites of the service. |
ServiceStatistics |
getStatistics()
Returns statistical information about the service currently known by the server. |
ServiceStatusDetail |
getStatusDetail()
Returns detailed status information about the service. |
boolean |
isCircularDependent(Service serv)
Checks whether this managed object (ServiceMO) is a prerequisite of a service (that is passesed as a parameter) or the prerequisite of service's prerequisite. |
boolean |
isHosted()
Returns whether this service is a "hosted" service. |
boolean |
isPasswordRequired()
Returns whether this service requires a password for its accounts. |
void |
remove()
Removes the managed object from the provisioning platform. |
ServiceRestartResult |
restart()
Tests communications with the physical service and if successful, restarts any pending provisioning actions that have been queued. |
void |
switchToManualMode(ManualWorkOrder mwo)
Switches the service to manual connection mode and adds or updates the lifecycle with the provided ManualWorkOrder object. |
ServiceTestResult |
testCommunications()
Tests the communications with the physical service itself to ensure provisioning actions can be fulfilled. |
void |
update(ManualWorkOrder mwo)
Updates the managed object. |
void |
update(Service s)
Updates the managed object. |
void |
update(Service s,
ManualWorkOrder mwo)
Updates the managed objects. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceMO(PlatformContext platform, javax.security.auth.Subject subject, DistinguishedName name)
platform
- PlatformContext holding platform connection information.subject
- Subject representing the authenticated caller.name
- DistinguishedName identifying the container.Method Detail |
---|
public DistinguishedName getDistinguishedName()
public Service getData() throws java.rmi.RemoteException, ApplicationException
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
ApplicationException
- Thrown if unable to retrieve data.public OrganizationalContainerMO getContainer() throws java.rmi.RemoteException, ApplicationException, AuthorizationException
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
AuthorizationException
- Thrown if client is unauthorized to
view the container of the service.
ApplicationException
- Thrown if unable to retrieve the service's
container. This may possibly be caused by
the service being removed by another client
previous to this call.public void remove() throws java.rmi.RemoteException, ApplicationException, AuthorizationException
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
AuthorizationException
- Thrown if client is unauthorized to
remove the service.
ApplicationException
- Thrown if unable to remove the object.public void update(Service s) throws java.rmi.RemoteException, AuthorizationException, SchemaViolationException, ApplicationException
s
- Service value object with changes to make.
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
AuthorizationException
- Thrown if client is unauthorized to
change the service. Note, even if only
one of the attributes being changed
is not writeable for the client, the
entire request will fail and this
exception will be thrown.
SchemaViolationException
- Thrown if any of the attributes
in the value object violates the
managed object's schema.
ApplicationException
- Thrown if unable to update the object.
This may possibly be caused by the
service being removed by another client
previous to this call.public void update(Service s, ManualWorkOrder mwo) throws java.rmi.RemoteException, AuthorizationException, SchemaViolationException, ApplicationException
s
- - Specifies the Service value object with the changes.mwo
- - Specifies the ManualWorkOrder value object with the changes.
java.rmi.RemoteException
- - Thrown if the method is unable to communicate with platform.
AuthorizationException
- - Thrown if the client is unauthorized to change the service.
Note, even if only one of the attributes being changed
is not writeable for the client, the entire request fails and this exception is thrown.
SchemaViolationException
- - Thrown if any of the attributes in the value object violates the schema of the managed object.
ApplicationException
- - Thrown if the method is unable to update the object.
This error might be caused if another
client removes the service before this call.public void update(ManualWorkOrder mwo) throws java.rmi.RemoteException, AuthorizationException, SchemaViolationException, ApplicationException
mwo
- - Specifies the ManualWorkOrder value object with the changes.
java.rmi.RemoteException
- - Thrown if the method is unable to communicate with platform.
AuthorizationException
- - Thrown if the client is unauthorized to change the service.
Note, even if only one of the attributes being changed is not writeable
for the client, the entire request fails and this exception is thrown.
SchemaViolationException
- - Thrown if any of the attributes in the value object violates
the schema of the managed object.
ApplicationException
- - Thrown if the method is unable to update the object.
This error might be caused if another client removes the service
before this call.public void switchToManualMode(ManualWorkOrder mwo) throws ApplicationException, java.rmi.RemoteException
mwo
- - Specifies the ManualWorkOrder object used for setting the lifecycle of the service (can be null).
ApplicationException
- - Thrown if the method is unable to set to the service to manual mode or unable to assign or update the work order.
java.rmi.RemoteException
- - Thrown if the method is unable to communicate with platform.public ManualWorkOrder getManualWorkOrder() throws ApplicationException, java.rmi.RemoteException
ApplicationException
java.rmi.RemoteException
public PersonMO getOwner() throws java.rmi.RemoteException, AuthorizationException, ApplicationException
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
AuthorizationException
- Thrown if client is unauthorized to
view the owner of the service.
ApplicationException
- Thrown if unable to retrieve the service's
owner. This may possibly be caused by
the service being removed by another client
previous to this call.public java.util.Collection<PersonMO> getOwners() throws java.rmi.RemoteException, AuthorizationException, ApplicationException
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
AuthorizationException
- Thrown if client is unauthorized to
view the owner of the service.
ApplicationException
- Thrown if unable to retrieve the service's
owner. This may possibly be caused by
the service being removed by another client
previous to this call.public java.util.Collection getPrerequisites() throws java.rmi.RemoteException, AuthorizationException, ApplicationException
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
AuthorizationException
- Thrown if client is unauthorized to
view the service's prerequisites.
ApplicationException
- Thrown if unable to obtain the
prerequisites. This may possibly be
caused by the service being removed by
another client previous to this call.public ServiceMO getHost() throws java.rmi.RemoteException, AuthorizationException, ApplicationException
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
AuthorizationException
- Thrown if client is unauthorized to
view the service's host.
ApplicationException
- Thrown if unable to obtain the
host. This may possibly be
caused by the service being removed by
another client previous to this call.public java.util.Collection getAccounts() throws java.rmi.RemoteException, ApplicationException
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
ApplicationException
- Thrown if unable to obtain the
accounts. This may possibly be
caused by the service being removed by
another client previous to this call.public java.util.Collection getOrphanedAccounts() throws java.rmi.RemoteException, AuthorizationException, ApplicationException
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
AuthorizationException
- Thrown if client is unauthorized to
view the service's orphaned accounts.
ApplicationException
- Thrown if unable to obtain the
orphaned accounts. This may possibly be
caused by the service being removed by
another client previous to this call.public java.util.Collection getOwnedAccounts() throws java.rmi.RemoteException, AuthorizationException, ApplicationException
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
AuthorizationException
- Thrown if client is unauthorized to
view the service's owned accounts.
ApplicationException
- Thrown if unable to obtain the
owned accounts. This may possibly be
caused by the service being removed by
another client previous to this call.public boolean isHosted() throws java.rmi.RemoteException, AuthorizationException, ApplicationException
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 service being removed by
another client previous to this call.public boolean isPasswordRequired() throws java.rmi.RemoteException, AuthorizationException, ApplicationException
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 service being removed by
another client previous to this call.public boolean isCircularDependent(Service serv) throws java.rmi.RemoteException, AuthorizationException, ApplicationException
serv
- The service to be evaluated.
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 service being removed by
another client previous to this call.public ServiceTestResult testCommunications() throws java.rmi.RemoteException, ApplicationException
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 service being removed by
another client previous to this call.public ServiceRestartResult restart() throws java.rmi.RemoteException, AuthorizationException, ApplicationException
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
AuthorizationException
- Thrown if client is unauthorized to perform the restart
ApplicationException
- Thrown if unable to perform the restart. This may possibly be
caused by the service being removed by another client previous to this call.public ServiceStatistics getStatistics() throws java.rmi.RemoteException, AuthorizationException, ApplicationException
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
AuthorizationException
- Thrown if client is unauthorized to
retrieve the statistics.
ApplicationException
- Thrown if unable to determine the
answer.public ServiceStatusDetail getStatusDetail() throws java.rmi.RemoteException, AuthorizationException, ApplicationException
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
AuthorizationException
- Thrown if client is unauthorized to
retrieve the statistics.
ApplicationException
- Thrown if unable to determine the
answer.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |