| | |
| | | import org.opends.guitools.controlpanel.util.Utilities; |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.opends.server.config.ConfigConstants; |
| | | import org.opends.server.types.AttributeValue; |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.types.Entry; |
| | | |
| | |
| | | for (org.opends.server.types.Attribute attr : newEntry.getAttributes()) |
| | | { |
| | | String attrName = attr.getNameWithOptions(); |
| | | Set<AttributeValue> values = new LinkedHashSet<AttributeValue>(); |
| | | Iterator<AttributeValue> it = attr.iterator(); |
| | | Set<ByteString> values = new LinkedHashSet<ByteString>(); |
| | | Iterator<ByteString> it = attr.iterator(); |
| | | while (it.hasNext()) |
| | | { |
| | | values.add(it.next()); |
| | | } |
| | | BasicAttribute a = new BasicAttribute(attrName); |
| | | for (AttributeValue value : values) |
| | | for (ByteString value : values) |
| | | { |
| | | a.add(value.getValue().toByteArray()); |
| | | a.add(value.toByteArray()); |
| | | } |
| | | attrs.put(a); |
| | | } |