Class 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 Detail

      • PARAMETER_SEARCH_BASE

        public static final java.lang.String PARAMETER_SEARCH_BASE
        See Also:
        Constant Field Values
    • Constructor Detail

      • ITIMAgentConnector

        public ITIMAgentConnector()
        Constructor of the ITIM Agent Connector.
    • 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 interface ConnectorInterface
        Overrides:
        initialize in class Connector
        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 interface ConnectorInterface
        Overrides:
        selectEntries in class Connector
        Throws:
        java.lang.Exception - if the search operation fails.
      • putEntry

        public void putEntry​(Entry aEntry)
                      throws java.lang.Exception
        Adds the given Entry as a new JNDI Subcontext.
        Specified by:
        putEntry in interface ConnectorInterface
        Overrides:
        putEntry in class Connector
        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 interface ConnectorInterface
        Overrides:
        modEntry in class Connector
        Parameters:
        aEntry - the entry, result of the Output Mapping
        aSearch - 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 interface ConnectorInterface
        Overrides:
        modEntry in class Connector
        Parameters:
        aEntry - the entry, result of the Output Mapping
        aSearch - 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 is null, 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 interface ConnectorInterface
        Overrides:
        deleteEntry in class Connector
        Parameters:
        aEntry - the entry, result of the Otuput Mapping
        aSearch - the search criteria used to find the entry to delete.
        Throws:
        java.lang.Exception - if the aEntry parameter is null, 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 interface ConnectorInterface
        Overrides:
        findEntry in class Connector
        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.
      • getVersion

        public java.lang.String getVersion()
        Version information.
        Specified by:
        getVersion in interface VersionInfoInterface
        Returns:
        the version information.