|
![]() |
|||||||||
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.EntityService
com.nitido.nimx.services.entity.generic.EntityServiceImpl
public class EntityServiceImpl
A generic implementation of the EntityService. It expects the following configuration has setting for the following keys:
Constant Name | Value | Description |
CONF_KEY_CHANGE_PWD_DATACONTROL | A string of "true" or "false" | Tells whether this EntityService will call the DataControl to change the password when a user has asked for changing the password. You may need to set this to "true" if the DataControlService is not using the same backend used by AuthenticationService. |
CONF_KEY_CHANGE_PWD_ENTITLEMENT | A string of "true" or "false" | Tells whether this EntityService will call the DataControl to change the password when a user has asked for changing the password. You may need to set this to "true" if the EntitlementService is not using the same backend used by AuthenticationService. |
CONF_KEY_CHANGE_PWD_PROVISION | A string of "true" or "false" | Tells whether this EntityService will call the DataControl to change the password when a user has asked for changing the password. You may need to set this to "true" if the ProvisionService is not using the same backend used by AuthenticationService. |
CONF_KEY_CONTAINER_ENTITY | A comma separated string | This contains a list of credential identifying groups that this EntityService will create a ContainerEntity instead of User object when getEntity() is called. |
Field Summary | |
---|---|
static java.lang.String |
CONF_KEY_CHANGE_PWD_AUTHENTICATION
Configuration key for the flag to indicate whether we should change the Authentication credential when the application changes the Entity's identifying credential. |
static java.lang.String |
CONF_KEY_CHANGE_PWD_DATACONTROL
Configuration key for the flag to indicate whether we should change the DataControl credential when the application changes the Entity's identifying credential. |
static java.lang.String |
CONF_KEY_CHANGE_PWD_ENTITLEMENT
Configuration key for the flag to indicate whether we should change the Entitlement credential when the application changes the Entity's identifying credential. |
static java.lang.String |
CONF_KEY_CHANGE_PWD_PROVISION
Configuration key for the flag to indicate whether we should change the Provision credential when the application changes the Entity's identifying credential. |
static java.lang.String |
CONF_KEY_CONTAINER_ENTITY
Configuration key for the "comma separated list" of the identifying groups that the getEntity( Credential ) method should return a ContainerEntity object instead of the regular User object. |
Constructor Summary | |
---|---|
EntityServiceImpl(NiMKernelServiceVisa visa)
This class constructor is used by NiMKernel to instantiate a new EntityService |
Method Summary | |
---|---|
void |
changeIdentifyingCredential(Entity entity,
Credential newCred)
This method is used to change the identifying credential of an entity (this is usually called when changing the user's password). |
Entity |
getEntity(Credential credential)
This method returns an instance of an Entity associated to the given credential. |
protected void |
init(NiMKernel kernel,
ConfigurationService confService)
This method is used to initialize this implementation of the EntityService. |
void |
releaseEntity(Entity entity)
This method signals the EntityService implementation that the specified Entity is "dying". |
Methods inherited from class com.nitido.nim.EntityService |
---|
changeDataControlCredential, setEntityIdentifyingCredential |
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 CONF_KEY_CONTAINER_ENTITY
public static final java.lang.String CONF_KEY_CHANGE_PWD_AUTHENTICATION
public static final java.lang.String CONF_KEY_CHANGE_PWD_DATACONTROL
public static final java.lang.String CONF_KEY_CHANGE_PWD_ENTITLEMENT
public static final java.lang.String CONF_KEY_CHANGE_PWD_PROVISION
Constructor Detail |
---|
public EntityServiceImpl(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 EntityService
kernel
- Reference to the kernel that instantitated this service.confService
- Reference to the ConfigurationService. This service
implementation expects the following initialization
parameters:
InitializationFailedException
- If unable to initialize the EntityService.
NiMException
- This exception is never thrown by this service
implementation.public Entity getEntity(Credential credential) throws AuthenticationFailedException, NiMException
getEntity
in class EntityService
credential
- The credential that uniquely identifies the requested
Entity
AuthenticationFailedException
- If unable to authenticate the given credential agains the
kernel AuthenticationService..
IllegalCredentialException
- If the given credential is null or determined to be invalid
by the underlying implementations of Authentication Service or
the DataControl Service.
NiMException
- If unable to connect to the authentication or DataControl
back-end servers.public void changeIdentifyingCredential(Entity entity, Credential newCred) throws AuthenticationFailedException, IllegalCredentialException, DataControlException, NiMException
changeIdentifyingCredential
in class EntityService
entity
- The entity for which the credential is replaced.newCred
- The new identifying credential for the entity.
AuthenticationFailedException
- If unable to authenticate the identifying credential of the
entity.
IllegalCredentialException
- If the given credential is not valid
DataControlException
- If unable to bind the DataControl to the entity.
NiMException
- If unable to establish a connection to the authentication
and data control back-end servers or if the given entity
does not currently have an identifying credential associated
to it.public void releaseEntity(Entity entity)
EntityService
releaseEntity
in class EntityService
entity
- The entity object that is marked as "dying".
|
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.