|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.itim.apps.provisioning.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. |
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()
Returns the service owner (if any). |
java.util.Collection |
getPrerequisites()
Returns the prerequisites of the service. |
boolean |
isCircularDependent(Service service)
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. |
ServiceTestResult |
testCommunications()
Tests the communications with the physical service itself to ensure provisioning actions can be fulfilled. |
void |
update(Service s)
Updates the managed object. |
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 upate the object.
This may possibly be caused by the
service being removed by another client
previous to this call.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 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 service) throws java.rmi.RemoteException, AuthorizationException, ApplicationException
service
- 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.getPrerequisites()
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.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |