| | |
| | | import org.opends.guitools.controlpanel.datamodel.BaseDNDescriptor; |
| | | import org.opends.guitools.controlpanel.datamodel.CannotRenameException; |
| | | import org.opends.guitools.controlpanel.datamodel.ControlPanelInfo; |
| | | import org.opends.guitools.controlpanel.datamodel.CustomSearchResult; |
| | | import org.opends.guitools.controlpanel.ui.ColorAndFontConstants; |
| | | import org.opends.guitools.controlpanel.ui.ProgressDialog; |
| | | import org.opends.guitools.controlpanel.ui.StatusGenericPanel; |
| | |
| | | private Set<String> backendSet; |
| | | private boolean mustRename; |
| | | private boolean hasModifications; |
| | | private CustomSearchResult oldEntry; |
| | | private org.forgerock.opendj.ldap.Entry oldEntry; |
| | | private DN oldDn; |
| | | private ArrayList<ModificationItem> modifications; |
| | | private ModificationItem passwordModification; |
| | |
| | | * want to modify. |
| | | */ |
| | | public ModifyEntryTask(ControlPanelInfo info, ProgressDialog dlg, |
| | | Entry newEntry, CustomSearchResult oldEntry, |
| | | Entry newEntry, org.forgerock.opendj.ldap.Entry oldEntry, |
| | | BrowserController controller, TreePath path) |
| | | { |
| | | super(info, dlg); |
| | |
| | | * @throws NamingException if an error performing the modification occurs. |
| | | */ |
| | | private void modifyAndRename(ConnectionWrapper conn, final DN oldDN, |
| | | CustomSearchResult originalEntry, final Entry newEntry, |
| | | final ArrayList<ModificationItem> originalMods) |
| | | throws CannotRenameException, NamingException |
| | | org.forgerock.opendj.ldap.Entry originalEntry, |
| | | final Entry newEntry, final ArrayList<ModificationItem> originalMods) |
| | | throws CannotRenameException, NamingException |
| | | { |
| | | RDN oldRDN = oldDN.rdn(); |
| | | RDN newRDN = newEntry.getName().rdn(); |
| | |
| | | return false; |
| | | } |
| | | |
| | | private boolean entryContainsRdnTypes(CustomSearchResult entry, RDN rdn) |
| | | private boolean entryContainsRdnTypes(org.forgerock.opendj.ldap.Entry entry, RDN rdn) |
| | | { |
| | | for (AVA ava : rdn) |
| | | { |
| | |
| | | * @return the modifications to apply between two entries. |
| | | */ |
| | | public static ArrayList<ModificationItem> getModifications(Entry newEntry, |
| | | CustomSearchResult oldEntry, ControlPanelInfo info) { |
| | | org.forgerock.opendj.ldap.Entry oldEntry, ControlPanelInfo info) { |
| | | ArrayList<ModificationItem> modifications = new ArrayList<>(); |
| | | Schema schema = info.getServerDescriptor().getSchema(); |
| | | |