@ThreadSafety(level=COMPLETELY_THREADSAFE) public final class AggregateLDIFWriterEntryTranslator extends java.lang.Object implements LDIFWriterEntryTranslator
Constructor and Description |
---|
AggregateLDIFWriterEntryTranslator(java.util.Collection<? extends LDIFWriterEntryTranslator> translators)
Creates a new aggregate LDIF writer entry translator that will invoke all
of the provided translators for each entry to be processed.
|
AggregateLDIFWriterEntryTranslator(LDIFWriterEntryTranslator... translators)
Creates a new aggregate LDIF writer entry translator that will invoke all
of the provided translators for each entry to be processed.
|
Modifier and Type | Method and Description |
---|---|
Entry |
translateEntryToWrite(Entry original)
Applies some special transformation or filtering to the original Entry.
|
public AggregateLDIFWriterEntryTranslator(@Nullable LDIFWriterEntryTranslator... translators)
translators
- The set of LDIF writer entry translators to be invoked
for each entry to be processed.public AggregateLDIFWriterEntryTranslator(@Nullable java.util.Collection<? extends LDIFWriterEntryTranslator> translators)
translators
- The set of LDIF writer entry translators to be invoked
for each entry to be processed.@Nullable public Entry translateEntryToWrite(@Nullable Entry original)
translateEntryToWrite
in interface LDIFWriterEntryTranslator
original
- The original Entry that was to be written.null
to
signal that this Entry should not be written. Note, however, that
if the original entry provided as a parameter is altered, then
the change will be visible to anything that references that entry.
If you are not sure about whether changes to the original entry
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.