|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nitido.nim.NiMKernelService
com.nitido.nim.ProvisionService
public abstract class ProvisionService
The ProvisionService is the NiMKernel module responsible for provisioning and de-provisioning entities.
Field Summary |
---|
Constructor Summary | |
---|---|
ProvisionService(NiMKernelServiceVisa visa)
This class constructor is used by NiMKernel to instantiate a new ProvisionService. |
Method Summary | |
---|---|
abstract void |
changeProvisionCredential(Credential oldCred,
Credential newCred)
Change the provision credential. |
abstract void |
deprovisionEntity(Credential targetCred,
Entity adminEntity)
This method will de-provision the entity associated to the given target credential. |
protected abstract void |
init(NiMKernel kernel,
ConfigurationService confService)
This method is used to initialize the kernel service. |
protected abstract boolean |
isProvisioned(Credential targetCred)
This method will check if the specified targetCred represents an entity that has been provisioned in the backend. |
abstract void |
provisionEntity(EntityProvisionDescriptor descriptor,
Entity adminEntity)
This method is used to provision a new entity. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProvisionService(NiMKernelServiceVisa visa)
visa
- Reference to the NiMKernelServiceVisa object required to
instantiate the service. This parameter is required to
ensure that only the NiMkernel can instantiate a reference
to this service.Method Detail |
---|
protected abstract void init(NiMKernel kernel, ConfigurationService confService) throws InitializationFailedException, NiMException
NiMKernelService
init
in class NiMKernelService
kernel
- Reference to the NiMKernel object that instantiated the
service.confService
- A reference to the configuration service. All the service
implementations (except ConfigurationService)
should retrieve the setting information from it.
InitializationFailedException
- If unable to initialize the kernel service.
NiMException
- If service initialization can not be done due to failure in
establish a connection to the back-end service. Not all
service implementation will throw this exception.public abstract void provisionEntity(EntityProvisionDescriptor descriptor, Entity adminEntity) throws java.lang.IllegalArgumentException, EntityProvisionException, PermissionDeniedException, NiMException
If this method failed to provision the entity on one of the back-end service, it must undo the task on the other services that it has provisioned the user. In other words, this method must provide an atomic "user provisioning process".
descriptor
- The entity descriptor is data container that holds all the
information necessary to provision the required EntityadminEntity
- The entity object of the administrator. The identifying
credential of this entity object should have enough
privilege for provisioning a new entity
java.lang.IllegalArgumentException
- If any of the given arguments are null.
EntityProvisionException
- If unable to cprovision the entity due to inconsistencies
on the data in the EntityProvisionDescriptor and the
back-end requirements.
PermissionDeniedException
- If given Credential does not have permission to perform the
required action.
NiMException
- If unable to establish a connection with the back-end
provisioning service.public abstract void deprovisionEntity(Credential targetCred, Entity adminEntity) throws java.lang.IllegalArgumentException, PermissionDeniedException, NiMException
targetCred
- The identifying credential of the entity being de-provisioned.adminEntity
- The entity object of the administrator. The identifying
credential of this administrator entity object should
have enough privilege for provisioning a new entity
java.lang.IllegalArgumentException
- If any of the given arguments are null.
PermissionDeniedException
- If the given credential does not have permission for the action.
NiMException
- If unable to establish a connection with the back-end
de-provisioning service.public abstract void changeProvisionCredential(Credential oldCred, Credential newCred) throws IllegalCredentialException, NiMException
oldCred
- The original credential.newCred
- The new credential.
IllegalCredentialException
- If the credentials are incorrect.
NiMException
- If some other unexpected error has occured.protected abstract boolean isProvisioned(Credential targetCred) throws java.lang.IllegalArgumentException, NiMException
targetCred
- The identifying credential of the entity to be checked.
java.lang.IllegalArgumentException
- If any of the given arguments are null.
NiMException
- If unable to establish a connection with the back-end
provisioning service.
|
Nitido NiM 2.5 Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2009 Nitido Inc. Proprietary and Confidential. All Rights Reserved.