|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.itim.apps.provisioning.AccountMO
Managed object representing an account.
Constructor Summary | |
AccountMO(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 | |
void |
adopt(PersonMO owner)
Adopts the account, or changes the account owner to the given person (identity). |
Request |
changePassword(java.lang.String password)
Changes the password of the account. |
Account |
getData()
Returns a current snapshot of the data defining the provisionng object. |
DistinguishedName |
getDistinguishedName()
Returns the distinguished name of the managed object |
PersonMO |
getOwner()
Returns the owner of the account (if any). |
ServiceMO |
getService()
Returns the service hosting the account. |
void |
orphan()
Orphans the account, or changes the account owner to unknown. |
Request |
remove(java.util.Date scheduledTime)
Removes the managed object from the provisioning platform. |
Request |
restore(java.lang.String password,
java.util.Date scheduledTime)
Restores the account. |
Request |
suspend(java.util.Date scheduledTime)
Suspends the account. |
Request |
update(Account a,
java.util.Date scheduledTime)
Updates the managed object. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AccountMO(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 Account getData() throws java.rmi.RemoteException, ApplicationException
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
ApplicationException
- Thrown if unable to retrieve data.public PersonMO getOwner() 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 owner of the account.
ApplicationException
- Thrown if unable to retrieve the account's
owner. This may possibly be caused by
the account being removed by another client
previous to this call.public ServiceMO getService() 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 service of the account.
ApplicationException
- Thrown if unable to retrieve the account's
service. This may possibly be caused by
the account being removed by another client
previous to this call.public void orphan() throws java.rmi.RemoteException, AuthorizationException, ApplicationException
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
AuthorizationException
- Thrown if client is unauthorized to
orphan the account.
ApplicationException
- Thrown if unable to orphan the account.
This may possibly be caused by
the account being removed by another client
previous to this call.public void adopt(PersonMO owner) throws java.rmi.RemoteException, AuthorizationException, ApplicationException
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
AuthorizationException
- Thrown if client is unauthorized to
change the account owner.
ApplicationException
- Thrown if unable to adopt the account.
This may possibly be caused by
the account or owner being removed by
another client previous to this call.public Request remove(java.util.Date scheduledTime) throws java.rmi.RemoteException, ApplicationException, AuthorizationException
scheduledTime
- Date holding the time the operation is to be
executed.
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
AuthorizationException
- Thrown if client is unauthorized to
remove the account.
ApplicationException
- Thrown if unable to submit the request.public Request update(Account a, java.util.Date scheduledTime) throws java.rmi.RemoteException, AuthorizationException, SchemaViolationException, ApplicationException
a
- Account value object with changes to make.scheduledTime
- Date holding the time the operation is to be
executed.
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
AuthorizationException
- Thrown if client is unauthorized to
change the account. 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 are violate the
managed object's schema.
ApplicationException
- Thrown if unable to submit the request.
This may possibly be caused by the
account being removed by another client
previous to this call.public Request suspend(java.util.Date scheduledTime) throws java.rmi.RemoteException, AuthorizationException, ApplicationException
scheduledTime
- Date holding the time the operation is to be
executed.
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
AuthorizationException
- Thrown if client is unauthorized to
suspend the account.
ApplicationException
- Thrown if unable to submit the request.
This may possibly be caused by the
account being removed by another client
previous to this call.public Request restore(java.lang.String password, java.util.Date scheduledTime) throws java.rmi.RemoteException, AuthorizationException, ApplicationException, InvalidPasswordException
password
- New password of the account.scheduledTime
- Date holding the time the operation is to be
executed.
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
AuthorizationException
- Thrown if client is unauthorized to
restore the account.
ApplicationException
- Thrown if unable to submit the request.
This may possibly be caused by the
account being removed by another client
previous to this call.
InvalidPasswordException
public Request changePassword(java.lang.String password) throws java.rmi.RemoteException, AuthorizationException, InvalidPasswordException, ApplicationException
password
- New password of the account.
java.rmi.RemoteException
- Thrown if unable to communicate with platform.
AuthorizationException
- Thrown if client is unauthorized to
change the account's password.
InvalidPasswordException
- Thrown if password does not pass a
password policy check.
ApplicationException
- Thrown if unable to submit the request.
This may possibly be caused by the
account 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 |