|
|
|||||||||
| 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
com.nitido.nimx.services.simbackend.ProvisionServiceImpl
public class ProvisionServiceImpl
This class implements a simulator for the ProvionService to provision entities in memory.
When this service is started, there are no users created. The application can only logs in with the administrator's credential (type=admin, id=admin, password=password).
| Field Summary | |
|---|---|
static java.lang.String |
ACTION_DEPROVISION
|
static java.lang.String |
ACTION_PROVISION
|
static java.lang.String |
KEY_TIMEZONE
|
| Constructor Summary | |
|---|---|
ProvisionServiceImpl(NiMKernelServiceVisa visa)
This class constructor is used by NiMKernel to instantiate a new ProvisionService. |
|
| Method Summary | |
|---|---|
void |
changeProvisionCredential(Credential oldCred,
Credential newCred)
Change the provision credential. |
void |
deprovisionEntity(Credential targetCred,
Entity adminEntity)
This method will de-provision the entity associated to the given target credential. |
protected void |
init(NiMKernel kernel,
ConfigurationService confService)
This method is used by the NiMKernel to initialize the ProvisionService. |
protected boolean |
isProvisioned(Credential targetCred)
This method is used to verify if the given credential has already been provisioned. |
void |
provisionEntity(EntityProvisionDescriptor descriptor,
Entity adminEntity)
This method is used to provision a new entity and stored in memory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ACTION_PROVISION
public static final java.lang.String ACTION_DEPROVISION
public static final java.lang.String KEY_TIMEZONE
| Constructor Detail |
|---|
public ProvisionServiceImpl(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 void init(NiMKernel kernel,
ConfigurationService confService)
throws InitializationFailedException,
NiMException
init in class ProvisionServicekernel - Reference to the kernel that instantiated this service.confService - Reference to the ConfigurationService
InitializationFailedException - This exception is never thrown by this service
implementation.
NiMException - This exception is never thrown by this service
implementation.
public void provisionEntity(EntityProvisionDescriptor descriptor,
Entity adminEntity)
throws java.lang.IllegalArgumentException,
EntityProvisionException,
PermissionDeniedException,
NiMException
provisionEntity in class ProvisionServicedescriptor - 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 other entities.
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 Entity does not have permission to perform the
required action.
NiMException - If unable to establish a connection with the back-end
provisioning service.
public void deprovisionEntity(Credential targetCred,
Entity adminEntity)
throws java.lang.IllegalArgumentException,
PermissionDeniedException,
NiMException
ProvisionService
deprovisionEntity in class ProvisionServicetargetCred - 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.
protected boolean isProvisioned(Credential targetCred)
throws java.lang.IllegalArgumentException,
NiMException
isProvisioned in class ProvisionServicetargetCred - The credential of an entity
java.lang.IllegalArgumentException - If any of the given arguments are null.
NiMException - If unable to establish a connection with the back-end
provisioning service.
public void changeProvisionCredential(Credential oldCred,
Credential newCred)
throws IllegalCredentialException,
NiMException
ProvisionService
changeProvisionCredential in class ProvisionServiceoldCred - The original credential.newCred - The new credential.
IllegalCredentialException - If the credentials are incorrect.
NiMException - If some other unexpected error has occured.
|
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.