Package com.unboundid.ldif
Class AggregateLDIFWriterChangeRecordTranslator
java.lang.Object
com.unboundid.ldif.AggregateLDIFWriterChangeRecordTranslator
- All Implemented Interfaces:
LDIFWriterChangeRecordTranslator
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public final class AggregateLDIFWriterChangeRecordTranslator
extends Object
implements LDIFWriterChangeRecordTranslator
This class provides an implementation of an LDIF writer change record
translator that can be used to invoke multiple LDIF writer change record
translators for each record to be processed.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new aggregate LDIF writer change record translator that will invoke all of the provided translators for each record to be processed.AggregateLDIFWriterChangeRecordTranslator(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. -
Method Summary
Modifier and TypeMethodDescriptiontranslateChangeRecordToWrite(LDIFChangeRecord original) Applies some special transformation or filtering to the original change record.
-
Constructor Details
-
AggregateLDIFWriterChangeRecordTranslator
public AggregateLDIFWriterChangeRecordTranslator(@Nullable 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.- Parameters:
translators- The set of LDIF writer change record translators to be invoked for each record to be processed.
-
AggregateLDIFWriterChangeRecordTranslator
public AggregateLDIFWriterChangeRecordTranslator(@Nullable 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.- Parameters:
translators- The set of LDIF writer change record translators to be invoked for each record to be processed.
-
-
Method Details
-
translateChangeRecordToWrite
Applies some special transformation or filtering to the original change record.- Specified by:
translateChangeRecordToWritein interfaceLDIFWriterChangeRecordTranslator- Parameters:
original- The original change record that was to be written.- Returns:
- The change record that should be written. This can be the
original parameter change record, a newly-constructed change
record, or
nullto 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 theduplicate()method to create a copy of the original and make the necessary changes to that duplicate.
-