Search in sources :

Example 1 with GreaterEqNode

use of org.apache.directory.api.ldap.model.filter.GreaterEqNode in project directory-ldap-api by apache.

the class SearchRequestTest method testDecodeSearchRequestEmptyGreaterOrEqualEmptyAttrValueStar.

/**
 * Test the decoding of a SearchRequest with a greaterOrEqual filter and an
 * empty attributeValue, and an '*' attribute List
 */
@Test
public void testDecodeSearchRequestEmptyGreaterOrEqualEmptyAttrValueStar() {
    byte[] asn1BER = new byte[] { 0x30, 0x44, // messageID
    0x02, // messageID
    0x01, // messageID
    0x04, 0x63, 0x3F, // baseObject LDAPDN,
    0x04, // baseObject LDAPDN,
    0x1F, 'u', 'i', 'd', '=', 'a', 'k', 'a', 'r', 'a', 's', 'u', 'l', 'u', ',', 'd', 'c', '=', 'e', 'x', 'a', 'm', 'p', 'l', 'e', ',', 'd', 'c', '=', 'c', 'o', 'm', 0x0A, 0x01, 0x01, 0x0A, 0x01, 0x03, 0x02, 0x01, 0x00, 0x02, 0x01, 0x00, 0x01, 0x01, (byte) 0xFF, (byte) 0xA5, 0x08, 0x04, 0x04, 't', 'e', 's', 't', 0x04, 0x00, // AttributeDescriptionList ::= SEQUENCE
    0x30, // AttributeDescriptionList ::= SEQUENCE
    0x03, // OF AttributeDescription
    0x04, 0x01, '*' };
    Asn1Decoder ldapDecoder = new Asn1Decoder();
    ByteBuffer stream = ByteBuffer.allocate(asn1BER.length);
    stream.put(asn1BER);
    String decodedPdu = Strings.dumpBytes(stream.array());
    stream.flip();
    // Allocate a LdapMessage Container
    LdapMessageContainer<SearchRequestDecorator> ldapMessageContainer = new LdapMessageContainer<SearchRequestDecorator>(codec);
    // Decode a SearchRequest message
    try {
        ldapDecoder.decode(stream, ldapMessageContainer);
    } catch (DecoderException de) {
        de.printStackTrace();
        fail(de.getMessage());
    }
    assertEquals(TLVStateEnum.PDU_DECODED, ldapMessageContainer.getState());
    SearchRequest searchRequest = ldapMessageContainer.getMessage();
    assertEquals(4, searchRequest.getMessageId());
    assertEquals("uid=akarasulu,dc=example,dc=com", searchRequest.getBase().toString());
    assertEquals(SearchScope.ONELEVEL, searchRequest.getScope());
    assertEquals(AliasDerefMode.DEREF_ALWAYS, searchRequest.getDerefAliases());
    assertEquals(0, searchRequest.getSizeLimit());
    assertEquals(0, searchRequest.getTimeLimit());
    assertEquals(true, searchRequest.getTypesOnly());
    // >=
    GreaterEqNode<?> greaterOrEqual = (GreaterEqNode<?>) searchRequest.getFilter();
    assertNotNull(greaterOrEqual);
    assertEquals("test", greaterOrEqual.getAttribute());
    assertEquals("", greaterOrEqual.getValue().getValue());
    List<String> attributes = searchRequest.getAttributes();
    assertEquals(1, attributes.size());
    assertEquals("*", attributes.get(0));
    // attributes may have been reordered
    try {
        ByteBuffer bb = encoder.encodeMessage(searchRequest);
        // Check the length
        assertEquals(0x46, bb.limit());
        String encodedPdu = Strings.dumpBytes(bb.array());
        assertEquals(encodedPdu, decodedPdu);
    } catch (EncoderException ee) {
        ee.printStackTrace();
        fail(ee.getMessage());
    }
}
Also used : LdapMessageContainer(org.apache.directory.api.ldap.codec.api.LdapMessageContainer) SearchRequest(org.apache.directory.api.ldap.model.message.SearchRequest) ByteBuffer(java.nio.ByteBuffer) DecoderException(org.apache.directory.api.asn1.DecoderException) EncoderException(org.apache.directory.api.asn1.EncoderException) GreaterEqNode(org.apache.directory.api.ldap.model.filter.GreaterEqNode) Asn1Decoder(org.apache.directory.api.asn1.ber.Asn1Decoder) SearchRequestDecorator(org.apache.directory.api.ldap.codec.decorators.SearchRequestDecorator) Test(org.junit.Test) AbstractCodecServiceTest(org.apache.directory.api.ldap.codec.osgi.AbstractCodecServiceTest)

Example 2 with GreaterEqNode

use of org.apache.directory.api.ldap.model.filter.GreaterEqNode in project directory-ldap-api by apache.

the class SearchRequestDsml method toDsml.

/**
 * Recursively converts the filter of the Search Request into a DSML representation and adds
 * it to the XML Element corresponding to the Search Request
 *
 * @param element
 *      the parent Element
 * @param filter
 *      the filter to convert
 */
private void toDsml(Element element, ExprNode filter) {
    // AND FILTER
    if (filter instanceof AndNode) {
        Element newElement = element.addElement("and");
        List<ExprNode> filterList = ((AndNode) filter).getChildren();
        for (int i = 0; i < filterList.size(); i++) {
            toDsml(newElement, filterList.get(i));
        }
    } else // OR FILTER
    if (filter instanceof OrNode) {
        Element newElement = element.addElement("or");
        List<ExprNode> filterList = ((OrNode) filter).getChildren();
        for (int i = 0; i < filterList.size(); i++) {
            toDsml(newElement, filterList.get(i));
        }
    } else // NOT FILTER
    if (filter instanceof NotNode) {
        Element newElement = element.addElement("not");
        toDsml(newElement, ((NotNode) filter).getFirstChild());
    } else // SUBSTRING FILTER
    if (filter instanceof SubstringNode) {
        Element newElement = element.addElement("substrings");
        SubstringNode substringFilter = (SubstringNode) filter;
        newElement.addAttribute(NAME, substringFilter.getAttribute());
        String initial = substringFilter.getInitial();
        if ((initial != null) && (!"".equals(initial))) {
            newElement.addElement("initial").setText(initial);
        }
        List<String> anyList = substringFilter.getAny();
        for (int i = 0; i < anyList.size(); i++) {
            newElement.addElement("any").setText(anyList.get(i));
        }
        String finalString = substringFilter.getFinal();
        if ((finalString != null) && (!"".equals(finalString))) {
            newElement.addElement("final").setText(finalString);
        }
    } else // APPROXMATCH, EQUALITYMATCH, GREATEROREQUALS & LESSOREQUAL FILTERS
    if (filter instanceof SimpleNode) {
        Element newElement;
        if (filter instanceof ApproximateNode) {
            newElement = element.addElement("approxMatch");
        } else if (filter instanceof EqualityNode) {
            newElement = element.addElement("equalityMatch");
        } else if (filter instanceof GreaterEqNode) {
            newElement = element.addElement("greaterOrEqual");
        } else // it is a LessEqNode )
        {
            newElement = element.addElement("lessOrEqual");
        }
        String attributeName = ((SimpleNode<?>) filter).getAttribute();
        newElement.addAttribute(NAME, attributeName);
        Value value = ((SimpleNode<?>) filter).getValue();
        if (value != null) {
            if (ParserUtils.needsBase64Encoding(value)) {
                Namespace xsdNamespace = new Namespace("xsd", ParserUtils.XML_SCHEMA_URI);
                Namespace xsiNamespace = new Namespace("xsi", ParserUtils.XML_SCHEMA_INSTANCE_URI);
                element.getDocument().getRootElement().add(xsdNamespace);
                element.getDocument().getRootElement().add(xsiNamespace);
                Element valueElement = newElement.addElement(VALUE).addText(ParserUtils.base64Encode(value));
                valueElement.addAttribute(new QName("type", xsiNamespace), "xsd:" + ParserUtils.BASE64BINARY);
            } else {
                newElement.addElement(VALUE).setText(value.getValue());
            }
        }
    } else // PRESENT FILTER
    if (filter instanceof PresenceNode) {
        Element newElement = element.addElement("present");
        newElement.addAttribute(NAME, ((PresenceNode) filter).getAttribute());
    } else // EXTENSIBLEMATCH
    if (filter instanceof ExtensibleNode) {
        Element newElement = element.addElement("extensibleMatch");
        Value value = ((ExtensibleNode) filter).getValue();
        if (value != null) {
            if (ParserUtils.needsBase64Encoding(value)) {
                Namespace xsdNamespace = new Namespace("xsd", ParserUtils.XML_SCHEMA_URI);
                Namespace xsiNamespace = new Namespace("xsi", ParserUtils.XML_SCHEMA_INSTANCE_URI);
                element.getDocument().getRootElement().add(xsdNamespace);
                element.getDocument().getRootElement().add(xsiNamespace);
                Element valueElement = newElement.addElement(VALUE).addText(ParserUtils.base64Encode(value.getValue()));
                valueElement.addAttribute(new QName("type", xsiNamespace), "xsd:" + ParserUtils.BASE64BINARY);
            } else {
                newElement.addElement(VALUE).setText(value.getValue());
            }
        }
        if (((ExtensibleNode) filter).hasDnAttributes()) {
            newElement.addAttribute("dnAttributes", "true");
        }
        String matchingRule = ((ExtensibleNode) filter).getMatchingRuleId();
        if ((matchingRule != null) && ("".equals(matchingRule))) {
            newElement.addAttribute("matchingRule", matchingRule);
        }
    }
}
Also used : SubstringNode(org.apache.directory.api.ldap.model.filter.SubstringNode) ApproximateNode(org.apache.directory.api.ldap.model.filter.ApproximateNode) NotNode(org.apache.directory.api.ldap.model.filter.NotNode) QName(org.dom4j.QName) PresenceNode(org.apache.directory.api.ldap.model.filter.PresenceNode) Element(org.dom4j.Element) AndNode(org.apache.directory.api.ldap.model.filter.AndNode) ExtensibleNode(org.apache.directory.api.ldap.model.filter.ExtensibleNode) Namespace(org.dom4j.Namespace) SimpleNode(org.apache.directory.api.ldap.model.filter.SimpleNode) ExprNode(org.apache.directory.api.ldap.model.filter.ExprNode) GreaterEqNode(org.apache.directory.api.ldap.model.filter.GreaterEqNode) Value(org.apache.directory.api.ldap.model.entry.Value) ArrayList(java.util.ArrayList) List(java.util.List) EqualityNode(org.apache.directory.api.ldap.model.filter.EqualityNode) OrNode(org.apache.directory.api.ldap.model.filter.OrNode)

Example 3 with GreaterEqNode

use of org.apache.directory.api.ldap.model.filter.GreaterEqNode in project directory-ldap-api by apache.

the class SearchRequestTest method testRequestWithGreaterOrEqualFilter.

/**
 * Test parsing of a request with an greaterOrEqual Filter
 */
@Test
public void testRequestWithGreaterOrEqualFilter() {
    Dsmlv2Parser parser = null;
    try {
        parser = newParser();
        parser.setInput(SearchRequestTest.class.getResource("filters/request_with_greaterOrEqual.xml").openStream(), "UTF-8");
        parser.parse();
    } catch (Exception e) {
        fail(e.getMessage());
    }
    SearchRequest searchRequest = (SearchRequest) parser.getBatchRequest().getCurrentRequest();
    ExprNode filter = searchRequest.getFilter();
    assertTrue(filter instanceof GreaterEqNode);
    GreaterEqNode<?> greaterEqFilter = (GreaterEqNode<?>) filter;
    assertEquals("sn", greaterEqFilter.getAttribute());
    assertEquals("foobar", greaterEqFilter.getValue().getValue());
}
Also used : ExprNode(org.apache.directory.api.ldap.model.filter.ExprNode) SearchRequest(org.apache.directory.api.ldap.model.message.SearchRequest) GreaterEqNode(org.apache.directory.api.ldap.model.filter.GreaterEqNode) Dsmlv2Parser(org.apache.directory.api.dsmlv2.Dsmlv2Parser) LdapException(org.apache.directory.api.ldap.model.exception.LdapException) Test(org.junit.Test) AbstractTest(org.apache.directory.api.dsmlv2.AbstractTest)

Example 4 with GreaterEqNode

use of org.apache.directory.api.ldap.model.filter.GreaterEqNode in project directory-ldap-api by apache.

the class SearchRequestDecorator method transform.

/**
 * Transform the Filter part of a SearchRequest to an ExprNode
 *
 * @param filter The filter to be transformed
 * @return An ExprNode
 * @throws LdapSchemaException If teh filter is invalid
 */
@SuppressWarnings({ "rawtypes" })
private ExprNode transform(Filter filter) throws LdapSchemaException {
    if (filter != null) {
        // Transform OR, AND or NOT leaves
        if (filter instanceof ConnectorFilter) {
            BranchNode branch;
            if (filter instanceof AndFilter) {
                branch = new AndNode();
            } else if (filter instanceof OrFilter) {
                branch = new OrNode();
            } else {
                branch = new NotNode();
            }
            List<Filter> filtersSet = ((ConnectorFilter) filter).getFilterSet();
            // Loop on all AND/OR children
            if (filtersSet != null) {
                for (Filter node : filtersSet) {
                    branch.addNode(transform(node));
                }
            }
            return branch;
        } else {
            // Transform PRESENT or ATTRIBUTE_VALUE_ASSERTION
            LeafNode branch = null;
            if (filter instanceof PresentFilter) {
                branch = new PresenceNode(((PresentFilter) filter).getAttributeDescription());
            } else if (filter instanceof AttributeValueAssertionFilter) {
                AttributeValueAssertion ava = ((AttributeValueAssertionFilter) filter).getAssertion();
                // Transform =, >=, <=, ~= filters
                int filterType = ((AttributeValueAssertionFilter) filter).getFilterType();
                switch(filterType) {
                    case LdapCodecConstants.EQUALITY_MATCH_FILTER:
                        branch = new EqualityNode(ava.getAttributeDesc(), ava.getAssertion());
                        break;
                    case LdapCodecConstants.GREATER_OR_EQUAL_FILTER:
                        branch = new GreaterEqNode(ava.getAttributeDesc(), ava.getAssertion());
                        break;
                    case LdapCodecConstants.LESS_OR_EQUAL_FILTER:
                        branch = new LessEqNode(ava.getAttributeDesc(), ava.getAssertion());
                        break;
                    case LdapCodecConstants.APPROX_MATCH_FILTER:
                        branch = new ApproximateNode(ava.getAttributeDesc(), ava.getAssertion());
                        break;
                    default:
                        throw new IllegalArgumentException("Unexpected filter type: " + filterType);
                }
            } else if (filter instanceof SubstringFilter) {
                // Transform Substring filters
                SubstringFilter substrFilter = (SubstringFilter) filter;
                String initialString = null;
                String finalString = null;
                List<String> anyString = null;
                if (substrFilter.getInitialSubstrings() != null) {
                    initialString = substrFilter.getInitialSubstrings();
                }
                if (substrFilter.getFinalSubstrings() != null) {
                    finalString = substrFilter.getFinalSubstrings();
                }
                if (substrFilter.getAnySubstrings() != null) {
                    anyString = new ArrayList<>();
                    for (String any : substrFilter.getAnySubstrings()) {
                        anyString.add(any);
                    }
                }
                branch = new SubstringNode(anyString, substrFilter.getType(), initialString, finalString);
            } else if (filter instanceof ExtensibleMatchFilter) {
                // Transform Extensible Match Filter
                ExtensibleMatchFilter extFilter = (ExtensibleMatchFilter) filter;
                String matchingRule = null;
                Value value = extFilter.getMatchValue();
                if (extFilter.getMatchingRule() != null) {
                    matchingRule = extFilter.getMatchingRule();
                }
                branch = new ExtensibleNode(extFilter.getType(), value, matchingRule, extFilter.isDnAttributes());
            }
            return branch;
        }
    } else {
        // We have found nothing to transform. Return null then.
        return null;
    }
}
Also used : ApproximateNode(org.apache.directory.api.ldap.model.filter.ApproximateNode) NotNode(org.apache.directory.api.ldap.model.filter.NotNode) PresenceNode(org.apache.directory.api.ldap.model.filter.PresenceNode) ExtensibleMatchFilter(org.apache.directory.api.ldap.codec.search.ExtensibleMatchFilter) AndNode(org.apache.directory.api.ldap.model.filter.AndNode) ExtensibleNode(org.apache.directory.api.ldap.model.filter.ExtensibleNode) BranchNode(org.apache.directory.api.ldap.model.filter.BranchNode) LeafNode(org.apache.directory.api.ldap.model.filter.LeafNode) AttributeValueAssertion(org.apache.directory.api.ldap.codec.AttributeValueAssertion) LessEqNode(org.apache.directory.api.ldap.model.filter.LessEqNode) OrNode(org.apache.directory.api.ldap.model.filter.OrNode) SubstringNode(org.apache.directory.api.ldap.model.filter.SubstringNode) AttributeValueAssertionFilter(org.apache.directory.api.ldap.codec.search.AttributeValueAssertionFilter) SubstringFilter(org.apache.directory.api.ldap.codec.search.SubstringFilter) OrFilter(org.apache.directory.api.ldap.codec.search.OrFilter) AndFilter(org.apache.directory.api.ldap.codec.search.AndFilter) PresentFilter(org.apache.directory.api.ldap.codec.search.PresentFilter) GreaterEqNode(org.apache.directory.api.ldap.model.filter.GreaterEqNode) AttributeValueAssertionFilter(org.apache.directory.api.ldap.codec.search.AttributeValueAssertionFilter) AndFilter(org.apache.directory.api.ldap.codec.search.AndFilter) ConnectorFilter(org.apache.directory.api.ldap.codec.search.ConnectorFilter) SubstringFilter(org.apache.directory.api.ldap.codec.search.SubstringFilter) NotFilter(org.apache.directory.api.ldap.codec.search.NotFilter) OrFilter(org.apache.directory.api.ldap.codec.search.OrFilter) PresentFilter(org.apache.directory.api.ldap.codec.search.PresentFilter) ExtensibleMatchFilter(org.apache.directory.api.ldap.codec.search.ExtensibleMatchFilter) Filter(org.apache.directory.api.ldap.codec.search.Filter) ConnectorFilter(org.apache.directory.api.ldap.codec.search.ConnectorFilter) Value(org.apache.directory.api.ldap.model.entry.Value) BerValue(org.apache.directory.api.asn1.ber.tlv.BerValue) EqualityNode(org.apache.directory.api.ldap.model.filter.EqualityNode)

Example 5 with GreaterEqNode

use of org.apache.directory.api.ldap.model.filter.GreaterEqNode in project directory-ldap-api by apache.

the class SearchRequestDecorator method transform.

/**
 * Transform an ExprNode filter to a Filter
 *
 * @param exprNode The filter to be transformed
 * @return A filter
 */
private static Filter transform(ExprNode exprNode) {
    if (exprNode != null) {
        Filter filter = null;
        // Transform OR, AND or NOT leaves
        if (exprNode instanceof BranchNode) {
            if (exprNode instanceof AndNode) {
                filter = new AndFilter();
            } else if (exprNode instanceof OrNode) {
                filter = new OrFilter();
            } else {
                filter = new NotFilter();
            }
            List<ExprNode> children = ((BranchNode) exprNode).getChildren();
            // Loop on all AND/OR children
            if (children != null) {
                for (ExprNode child : children) {
                    try {
                        ((ConnectorFilter) filter).addFilter(transform(child));
                    } catch (DecoderException de) {
                        return null;
                    }
                }
            }
        } else {
            if (exprNode instanceof PresenceNode) {
                // Transform Presence Node
                filter = new PresentFilter();
                ((PresentFilter) filter).setAttributeDescription(((PresenceNode) exprNode).getAttribute());
            } else if (exprNode instanceof SimpleNode<?>) {
                if (exprNode instanceof EqualityNode<?>) {
                    filter = new AttributeValueAssertionFilter(LdapCodecConstants.EQUALITY_MATCH_FILTER);
                    AttributeValueAssertion assertion = new AttributeValueAssertion();
                    assertion.setAttributeDesc(((EqualityNode<?>) exprNode).getAttribute());
                    assertion.setAssertion(((EqualityNode<?>) exprNode).getValue().getBytes());
                    ((AttributeValueAssertionFilter) filter).setAssertion(assertion);
                } else if (exprNode instanceof GreaterEqNode<?>) {
                    filter = new AttributeValueAssertionFilter(LdapCodecConstants.GREATER_OR_EQUAL_FILTER);
                    AttributeValueAssertion assertion = new AttributeValueAssertion();
                    assertion.setAttributeDesc(((GreaterEqNode<?>) exprNode).getAttribute());
                    assertion.setAssertion(((GreaterEqNode<?>) exprNode).getValue().getBytes());
                    ((AttributeValueAssertionFilter) filter).setAssertion(assertion);
                } else if (exprNode instanceof LessEqNode<?>) {
                    filter = new AttributeValueAssertionFilter(LdapCodecConstants.LESS_OR_EQUAL_FILTER);
                    AttributeValueAssertion assertion = new AttributeValueAssertion();
                    assertion.setAttributeDesc(((LessEqNode<?>) exprNode).getAttribute());
                    assertion.setAssertion(((LessEqNode<?>) exprNode).getValue().getBytes());
                    ((AttributeValueAssertionFilter) filter).setAssertion(assertion);
                } else if (exprNode instanceof ApproximateNode<?>) {
                    filter = new AttributeValueAssertionFilter(LdapCodecConstants.APPROX_MATCH_FILTER);
                    AttributeValueAssertion assertion = new AttributeValueAssertion();
                    assertion.setAttributeDesc(((ApproximateNode<?>) exprNode).getAttribute());
                    assertion.setAssertion(((ApproximateNode<?>) exprNode).getValue().getBytes());
                    ((AttributeValueAssertionFilter) filter).setAssertion(assertion);
                }
            } else if (exprNode instanceof SubstringNode) {
                // Transform Substring Nodes
                filter = new SubstringFilter();
                ((SubstringFilter) filter).setType(((SubstringNode) exprNode).getAttribute());
                String initialString = ((SubstringNode) exprNode).getInitial();
                String finalString = ((SubstringNode) exprNode).getFinal();
                List<String> anyStrings = ((SubstringNode) exprNode).getAny();
                if (initialString != null) {
                    ((SubstringFilter) filter).setInitialSubstrings(initialString);
                }
                if (finalString != null) {
                    ((SubstringFilter) filter).setFinalSubstrings(finalString);
                }
                if (anyStrings != null) {
                    for (String any : anyStrings) {
                        ((SubstringFilter) filter).addAnySubstrings(any);
                    }
                }
            } else if (exprNode instanceof ExtensibleNode) {
                // Transform Extensible Node
                filter = new ExtensibleMatchFilter();
                String attribute = ((ExtensibleNode) exprNode).getAttribute();
                String matchingRule = ((ExtensibleNode) exprNode).getMatchingRuleId();
                boolean dnAttributes = ((ExtensibleNode) exprNode).hasDnAttributes();
                Value value = ((ExtensibleNode) exprNode).getValue();
                if (attribute != null) {
                    ((ExtensibleMatchFilter) filter).setType(attribute);
                }
                if (matchingRule != null) {
                    ((ExtensibleMatchFilter) filter).setMatchingRule(matchingRule);
                }
                ((ExtensibleMatchFilter) filter).setMatchValue(value);
                ((ExtensibleMatchFilter) filter).setDnAttributes(dnAttributes);
            }
        }
        return filter;
    } else {
        // We have found nothing to transform. Return null then.
        return null;
    }
}
Also used : ApproximateNode(org.apache.directory.api.ldap.model.filter.ApproximateNode) PresenceNode(org.apache.directory.api.ldap.model.filter.PresenceNode) ExtensibleMatchFilter(org.apache.directory.api.ldap.codec.search.ExtensibleMatchFilter) AndNode(org.apache.directory.api.ldap.model.filter.AndNode) ExtensibleNode(org.apache.directory.api.ldap.model.filter.ExtensibleNode) ExprNode(org.apache.directory.api.ldap.model.filter.ExprNode) BranchNode(org.apache.directory.api.ldap.model.filter.BranchNode) AttributeValueAssertion(org.apache.directory.api.ldap.codec.AttributeValueAssertion) LessEqNode(org.apache.directory.api.ldap.model.filter.LessEqNode) OrNode(org.apache.directory.api.ldap.model.filter.OrNode) SubstringNode(org.apache.directory.api.ldap.model.filter.SubstringNode) AttributeValueAssertionFilter(org.apache.directory.api.ldap.codec.search.AttributeValueAssertionFilter) SubstringFilter(org.apache.directory.api.ldap.codec.search.SubstringFilter) OrFilter(org.apache.directory.api.ldap.codec.search.OrFilter) AndFilter(org.apache.directory.api.ldap.codec.search.AndFilter) DecoderException(org.apache.directory.api.asn1.DecoderException) PresentFilter(org.apache.directory.api.ldap.codec.search.PresentFilter) GreaterEqNode(org.apache.directory.api.ldap.model.filter.GreaterEqNode) AttributeValueAssertionFilter(org.apache.directory.api.ldap.codec.search.AttributeValueAssertionFilter) AndFilter(org.apache.directory.api.ldap.codec.search.AndFilter) ConnectorFilter(org.apache.directory.api.ldap.codec.search.ConnectorFilter) SubstringFilter(org.apache.directory.api.ldap.codec.search.SubstringFilter) NotFilter(org.apache.directory.api.ldap.codec.search.NotFilter) OrFilter(org.apache.directory.api.ldap.codec.search.OrFilter) PresentFilter(org.apache.directory.api.ldap.codec.search.PresentFilter) ExtensibleMatchFilter(org.apache.directory.api.ldap.codec.search.ExtensibleMatchFilter) Filter(org.apache.directory.api.ldap.codec.search.Filter) ConnectorFilter(org.apache.directory.api.ldap.codec.search.ConnectorFilter) NotFilter(org.apache.directory.api.ldap.codec.search.NotFilter) Value(org.apache.directory.api.ldap.model.entry.Value) BerValue(org.apache.directory.api.asn1.ber.tlv.BerValue) EqualityNode(org.apache.directory.api.ldap.model.filter.EqualityNode)

Aggregations

GreaterEqNode (org.apache.directory.api.ldap.model.filter.GreaterEqNode)13 SearchRequest (org.apache.directory.api.ldap.model.message.SearchRequest)9 Test (org.junit.Test)9 ExprNode (org.apache.directory.api.ldap.model.filter.ExprNode)8 DecoderException (org.apache.directory.api.asn1.DecoderException)7 AndNode (org.apache.directory.api.ldap.model.filter.AndNode)7 OrNode (org.apache.directory.api.ldap.model.filter.OrNode)7 ByteBuffer (java.nio.ByteBuffer)6 Asn1Decoder (org.apache.directory.api.asn1.ber.Asn1Decoder)6 LdapMessageContainer (org.apache.directory.api.ldap.codec.api.LdapMessageContainer)6 SearchRequestDecorator (org.apache.directory.api.ldap.codec.decorators.SearchRequestDecorator)6 AbstractCodecServiceTest (org.apache.directory.api.ldap.codec.osgi.AbstractCodecServiceTest)6 NotNode (org.apache.directory.api.ldap.model.filter.NotNode)6 PresenceNode (org.apache.directory.api.ldap.model.filter.PresenceNode)6 EncoderException (org.apache.directory.api.asn1.EncoderException)5 ApproximateNode (org.apache.directory.api.ldap.model.filter.ApproximateNode)5 Value (org.apache.directory.api.ldap.model.entry.Value)4 EqualityNode (org.apache.directory.api.ldap.model.filter.EqualityNode)4 ExtensibleNode (org.apache.directory.api.ldap.model.filter.ExtensibleNode)4 LessEqNode (org.apache.directory.api.ldap.model.filter.LessEqNode)4