| | |
| | | import org.opends.server.api.Backend; |
| | | import org.opends.server.api.EntryCache; |
| | | import org.opends.server.api.ClientConnection; |
| | | import org.opends.server.api.plugin.SubordinateModifyDNPluginResult; |
| | | import org.opends.server.api.plugin.PluginResult; |
| | | import org.opends.server.core.AddOperation; |
| | | import org.opends.server.core.DeleteOperation; |
| | | import org.opends.server.core.DirectoryServer; |
| | |
| | | * @throws org.opends.server.types.DirectoryException |
| | | * If a problem occurs while trying to perform |
| | | * the rename. |
| | | * @throws org.opends.server.types.CancelledOperationException |
| | | * @throws org.opends.server.types.CanceledOperationException |
| | | * If this backend noticed and reacted |
| | | * to a request to cancel or abandon the |
| | | * modify DN operation. |
| | |
| | | public void renameEntry(DN currentDN, Entry entry, |
| | | ModifyDNOperation modifyDNOperation) |
| | | throws DatabaseException, JebException, DirectoryException, |
| | | CancelledOperationException |
| | | { |
| | | CanceledOperationException { |
| | | TransactedOperation operation = |
| | | new RenameEntryTransaction(currentDN, entry, modifyDNOperation); |
| | | |
| | |
| | | DirectoryServer.getPluginConfigManager(); |
| | | List<Modification> modifications = |
| | | Collections.unmodifiableList(new ArrayList<Modification>(0)); |
| | | SubordinateModifyDNPluginResult pluginResult = |
| | | PluginResult.SubordinateModifyDN pluginResult = |
| | | pluginManager.invokeSubordinateModifyDNPlugins( |
| | | modifyDNOperation, oldEntry, newEntry, modifications); |
| | | |
| | | if (pluginResult.connectionTerminated() || |
| | | pluginResult.abortModifyDNOperation()) |
| | | if (!pluginResult.continueProcessing()) |
| | | { |
| | | Message message = ERR_JEB_MODIFYDN_ABORTED_BY_SUBORDINATE_PLUGIN.get( |
| | | oldDN.toString(), newDN.toString()); |
| | |
| | | DirectoryServer.getPluginConfigManager(); |
| | | List<Modification> modifications = |
| | | Collections.unmodifiableList(new ArrayList<Modification>(0)); |
| | | SubordinateModifyDNPluginResult pluginResult = |
| | | PluginResult.SubordinateModifyDN pluginResult = |
| | | pluginManager.invokeSubordinateModifyDNPlugins( |
| | | modifyDNOperation, oldEntry, newEntry, modifications); |
| | | |
| | | if (pluginResult.connectionTerminated() || |
| | | pluginResult.abortModifyDNOperation()) |
| | | if (!pluginResult.continueProcessing()) |
| | | { |
| | | Message message = ERR_JEB_MODIFYDN_ABORTED_BY_SUBORDINATE_PLUGIN.get( |
| | | oldDN.toString(), newDN.toString()); |