| | |
| | | import org.opends.server.core.ServerContext; |
| | | import org.opends.server.types.Attribute; |
| | | import org.opends.server.types.AttributeBuilder; |
| | | import org.opends.server.types.AttributeDescriptions; |
| | | import org.opends.server.types.Attributes; |
| | | import org.opends.server.types.DirectoryException; |
| | | import org.opends.server.types.ObjectClass; |
| | |
| | | final Attribute attribute) throws DirectoryException |
| | | { |
| | | // Re-use or allocate a new ID. |
| | | int id = getAttributeId(AttributeDescriptions.create(attribute)); |
| | | int id = getAttributeId(attribute.getAttributeDescription()); |
| | | |
| | | // Encode the attribute. |
| | | final byte[] idBytes = encodeId(id); |