| | |
| | | } |
| | | } |
| | | |
| | | AttributeValue attributeValue = AttributeValues.create(attrType, value); |
| | | ByteString attributeValue = value; |
| | | final Map<AttributeType, List<AttributeBuilder>> attrBuilders; |
| | | if (attrType.isOperational()) |
| | | { |
| | |
| | | colonPos, attrName); |
| | | |
| | | AttributeBuilder builder = new AttributeBuilder(attribute, true); |
| | | AttributeType attrType = attribute.getAttributeType(); |
| | | builder.add(AttributeValues.create(attrType, value)); |
| | | |
| | | builder.add(value); |
| | | return builder.toAttribute(); |
| | | } |
| | | |
| | |
| | | { |
| | | Attribute attr = |
| | | readSingleValueAttribute(lines, line, entryDN, attributeName); |
| | | return attr.iterator().next().getValue().toString(); |
| | | return attr.iterator().next().toString(); |
| | | } |
| | | |
| | | |
| | |
| | | String name = attr.getName(); |
| | | |
| | | // Get the attribute description |
| | | String attrDescr = attr.iterator().next().getValue().toString(); |
| | | String attrDescr = attr.iterator().next().toString(); |
| | | |
| | | ModificationType modType; |
| | | String lowerName = toLowerCase(name); |
| | |
| | | AttributeType ocType = DirectoryServer.getObjectClassAttributeType(); |
| | | AttributeBuilder builder = new AttributeBuilder(ocType, "objectClass"); |
| | | for (String value : objectClasses.values()) { |
| | | builder.add(AttributeValues.create(ocType, value)); |
| | | builder.add(value); |
| | | } |
| | | Map<AttributeType, List<Attribute>> attributes = |
| | | toAttributesMap(attrBuilders); |
| | |
| | | for (int i=0; i < numAVAs; i++) |
| | | { |
| | | AttributeType t = rdn.getAttributeType(i); |
| | | AttributeValue v = rdn.getAttributeValue(i); |
| | | ByteString v = rdn.getAttributeValue(i); |
| | | String n = rdn.getAttributeName(i); |
| | | if (t.isOperational()) |
| | | { |
| | |
| | | |
| | | private void addRDNAttributesIfNecessary( |
| | | Map<AttributeType, List<Attribute>> attributes, AttributeType t, |
| | | AttributeValue v, String n) |
| | | ByteString v, String n) |
| | | { |
| | | List<Attribute> attrList = attributes.get(t); |
| | | if (attrList == null) |