Class ChangelogConnector

    • Field Detail

      • defaultMerge

        protected boolean defaultMerge
        A flag that tells whether the parseEntry(Entry) method should merge the parsed entry with the passed as parameter entry.
        This flag is controlled by the the value of the PARAM_MERGE_MODE parameter and set during the initialization process ( initialize(Object)).
      • onlyChanges

        protected boolean onlyChanges
        A flag that tells whether the parseEntry(Entry) method should merge the operation of the parsed entry with the operation of the passed as parameter entry.
        This flag is controlled by the the value of the PARAM_MERGE_MODE parameter and set during the initialization process ( initialize(Object)).
      • bothSeparated

        protected boolean bothSeparated
        A flag that tells whether the parseEntry(Entry) method should add the passed as parameter entry as an attribute of the parsed entry.
        This flag is controlled by the the value of the PARAM_MERGE_MODE parameter and set during the initialization process ( initialize(Object)).
      • PARAM_MERGE_MODE

        public static final java.lang.String PARAM_MERGE_MODE
        The parameter name used to control the way the parseEntry(Entry) method merges the parsed entry with the provided as a parameter entry.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ChangelogConnector

        public ChangelogConnector()
    • Method Detail

      • initialize

        public void initialize​(java.lang.Object aObject)
                        throws java.lang.Exception
        Initialize the Connector, connect to the LDAP Server
        Specified by:
        initialize in interface ConnectorInterface
        Overrides:
        initialize in class LDAPConnector
        Parameters:
        aObject - An Object sent to the initialize method, ignored.
        Throws:
        java.lang.Exception - Any Exception by the underlying methods to connect to the LDAP Server
      • parseEntry

        protected Entry parseEntry​(Entry aEntry)
                            throws java.lang.Exception
        Method for parsing and merging Changelog Entry attributes and changed attributes from the actual Directory Entry.
        Parameters:
        aEntry - the actual Directory Entry.
        Returns:
        the result of the parsing and merging operations entry.
        Throws:
        java.lang.Exception - if an error occurs.
      • querySchema

        public java.lang.Object querySchema​(java.lang.Object source)
                                     throws java.lang.Exception
        Query the schema of the LDAP server. If 'Start at' parameter is EOD return schema depending on the Merge mode parameter:
      • Merge changelog and changed data - return all 'MAY' and 'MUST' attributes defined for 'changeLogEntry' LDAP object class

      • Return only changed data - we have no idea what are the changed attributes of the changed entry so return null

      • Return both - return the 'changelog' attribute

      • If 'Start at' parameter is set to a number the LDAP Connector querySchema is called.
Specified by:
querySchema in interface ConnectorInterface
Overrides:
querySchema in class LDAPConnector
Parameters:
source - A distinguished name
Returns:
The schema
Throws:
java.lang.Exception - Any Exception thrown by underlying libraries
See Also:
Entry, Vector