Package com.ibm.di.connector
Class ITIMAgentConnector
- java.lang.Object
-
- com.ibm.di.connector.Connector
-
- com.ibm.di.connector.ITIMAgentConnector
-
- All Implemented Interfaces:
ConnectorInterface
,VersionInfoInterface
public class ITIMAgentConnector extends Connector implements ConnectorInterface
The ITIM Agent Connector is an adapter between the TDI Connector API and the ITIM DAML JNDI package. Rather than using the built-in TDI JNDI Connector, this Connector allows the specifics of configuration to be controlled and can hide details in the JNDI setup that are irrelevant when talking to a DAML endpoint.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PARAMETER_SEARCH_BASE
-
Fields inherited from class com.ibm.di.connector.Connector
ALL_MODES, myLog, PROPERTY_MESSAGE, PROPERTY_READER, PROPERTY_WRITER
-
-
Constructor Summary
Constructors Constructor Description ITIMAgentConnector()
Constructor of the ITIM Agent Connector.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteEntry(Entry aEntry, SearchCriteria aSearch)
Deletes a JNDI Entry.Entry
findEntry(SearchCriteria aSearch)
Finds a JNDI Entry given search criteria.Entry
getNextEntry()
Retrieves the next Entry object from the search results.java.lang.String
getVersion()
Version information.void
initialize(java.lang.Object aObject)
Reads Connector parameters and creates the JNDI context.void
modEntry(Entry aEntry, SearchCriteria aSearch)
Modifies a JNDI Entry.void
modEntry(Entry aEntry, SearchCriteria aSearch, Entry aOldEntry)
Modifies a JNDI Entry.void
putEntry(Entry aEntry)
Adds the given Entry as a new JNDI Subcontext.void
selectEntries()
Performs a JNDI search operation with the search controls specified.void
terminate()
Closes the JNDI context.-
Methods inherited from class com.ibm.di.connector.Connector
addFindEntry, allModes, clearFindEntries, debug, debugMode, extractExceptionInformation, findEntry, getBoolean, getClassInstance, getConfiguration, getContext, getFindEntryCount, getFirstFindEntry, getLog, getMaxDuplicateEntries, getModes, getModes, getName, getNextClient, getNextFindEntry, getParam, getParser, getProperty, getPushbackEntry, getRawConnectorConfiguration, getRSInterface, getUI, hasConfigValue, hasParser, initParser, isDeltaSupported, isExceptionFatal, isIOException, logError, logmsg, pushback, queryOperations, queryReply, querySchema, queryTables, reconnect, reconnect, registerScriptBeans, replyEntry, setConfiguration, setContext, setCurrent, setDebugMode, setLog, setMaxDuplicateEntries, setModes, setModes, setName, setParam, setParser, setProperty, setRSInterface, terminateServer
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.di.connector.ConnectorInterface
getConfiguration, getContext, getFindEntryCount, getFirstFindEntry, getMaxDuplicateEntries, getName, getNextClient, getNextFindEntry, getParam, getPushbackEntry, getRawConnectorConfiguration, isDeltaSupported, isExceptionFatal, isIOException, pushback, queryOperations, queryReply, querySchema, reconnect, registerScriptBeans, replyEntry, setConfiguration, setContext, setCurrent, setLog, setMaxDuplicateEntries, setName, setParam, setRSInterface, terminateServer
-
-
-
-
Field Detail
-
PARAMETER_SEARCH_BASE
public static final java.lang.String PARAMETER_SEARCH_BASE
- See Also:
- Constant Field Values
-
-
Method Detail
-
initialize
public void initialize(java.lang.Object aObject) throws java.lang.Exception
Reads Connector parameters and creates the JNDI context.- Specified by:
initialize
in interfaceConnectorInterface
- Overrides:
initialize
in classConnector
- Parameters:
aObject
- - ignored- Throws:
java.lang.Exception
- if a required parameter is missing or the JNDI context initialization fails.
-
selectEntries
public void selectEntries() throws java.lang.Exception
Performs a JNDI search operation with the search controls specified.- Specified by:
selectEntries
in interfaceConnectorInterface
- Overrides:
selectEntries
in classConnector
- Throws:
java.lang.Exception
- if the search operation fails.
-
getNextEntry
public Entry getNextEntry() throws java.lang.Exception
Retrieves the next Entry object from the search results.- Specified by:
getNextEntry
in interfaceConnectorInterface
- Overrides:
getNextEntry
in classConnector
- Returns:
- the next entry or
null
if no more entries are found. - Throws:
java.lang.Exception
- if an error occurs.- See Also:
ConnectorInterface.selectEntries()
-
putEntry
public void putEntry(Entry aEntry) throws java.lang.Exception
Adds the given Entry as a new JNDI Subcontext.- Specified by:
putEntry
in interfaceConnectorInterface
- Overrides:
putEntry
in classConnector
- Parameters:
aEntry
- the entry to add- Throws:
java.lang.Exception
- if an error occurs.
-
modEntry
public void modEntry(Entry aEntry, SearchCriteria aSearch) throws java.lang.Exception
Modifies a JNDI Entry.- Specified by:
modEntry
in interfaceConnectorInterface
- Overrides:
modEntry
in classConnector
- Parameters:
aEntry
- the entry, result of the Output MappingaSearch
- the search criteria used to find the entry in the back-end server.- Throws:
java.lang.Exception
- if an error occurs.
-
modEntry
public void modEntry(Entry aEntry, SearchCriteria aSearch, Entry aOldEntry) throws java.lang.Exception
Modifies a JNDI Entry.- Specified by:
modEntry
in interfaceConnectorInterface
- Overrides:
modEntry
in classConnector
- Parameters:
aEntry
- the entry, result of the Output MappingaSearch
- the search criteria used to find the entry in the back-end server.aOldEntry
- the found entry in the back-end server.- Throws:
java.lang.Exception
- if the old entry isnull
, a distinguished name is not provided or other type of an error occurs.
-
deleteEntry
public void deleteEntry(Entry aEntry, SearchCriteria aSearch) throws java.lang.Exception
Deletes a JNDI Entry.- Specified by:
deleteEntry
in interfaceConnectorInterface
- Overrides:
deleteEntry
in classConnector
- Parameters:
aEntry
- the entry, result of the Otuput MappingaSearch
- the search criteria used to find the entry to delete.- Throws:
java.lang.Exception
- if theaEntry
parameter isnull
, the distinguished name is not provided or other type of an error occurs.
-
findEntry
public Entry findEntry(SearchCriteria aSearch) throws java.lang.Exception
Finds a JNDI Entry given search criteria.- Specified by:
findEntry
in interfaceConnectorInterface
- Overrides:
findEntry
in classConnector
- Parameters:
aSearch
- the search criteria used to find the entry.- Returns:
- the found entry object, or
null
. - Throws:
java.lang.Exception
- if an error occurs.
-
terminate
public void terminate()
Closes the JNDI context.- Specified by:
terminate
in interfaceConnectorInterface
- Overrides:
terminate
in classConnector
-
getVersion
public java.lang.String getVersion()
Version information.- Specified by:
getVersion
in interfaceVersionInfoInterface
- Returns:
- the version information.
-
-