| | |
| | | import java.util.Map; |
| | | import java.util.Set; |
| | | |
| | | import org.forgerock.i18n.LocalizedIllegalArgumentException; |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.forgerock.opendj.ldap.ByteSequence; |
| | | import org.forgerock.opendj.ldap.ByteSequenceReader; |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.ByteStringBuilder; |
| | | import org.forgerock.opendj.ldap.ConditionResult; |
| | | import org.forgerock.opendj.ldap.DN; |
| | | import org.forgerock.opendj.ldap.ResultCode; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.forgerock.opendj.ldap.schema.AttributeType; |
| | |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.core.SearchOperation; |
| | | import org.opends.server.types.Attribute; |
| | | import org.forgerock.opendj.ldap.DN; |
| | | import org.opends.server.types.DirectoryException; |
| | | import org.opends.server.types.Entry; |
| | | import org.opends.server.types.LDAPURL; |
| | |
| | | { |
| | | return DN.valueOf(r.readStringUtf8(dnLength)); |
| | | } |
| | | catch (DirectoryException e) |
| | | catch (LocalizedIllegalArgumentException e) |
| | | { |
| | | throw new StorageRuntimeException("Unable to decode DN from binary value", e); |
| | | } |
| | |
| | | { |
| | | return toKey(DN.valueOf(key)); |
| | | } |
| | | catch (DirectoryException e) |
| | | catch (LocalizedIllegalArgumentException e) |
| | | { |
| | | return ByteString.empty(); |
| | | } |