| | |
| | | { |
| | | for (AVA ava : rdn) |
| | | { |
| | | AttributeType attrType = ava.getAttributeType(); |
| | | Attribute attribute = Attributes.create(attrType, ava.getAttributeValue()); |
| | | Attribute attribute = Attributes.create(ava.getAttributeType(), ava.getAttributeValue()); |
| | | addAttributeToSchemaEntry(attribute, userAttrs, operationalAttrs); |
| | | } |
| | | } |
| | |
| | | Attributes.create(getModifyTimestampAttributeType(), modifyTimestamp), userAttrs, operationalAttrs); |
| | | |
| | | // Add the extra attributes. |
| | | for (Attribute attribute : DirectoryServer.getSchema().getExtraAttributes().values()) |
| | | for (Attribute attribute : DirectoryServer.getSchema().getExtraAttributes()) |
| | | { |
| | | addAttributeToSchemaEntry(attribute, userAttrs, operationalAttrs); |
| | | } |
| | |
| | | |
| | | if (FILE_USER_SCHEMA_ELEMENTS.equals(schemaFile)) |
| | | { |
| | | for (Attribute attribute : schema.getExtraAttributes().values()) |
| | | for (Attribute attribute : schema.getExtraAttributes()) |
| | | { |
| | | AttributeType attributeType = attribute.getAttributeDescription().getAttributeType(); |
| | | schemaEntry.putAttribute(attributeType, newArrayList(attribute)); |