public interface RejectedChangeRecordListener
By default the RejectedChangeRecordListener.FAIL_FAST
listener is used.
Modifier and Type | Field and Description |
---|---|
static RejectedChangeRecordListener |
FAIL_FAST
A handler which terminates processing by throwing a
DecodeException as soon as a change is rejected. |
static RejectedChangeRecordListener |
OVERWRITE
The default handler which ignores changes applied to missing entries and
tolerates duplicate entries by overwriting the existing entry with the
new entry.
|
Modifier and Type | Method and Description |
---|---|
Entry |
handleDuplicateEntry(AddRequest change,
Entry existingEntry)
Invoked when an attempt was made to add an entry which already exists.
|
Entry |
handleDuplicateEntry(ModifyDnRequest change,
Entry existingEntry,
Entry renamedEntry)
Invoked when an attempt was made to rename an entry which already exists.
|
void |
handleRejectedChangeRecord(AddRequest change,
org.forgerock.i18n.LocalizableMessage reason)
Invoked when an attempt to add an entry was rejected.
|
void |
handleRejectedChangeRecord(DeleteRequest change,
org.forgerock.i18n.LocalizableMessage reason)
Invoked when an attempt to delete an entry was rejected.
|
void |
handleRejectedChangeRecord(ModifyDnRequest change,
org.forgerock.i18n.LocalizableMessage reason)
Invoked when an attempt to rename an entry was rejected.
|
void |
handleRejectedChangeRecord(ModifyRequest change,
org.forgerock.i18n.LocalizableMessage reason)
Invoked when an attempt to modify an entry was rejected.
|
static final RejectedChangeRecordListener FAIL_FAST
DecodeException
as soon as a change is rejected.static final RejectedChangeRecordListener OVERWRITE
Entry handleDuplicateEntry(AddRequest change, Entry existingEntry) throws DecodeException
change
- The conflicting add request.existingEntry
- The pre-existing entry.DecodeException
- If processing should terminate.Entry handleDuplicateEntry(ModifyDnRequest change, Entry existingEntry, Entry renamedEntry) throws DecodeException
change
- The conflicting add request.existingEntry
- The pre-existing entry.renamedEntry
- The renamed entry.DecodeException
- If processing should terminate.void handleRejectedChangeRecord(AddRequest change, org.forgerock.i18n.LocalizableMessage reason) throws DecodeException
RejectedChangeRecordListener.handleDuplicateEntry(AddRequest, Entry)
.change
- The rejected add request.reason
- The reason why the record was rejected.DecodeException
- If processing should terminate.void handleRejectedChangeRecord(DeleteRequest change, org.forgerock.i18n.LocalizableMessage reason) throws DecodeException
change
- The rejected delete request.reason
- The reason why the record was rejected.DecodeException
- If processing should terminate.void handleRejectedChangeRecord(ModifyRequest change, org.forgerock.i18n.LocalizableMessage reason) throws DecodeException
change
- The rejected modify request.reason
- The reason why the record was rejected.DecodeException
- If processing should terminate.void handleRejectedChangeRecord(ModifyDnRequest change, org.forgerock.i18n.LocalizableMessage reason) throws DecodeException
RejectedChangeRecordListener.handleDuplicateEntry(ModifyDnRequest, Entry, Entry)
.change
- The rejected modify DN request.reason
- The reason why the record was rejected.DecodeException
- If processing should terminate.Copyright © 2010-2020, ForgeRock All Rights Reserved.