|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.connector.Connector
com.ibm.di.connector.LDAPConnector
com.ibm.di.connector.ChangelogConnector
public class ChangelogConnector
ChangelogConnector class combines the similar changelog behavior of IDSChangelogConnector, NetscapeChangelogConnector and z/OS Changelog Connector classes. It provides tree different ways to handle merging between original and updated data.
Field Summary | |
---|---|
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. |
protected boolean |
defaultMerge
A flag that tells whether the parseEntry(Entry) method should
merge the parsed entry with the passed as parameter entry. |
protected LDIFParser |
mLdifParser
The LDIFParser object used for parsing the entries. |
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. |
static 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. |
Fields inherited from class com.ibm.di.connector.Connector |
---|
ALL_MODES, myLog, PROPERTY_MESSAGE, PROPERTY_READER, PROPERTY_WRITER |
Constructor Summary | |
---|---|
ChangelogConnector()
|
Method Summary | |
---|---|
String |
getVersion()
Version information. |
void |
initialize(Object aObject)
Initialize the Connector, connect to the LDAP Server |
protected Entry |
parseEntry(Entry aEntry)
Method for parsing and merging Changelog Entry attributes and changed attributes from the actual Directory Entry. |
Object |
querySchema(Object source)
Query the schema of the LDAP server. |
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, isIOException, pushback, queryOperations, queryReply, reconnect, registerScriptBeans, replyEntry, setConfiguration, setContext, setCurrent, setLog, setMaxDuplicateEntries, setName, setParam, setRSInterface, terminateServer |
Field Detail |
---|
protected boolean defaultMerge
parseEntry(Entry)
method should
merge the parsed entry with the passed as parameter entry. PARAM_MERGE_MODE
parameter and set during the initialization process (
initialize(Object)
).
protected boolean onlyChanges
parseEntry(Entry)
method should
merge the operation of the parsed entry with the operation of the passed
as parameter entry. PARAM_MERGE_MODE
parameter and set during the initialization process (
initialize(Object)
).
protected boolean bothSeparated
parseEntry(Entry)
method should
add the passed as parameter entry as an attribute of the parsed entry. PARAM_MERGE_MODE
parameter and set during the initialization process (
initialize(Object)
).
protected LDIFParser mLdifParser
LDIFParser
object used for parsing the entries.
public static final String PARAM_MERGE_MODE
parseEntry(Entry)
method merges the parsed entry with the provided as a parameter entry.
Constructor Detail |
---|
public ChangelogConnector()
Method Detail |
---|
public void initialize(Object aObject) throws Exception
initialize
in interface ConnectorInterface
initialize
in class LDAPConnector
aObject
- An Object sent to the initialize method, ignored.
Exception
- Any Exception by the underlying methods to connect to the
LDAP Serverprotected Entry parseEntry(Entry aEntry) throws Exception
aEntry
- the actual Directory Entry.
Exception
- if an error occurs.public Object querySchema(Object source) throws Exception
null
querySchema
in interface ConnectorInterface
querySchema
in class LDAPConnector
source
- A distinguished name
Exception
- Any Exception thrown by underlying librariesEntry
,
Vector
public String getVersion()
getVersion
in interface VersionInfoInterface
getVersion
in class LDAPConnector
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |