@ThreadSafety(level=COMPLETELY_THREADSAFE) public final class AggregateLDIFWriterChangeRecordTranslator extends java.lang.Object implements LDIFWriterChangeRecordTranslator
Constructor and Description |
---|
AggregateLDIFWriterChangeRecordTranslator(java.util.Collection<? extends LDIFWriterChangeRecordTranslator> translators)
Creates a new aggregate LDIF writer change record translator that will
invoke all of the provided translators for each record to be processed.
|
AggregateLDIFWriterChangeRecordTranslator(LDIFWriterChangeRecordTranslator... translators)
Creates a new aggregate LDIF writer change record translator that will
invoke all of the provided translators for each record to be processed.
|
Modifier and Type | Method and Description |
---|---|
LDIFChangeRecord |
translateChangeRecordToWrite(LDIFChangeRecord original)
Applies some special transformation or filtering to the original change
record.
|
public AggregateLDIFWriterChangeRecordTranslator(@Nullable LDIFWriterChangeRecordTranslator... translators)
translators
- The set of LDIF writer change record translators to be
invoked for each record to be processed.public AggregateLDIFWriterChangeRecordTranslator(@Nullable java.util.Collection<? extends LDIFWriterChangeRecordTranslator> translators)
translators
- The set of LDIF writer change record translators to be
invoked for each record to be processed.@Nullable public LDIFChangeRecord translateChangeRecordToWrite(@NotNull LDIFChangeRecord original)
translateChangeRecordToWrite
in interface LDIFWriterChangeRecordTranslator
original
- The original change record that was to be written.null
to signal that the change record should
not be written. Note, however, that if the original record
provided as a parameter is altered, then the change will be
visible to anything that references that change record. If you
are not sure about whether changes to the original change record
are acceptable, it is recommended that you use the
duplicate()
method to create a copy of the original and
make the necessary changes to that duplicate.