| | |
| | | import java.util.regex.PatternSyntaxException; |
| | | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.admin.server.ConfigurationChangeListener; |
| | |
| | | SearchFilter filter; |
| | | if (attributeTypes.length == 1) |
| | | { |
| | | AttributeValue value = |
| | | AttributeValues.create(attributeTypes[0], processedID); |
| | | ByteString value = ByteString.valueOf(processedID); |
| | | filter = SearchFilter.createEqualityFilter(attributeTypes[0], value); |
| | | } |
| | | else |
| | |
| | | new ArrayList<SearchFilter>(attributeTypes.length); |
| | | for (AttributeType t : attributeTypes) |
| | | { |
| | | AttributeValue value = AttributeValues.create(t, processedID); |
| | | ByteString value = ByteString.valueOf(processedID); |
| | | filterComps.add(SearchFilter.createEqualityFilter(t, value)); |
| | | } |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | if (matchingEntry == null) |
| | | { |
| | | return null; |
| | | } |
| | | else |
| | | { |
| | | return matchingEntry; |
| | | } |
| | | return matchingEntry; |
| | | } |
| | | |
| | | |