| | |
| | | |
| | | |
| | | |
| | | import org.opends.messages.Message; |
| | | |
| | | |
| | | |
| | | /** |
| | | * This class defines a data structure that holds information about |
| | | * the result of processing an LDIF import or export plugin. |
| | |
| | | // imported/exported. |
| | | private final boolean continueEntryProcessing; |
| | | |
| | | // A message explaining why the entry was rejected. |
| | | private final Message rejectMessage; |
| | | |
| | | |
| | | |
| | | /** |
| | |
| | | */ |
| | | private LDIFPluginResult() |
| | | { |
| | | this(true, true); |
| | | this(true, true, null); |
| | | } |
| | | |
| | | |
| | |
| | | public LDIFPluginResult(boolean continuePluginProcessing, |
| | | boolean continueEntryProcessing) |
| | | { |
| | | this(continuePluginProcessing, continueEntryProcessing, null); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Creates a new pre-operation plugin result with the provided |
| | | * information. |
| | | * |
| | | * @param continuePluginProcessing Indicates whether any further |
| | | * LDIF import/export plugins |
| | | * should be invoked for the |
| | | * associated entry. |
| | | * @param continueEntryProcessing Indicates whether the |
| | | * associated entry should still |
| | | * be imported/exported. |
| | | * @param rejectMessage A message explaining why the |
| | | * entry should not be |
| | | * imported/exported. |
| | | */ |
| | | public LDIFPluginResult(boolean continuePluginProcessing, |
| | | boolean continueEntryProcessing, |
| | | Message rejectMessage) |
| | | { |
| | | this.continuePluginProcessing = continuePluginProcessing; |
| | | this.continueEntryProcessing = continueEntryProcessing; |
| | | this.rejectMessage = rejectMessage; |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | |
| | | /** |
| | | * Retrieves a message explaining why the entry should not be |
| | | * imported/exported, if one was provided. |
| | | * |
| | | * @return A message explaining why the entry should not be |
| | | * imported/exported, or {@code null} if none was provided. |
| | | */ |
| | | public Message getRejectMessage() |
| | | { |
| | | return rejectMessage; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Retrieves a string representation of this post-response plugin |
| | | * result. |
| | | * |
| | |
| | | buffer.append(continuePluginProcessing); |
| | | buffer.append(", continueEntryProcessing="); |
| | | buffer.append(continueEntryProcessing); |
| | | |
| | | if (rejectMessage != null) |
| | | { |
| | | buffer.append(", rejectMessage=\""); |
| | | buffer.append(rejectMessage); |
| | | buffer.append("\""); |
| | | } |
| | | |
| | | buffer.append(")"); |
| | | } |
| | | } |