| | |
| | | import javax.swing.tree.TreePath; |
| | | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.opends.guitools.controlpanel.datamodel.CustomSearchResult; |
| | | import org.opends.guitools.controlpanel.task.OfflineUpdateException; |
| | | import org.opends.guitools.controlpanel.util.Utilities; |
| | |
| | | editableScroll.setVisible(false); |
| | | for (String attrName : sr.getAttributeNames()) |
| | | { |
| | | List<Object> values = sr.getAttributeValues(attrName); |
| | | for (Object o : values) |
| | | for (ByteString v : sr.getAttributeValues(attrName)) |
| | | { |
| | | sb.append("\n").append(getLDIFLine(attrName, o)); |
| | | sb.append("\n").append(getLDIFLine(attrName, v)); |
| | | } |
| | | } |
| | | final Point p1 = sameEntry ? |
| | |
| | | { |
| | | if (!schemaReadOnlyAttributesLowerCase.contains(attrName.toLowerCase())) |
| | | { |
| | | List<Object> values = sr.getAttributeValues(attrName); |
| | | for (Object o : values) |
| | | for (ByteString v : sr.getAttributeValues(attrName)) |
| | | { |
| | | sb.append("\n").append(getLDIFLine(attrName, o)); |
| | | sb.append("\n").append(getLDIFLine(attrName, v)); |
| | | } |
| | | } |
| | | } |
| | |
| | | sb = new StringBuilder(); |
| | | for (String attrName : schemaReadOnlyAttributes) |
| | | { |
| | | List<Object> values = sr.getAttributeValues(attrName); |
| | | for (Object o : values) |
| | | for (ByteString v : sr.getAttributeValues(attrName)) |
| | | { |
| | | if (oneLineAdded) |
| | | { |
| | | sb.append("\n"); |
| | | } |
| | | oneLineAdded = true; |
| | | sb.append(getLDIFLine(attrName, o)); |
| | | sb.append(getLDIFLine(attrName, v)); |
| | | } |
| | | } |
| | | final Point p2 = sameEntry ? |