Package org.apache.directory.shared.ldap.model.filter

Examples of org.apache.directory.shared.ldap.model.filter.SubstringNode


        assertEquals( 1000, searchRequest.getTimeLimit() );
        assertEquals( true, searchRequest.getTypesOnly() );

        // (objectclass=t*)
        ExprNode node = searchRequest.getFilter();
        SubstringNode substringNode = ( SubstringNode ) node;
        assertNotNull( substringNode );

        assertEquals( "objectclass", substringNode.getAttribute() );
        assertEquals( null, substringNode.getInitial() );
        assertEquals( 0, substringNode.getAny().size() );
        assertEquals( "Amos", substringNode.getFinal() );

        // The attributes
        List<String> attributes = searchRequest.getAttributes();

        for ( String attribute : attributes )
View Full Code Here


                        {
                            anyString.add( any );
                        }
                    }

                    branch = new SubstringNode( anyString, substrFilter.getType(), initialString, finalString );
                }
                else if ( filter instanceof ExtensibleMatchFilter )
                {
                    // Transform Extensible Match Filter
                    ExtensibleMatchFilter extFilter = ( ExtensibleMatchFilter ) filter;
View Full Code Here

        assertNotNull( andNode );

        List<ExprNode> andNodes = andNode.getChildren();
        assertEquals( 2, andNodes.size() );

        SubstringNode substringNode = ( SubstringNode ) andNodes.get( 0 );
        assertNotNull( substringNode );

        assertEquals( "pgpuserid", substringNode.getAttribute() );
        assertEquals( "vgjokjev@netcetera.com.mk", substringNode.getInitial() );
        assertEquals( 0, substringNode.getAny().size() );
        assertEquals( null, substringNode.getFinal() );

        EqualityNode<?> equalityNode = ( EqualityNode<?> ) andNodes.get( 1 );
        assertNotNull( equalityNode );

        assertEquals( "pgpdisabled", equalityNode.getAttribute() );
View Full Code Here

        List<ExprNode> orNodes = orNode.getChildren();
        assertEquals( 2, orNodes.size() );

        // (&(a=b)(|(cn=Tori*
        SubstringNode substringNode = ( SubstringNode ) orNodes.get( 0 );
        assertNotNull( substringNode );

        assertEquals( "cn", substringNode.getAttribute() );
        assertEquals( "Tori", substringNode.getInitial() );
        assertEquals( 0, substringNode.getAny().size() );
        assertEquals( null, substringNode.getFinal() );

        // (&(a=b)(|(cn=Tori*)(sn=Jagger)))
        equalityNode = ( EqualityNode<?> ) orNodes.get( 1 );
        assertNotNull( equalityNode );

View Full Code Here

        assertEquals( 1000, searchRequest.getTimeLimit() );
        assertEquals( true, searchRequest.getTypesOnly() );

        // (objectclass=t*)
        ExprNode node = searchRequest.getFilter();
        SubstringNode substringNode = ( SubstringNode ) node;
        assertNotNull( substringNode );

        assertEquals( "objectclass", substringNode.getAttribute() );
        assertEquals( "t", substringNode.getInitial() );

        // The attributes
        List<String> attributes = searchRequest.getAttributes();

        for ( String attribute : attributes )
View Full Code Here

        assertEquals( 1000, searchRequest.getTimeLimit() );
        assertEquals( true, searchRequest.getTypesOnly() );

        // (objectclass=t*)
        ExprNode node = searchRequest.getFilter();
        SubstringNode substringNode = ( SubstringNode ) node;
        assertNotNull( substringNode );

        assertEquals( "objectclass", substringNode.getAttribute() );
        assertEquals( "t", substringNode.getInitial() );

        // The attributes
        List<String> attributes = searchRequest.getAttributes();

        for ( String attribute : attributes )
View Full Code Here

        assertEquals( 1000, searchRequest.getTimeLimit() );
        assertEquals( true, searchRequest.getTypesOnly() );

        // (objectclass=t*)
        ExprNode node = searchRequest.getFilter();
        SubstringNode substringNode = ( SubstringNode ) node;
        assertNotNull( substringNode );

        assertEquals( "objectclass", substringNode.getAttribute() );
        assertEquals( null, substringNode.getInitial() );
        assertEquals( "t", substringNode.getAny().get( 0 ) );
        assertEquals( null, substringNode.getFinal() );

        // The attributes
        List<String> attributes = searchRequest.getAttributes();

        for ( String attribute : attributes )
View Full Code Here

        assertEquals( 1000, searchRequest.getTimeLimit() );
        assertEquals( true, searchRequest.getTypesOnly() );

        // (objectclass=t*)
        ExprNode node = searchRequest.getFilter();
        SubstringNode substringNode = ( SubstringNode ) node;
        assertNotNull( substringNode );

        assertEquals( "objectclass", substringNode.getAttribute() );
        assertEquals( null, substringNode.getInitial() );
        assertEquals( "t", substringNode.getAny().get( 0 ) );
        assertEquals( "t", substringNode.getFinal() );

        // The attributes
        List<String> attributes = searchRequest.getAttributes();

        for ( String attribute : attributes )
View Full Code Here

        assertEquals( 1000, searchRequest.getTimeLimit() );
        assertEquals( true, searchRequest.getTypesOnly() );

        // (objectclass=t*)
        ExprNode node = searchRequest.getFilter();
        SubstringNode substringNode = ( SubstringNode ) node;
        assertNotNull( substringNode );

        assertEquals( "objectclass", substringNode.getAttribute() );
        assertEquals( "t", substringNode.getInitial() );
        assertEquals( "t", substringNode.getAny().get( 0 ) );
        assertEquals( "t", substringNode.getFinal() );

        // The attributes
        List<String> attributes = searchRequest.getAttributes();

        for ( String attribute : attributes )
View Full Code Here

                        {
                            anyString.add( any );
                        }
                    }

                    branch = new SubstringNode( anyString, substrFilter.getType(), initialString, finalString );
                }
                else if ( filter instanceof ExtensibleMatchFilter )
                {
                    // Transform Extensible Match Filter
                    ExtensibleMatchFilter extFilter = ( ExtensibleMatchFilter ) filter;
View Full Code Here

TOP

Related Classes of org.apache.directory.shared.ldap.model.filter.SubstringNode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.