| | |
| | | import org.forgerock.opendj.ldap.RDN; |
| | | import org.forgerock.opendj.ldap.requests.ModifyRequest; |
| | | import org.forgerock.opendj.ldap.schema.AttributeType; |
| | | import org.opends.admin.ads.util.ConnectionWrapper; |
| | | import org.opends.guitools.controlpanel.browser.BrowserController; |
| | | import org.opends.guitools.controlpanel.browser.ConnectionWithControls; |
| | | import org.opends.guitools.controlpanel.datamodel.BackendDescriptor; |
| | | import org.opends.guitools.controlpanel.datamodel.BaseDNDescriptor; |
| | | import org.opends.guitools.controlpanel.datamodel.CannotRenameException; |
| | |
| | | try |
| | | { |
| | | BasicNode node = (BasicNode)treePath.getLastPathComponent(); |
| | | ConnectionWrapper conn = controller.findConnectionForDisplayedEntry(node); |
| | | ConnectionWithControls conn = controller.findConnectionForDisplayedEntry(node); |
| | | useAdminCtx = controller.isConfigurationNode(node); |
| | | if (!mustRename) |
| | | { |
| | |
| | | } |
| | | }); |
| | | |
| | | conn.getConnection().modify(newModifyRequest0(oldEntry.getName(), modifications)); |
| | | conn.modify(newModifyRequest0(oldEntry.getName(), modifications)); |
| | | |
| | | SwingUtilities.invokeLater(new Runnable() |
| | | { |
| | |
| | | * @throws CannotRenameException if we cannot perform the modification. |
| | | * @throws LdapException if an error performing the modification occurs. |
| | | */ |
| | | private void modifyAndRename(ConnectionWrapper conn, final DN oldDN, |
| | | private void modifyAndRename(ConnectionWithControls conn, final DN oldDN, |
| | | org.forgerock.opendj.ldap.Entry originalEntry, |
| | | final Entry newEntry, final List<Modification> originalMods) |
| | | throws CannotRenameException, LdapException |
| | |
| | | } |
| | | }); |
| | | |
| | | conn.getConnection().modifyDN(newModifyDNRequest(oldDn, newRDN)); |
| | | conn.modifyDN(newModifyDNRequest(oldDn, newRDN)); |
| | | |
| | | final TreePath[] newPath = {null}; |
| | | |
| | |
| | | } |
| | | }); |
| | | |
| | | conn.getConnection().modify(newModifyRequest0(newEntry.getName(), originalMods)); |
| | | conn.modify(newModifyRequest0(newEntry.getName(), originalMods)); |
| | | |
| | | SwingUtilities.invokeLater(new Runnable() |
| | | { |