| | |
| | | if (oldDN.size() > 0) |
| | | { |
| | | RDN rdn = oldDN.rdn(); |
| | | List<AttributeType> attributeTypes = new ArrayList<AttributeType>(); |
| | | List<String> attributeNames = new ArrayList<String>(); |
| | | List<ByteString> attributeValues = new ArrayList<ByteString>(); |
| | | List<AttributeType> attributeTypes = new ArrayList<>(); |
| | | List<String> attributeNames = new ArrayList<>(); |
| | | List<ByteString> attributeValues = new ArrayList<>(); |
| | | for (int i=0; i<rdn.getNumValues(); i++) |
| | | { |
| | | String attrName = rdn.getAttributeName(i); |
| | |
| | | |
| | | private Set<String> getDisplayedStringValues(String attrName) |
| | | { |
| | | Set<String> values = new LinkedHashSet<String>(); |
| | | Set<String> values = new LinkedHashSet<>(); |
| | | for (int i=0; i<table.getRowCount(); i++) |
| | | { |
| | | if (attrName.equalsIgnoreCase((String)table.getValueAt(i, 0))) |
| | |
| | | implements Comparator<AttributeValuePair> |
| | | { |
| | | private static final long serialVersionUID = -1240282431326505113L; |
| | | private ArrayList<AttributeValuePair> dataArray = |
| | | new ArrayList<AttributeValuePair>(); |
| | | private SortedSet<AttributeValuePair> allSortedValues = |
| | | new TreeSet<AttributeValuePair>(this); |
| | | private Set<String> requiredAttrs = new HashSet<String>(); |
| | | private ArrayList<AttributeValuePair> dataArray = new ArrayList<>(); |
| | | private SortedSet<AttributeValuePair> allSortedValues = new TreeSet<>(this); |
| | | private Set<String> requiredAttrs = new HashSet<>(); |
| | | private final String[] COLUMN_NAMES = new String[] { |
| | | getHeader(LocalizableMessage.raw("Attribute"), 40), |
| | | getHeader(LocalizableMessage.raw("Value", 40))}; |
| | |
| | | { |
| | | allSortedValues.clear(); |
| | | requiredAttrs.clear(); |
| | | List<String> addedAttrs = new ArrayList<String>(); |
| | | List<String> addedAttrs = new ArrayList<>(); |
| | | Schema schema = getInfo().getServerDescriptor().getSchema(); |
| | | List<Object> ocs = null; |
| | | for (String attrName : searchResult.getAttributeNames()) |
| | |
| | | */ |
| | | public List<Object> getValues(String attrName) |
| | | { |
| | | List<Object> values = new ArrayList<Object>(); |
| | | List<Object> values = new ArrayList<>(); |
| | | for (AttributeValuePair valuePair : dataArray) |
| | | { |
| | | if (valuePair.attrName.equalsIgnoreCase(attrName) |
| | |
| | | Schema schema = getInfo().getServerDescriptor().getSchema(); |
| | | if (schema != null) |
| | | { |
| | | ArrayList<String> attributes = new ArrayList<String>(); |
| | | ArrayList<String> ocs = new ArrayList<String>(); |
| | | ArrayList<String> attributes = new ArrayList<>(); |
| | | ArrayList<String> ocs = new ArrayList<>(); |
| | | if (newValue.getStructural() != null) |
| | | { |
| | | ocs.add(newValue.getStructural().toLowerCase()); |