Nitido Inc.

com.nitido.nimx.services.simbackend
Class DataControlServiceImpl

java.lang.Object
  extended by com.nitido.nim.NiMKernelService
      extended by com.nitido.nim.DataControlService
          extended by com.nitido.nimx.services.simbackend.DataControlServiceImpl
All Implemented Interfaces:
CredentialConstants, NiMConstants

public class DataControlServiceImpl
extends DataControlService
implements CredentialConstants

This implementation of DataControlService simulates accessing and modifying a backend store with configurable list of user profile attributes to be stored in the backend store. In other words, it simulates the profile map implementation of DataControlService without the real connection.


Field Summary
static java.lang.String CONF_KEY_ALLOW_ALL
          The configuration key for indicating if the simulator backend will allow all login and binding without being provisioned before.
static java.lang.String CONF_KEY_PREFIX_ATTRIBUTEMAP
          The configuration key prefix for the mapping settings from a user space key to a LDAP attribute name.
static java.lang.String CONF_KEY_PREFIX_NUGGETSETTING
          The key prefix of the nugget settings information.
static java.lang.String CONF_KEY_PREFIX_NUGGETTYPE
          The key prefix of the nugget class information.
static java.lang.String CONF_KEY_PREFIX_TYPEMAP
          The configuration key prefix for the mapping settings from a user space key to a LDAP attribute name.
static int LEN_CONF_KEY_PREFIX_TYPEMAP
          The length of the string CONF_KEY_PREFIX_TYPEMAP.
 
Fields inherited from interface com.nitido.nim.NiMConstants
ACTION_CREATE_NUGGET, ACTION_CREATE_NUGGET_BY_NAME, ACTION_CRED_SPACE_ADD, ACTION_CRED_SPACE_GET_KEYS, ACTION_CRED_SPACE_GET_KEYS_START_WITH, ACTION_CRED_SPACE_GET_VALUE, ACTION_CRED_SPACE_GET_VALUES, ACTION_CRED_SPACE_MODIFY, ACTION_CRED_SPACE_REMOVE_VALUE, ACTION_CRED_SPACE_REMOVE_VALUES, ACTION_CRED_SPACE_REPLACE, ACTION_DEPROVISION_ENTITY, ACTION_ENTITY_CHANGE_CRED, ACTION_LOG_EVENT, ACTION_PROVISION_ENTITY, ACTION_USER_SPACE_ADD, ACTION_USER_SPACE_GET_KEYS, ACTION_USER_SPACE_GET_KEYS_START_WITH, ACTION_USER_SPACE_GET_VALUE, ACTION_USER_SPACE_GET_VALUES, ACTION_USER_SPACE_MODIFY, ACTION_USER_SPACE_REMOVE_VALUE, ACTION_USER_SPACE_REMOVE_VALUES, ACTION_USER_SPACE_REPLACE, CONF_PREFIX_SECURITY_ACCESS, CONF_PREFIX_SECURITY_ALLOW, CONF_PREFIX_SECURITY_ASSIGN, CONF_PREFIX_SECURITY_RESOURCE, PARAM_CHANGE_CRED, PARAM_DEPROVISION_CREDENTIAL, PARAM_EVENT_NAME, PARAM_MODIFIER_CONTAINER, PARAM_NUGGET_CREATE_CRED, PARAM_NUGGET_NAME, PARAM_NUGGET_SETTINGS, PARAM_NUGGET_TYPE, PARAM_PROVISION_DESCRIPTOR, PARAM_SPACE_KEY, PARAM_SPACE_KEYS_START_WITH, PARAM_SPACE_VALUE, PREFIX_ACCESS_CLASS_IN_PACKAGE
 
Fields inherited from interface com.nitido.nim.CredentialConstants
CRED_ADMIN, CRED_CONTAINER, CRED_HELPDESK, CRED_SYSTEM, CRED_USER, KEY_PASSWORD
 
Constructor Summary
DataControlServiceImpl(NiMKernelServiceVisa visa)
          This class constructor is used by NiMKernel to instantiate a new DataControlService.
 
Method Summary
 DataControl getDataControl(Credential credential)
          This method is a factory method for DataControl objects.
protected  void init(NiMKernel kernel, ConfigurationService confService)
          This method is used by the kernel to initialize the DataControlService.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONF_KEY_ALLOW_ALL

public static final java.lang.String CONF_KEY_ALLOW_ALL
The configuration key for indicating if the simulator backend will allow all login and binding without being provisioned before.

See Also:
Constant Field Values

CONF_KEY_PREFIX_ATTRIBUTEMAP

public static final java.lang.String CONF_KEY_PREFIX_ATTRIBUTEMAP
The configuration key prefix for the mapping settings from a user space key to a LDAP attribute name.

See Also:
Constant Field Values

CONF_KEY_PREFIX_NUGGETTYPE

public static final java.lang.String CONF_KEY_PREFIX_NUGGETTYPE
The key prefix of the nugget class information.

See Also:
Constant Field Values

CONF_KEY_PREFIX_NUGGETSETTING

public static final java.lang.String CONF_KEY_PREFIX_NUGGETSETTING
The key prefix of the nugget settings information.

See Also:
Constant Field Values

CONF_KEY_PREFIX_TYPEMAP

public static final java.lang.String CONF_KEY_PREFIX_TYPEMAP
The configuration key prefix for the mapping settings from a user space key to a LDAP attribute name.

See Also:
Constant Field Values

LEN_CONF_KEY_PREFIX_TYPEMAP

public static final int LEN_CONF_KEY_PREFIX_TYPEMAP
The length of the string CONF_KEY_PREFIX_TYPEMAP.

Constructor Detail

DataControlServiceImpl

public DataControlServiceImpl(NiMKernelServiceVisa visa)
This class constructor is used by NiMKernel to instantiate a new DataControlService.

Parameters:
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

init

protected void init(NiMKernel kernel,
                    ConfigurationService confService)
             throws InitializationFailedException,
                    NiMException
This method is used by the kernel to initialize the DataControlService.

Specified by:
init in class DataControlService
Parameters:
kernel - Reference to the kernel that instantiated this service.
confService - A reference to the ConfigurationService. This service expects the following configurations:
  • The attribute mapping. It is a mapping from the key of the user space to the attribute name in the underlying data store.
Throws:
InitializationFailedException - If unable to initialize the DataControlService. This exception is thrown by this service implementation if any of the expected settings are not available.
NiMException - This exception is never thrown by this service implementation

getDataControl

public DataControl getDataControl(Credential credential)
                           throws IllegalCredentialException,
                                  DataControlException
Description copied from class: DataControlService
This method is a factory method for DataControl objects.

Specified by:
getDataControl in class DataControlService
Parameters:
credential - The credential used by the DataControl to access the back-end data.
Throws:
IllegalCredentialException - If the given credential is not valid.
DataControlException - If the DataControl service is unable to establish a connection with the back-end data services.

Nitido NiM 2.5 Java API

These JavaDoc pages are generated for release/nim_2_5-2.5.44

Copyright © 1999-2009 Nitido Inc.    Proprietary and Confidential.    All Rights Reserved.