| | |
| | | * |
| | | * Copyright 2006-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2012-2016 ForgeRock AS. |
| | | * Portions Copyright 2026 3A Systems, LLC. |
| | | */ |
| | | package org.opends.dsml.protocol; |
| | | |
| | |
| | | throws IOException |
| | | { |
| | | return LDAPFilter.createApproximateFilter(ava.getName(), |
| | | ByteStringUtility.convertValue(ava.getValue())); |
| | | ByteStringUtility.convertRequiredValue(ava.getValue())); |
| | | } |
| | | |
| | | |
| | |
| | | throws IOException |
| | | { |
| | | return LDAPFilter.createEqualityFilter(ava.getName(), |
| | | ByteStringUtility.convertValue(ava.getValue())); |
| | | ByteStringUtility.convertRequiredValue(ava.getValue())); |
| | | } |
| | | |
| | | |
| | |
| | | throws IOException |
| | | { |
| | | return LDAPFilter.createExtensibleFilter(mra.getMatchingRule(), mra |
| | | .getName(), ByteStringUtility.convertValue(mra.getValue()), |
| | | .getName(), ByteStringUtility.convertRequiredValue(mra.getValue()), |
| | | mra.isDnAttributes()); |
| | | } |
| | | |
| | |
| | | throws IOException |
| | | { |
| | | return LDAPFilter.createGreaterOrEqualFilter(ava.getName(), |
| | | ByteStringUtility.convertValue(ava.getValue())); |
| | | ByteStringUtility.convertRequiredValue(ava.getValue())); |
| | | } |
| | | |
| | | |
| | |
| | | throws IOException |
| | | { |
| | | return LDAPFilter.createLessOrEqualFilter(ava.getName(), |
| | | ByteStringUtility.convertValue(ava.getValue())); |
| | | ByteStringUtility.convertRequiredValue(ava.getValue())); |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | for (Object o : anyo) |
| | | { |
| | | subAnyElements.add(ByteStringUtility.convertValue(o)); |
| | | subAnyElements.add(ByteStringUtility.convertRequiredValue(o)); |
| | | } |
| | | if(sf.getInitial() == null && subAnyElements.isEmpty() |
| | | && sf.getFinal()==null) |
| | |
| | | } |
| | | return LDAPFilter.createSubstringFilter(sf.getName(), |
| | | sf.getInitial() == null ? null : ByteStringUtility |
| | | .convertValue(sf.getInitial()), |
| | | .convertRequiredValue(sf.getInitial()), |
| | | subAnyElements, |
| | | sf.getFinal() == null ? null : ByteStringUtility |
| | | .convertValue(sf.getFinal())); |
| | | .convertRequiredValue(sf.getFinal())); |
| | | } |
| | | |
| | | |