Nitido Inc.

com.nitido.nimx.services.datacontrol.cachedmap
Class DataControlServiceImpl

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

public class DataControlServiceImpl
extends DataControlService
implements CredentialConstants

This implementation of DataControlService is a factory for cached-mapping DataControls that connected to a backend LDAP server through connection pool.

Main Features

Detail Description

When the application attempts to get a NiM Entity object for a specific object, NiM Kernel will invoke the DataControlService to generate an instance of the DataControl object to provide the data access logic for the specified Entity.

Depending on the configuration, this implementation generates the LDAP login DN in the following steps:

  1. Assuming the Entity is logging in with a credential of the type "MyCredType". If the configuration "com.nitido.nimx.services.datacontrol.cachedmap.cred.dntokenkey.MyCredType" existis, the login DN will be fetched from the credential token key specified by this configuration.
  2. If the previous configuration is not specified, this implementation will uses the credential's identifying entity ID and the configuration "com.nitido.nimx.services.datacontrol.cachedmap.cred.dnprefix.MyCredType" and the configuration "com.nitido.nimx.services.datacontrol.cachedmap.cred.dnpostfix.MyCredType" to generate the login DN for the backend LDAP.
  3. If the previous step failed because one of the configurations is missing, an IllegalCredentialException will be thrown.

This DataControl also supports prefetching and batch fetching if the configuration "com.nitido.nimx.services.datacontrol.cachedmap.prefetch" is set to "true". Configuration Settings

This service requires the following configurations: