Examples of CompareOperationContext


Examples of org.apache.directory.server.core.interceptor.context.CompareOperationContext

    /**
     * {@inheritDoc}
     */
    public boolean compare( InternalCompareRequest compareRequest ) throws Exception
    {
        CompareOperationContext opContext = new CompareOperationContext( this, compareRequest );
        OperationManager operationManager = directoryService.getOperationManager();
        boolean result = operationManager.compare( opContext );
        compareRequest.getResultResponse().addAll( opContext.getResponseControls() );
        return result;
    }
View Full Code Here

Examples of org.apache.directory.server.core.interceptor.context.CompareOperationContext

        if ( ( searchControls.getSearchScope() == SearchControls.OBJECT_SCOPE )
            && ( ( searchControls.getReturningAttributes() != null )
                && ( searchControls.getReturningAttributes().length == 0 ) )
            && ( filter instanceof EqualityNode ) )
        {
            opContext = new CompareOperationContext( session, dn, ((EqualityNode)filter).getAttribute(), ((EqualityNode)filter).getValue() );
           
            // Inject the referral handling into the operation context
            injectReferralControl( opContext );

            // Call the operation
View Full Code Here

Examples of org.apache.directory.server.core.interceptor.context.CompareOperationContext

    public boolean compare( DN dn, String oid, Object value ) throws Exception
    {
        OperationManager operationManager = directoryService.getOperationManager();
       
        return operationManager.compare(
            new CompareOperationContext( this, dn, oid,
                convertToValue( oid, value ) ) );
    }
View Full Code Here

Examples of org.apache.directory.server.core.interceptor.context.CompareOperationContext

    /**
     * {@inheritDoc}
     */
    public boolean compare( DN dn, String oid, Object value, boolean ignoreReferral ) throws Exception
    {
        CompareOperationContext opContext = 
                new CompareOperationContext( this, dn, oid,
                    convertToValue( oid, value ) );
       
        setReferralHandling( opContext, ignoreReferral );
       
        OperationManager operationManager = directoryService.getOperationManager();
View Full Code Here

Examples of org.apache.directory.server.core.interceptor.context.CompareOperationContext

    /**
     * {@inheritDoc}
     */
    public boolean compare( InternalCompareRequest compareRequest ) throws Exception
    {
        CompareOperationContext opContext = new CompareOperationContext( this, compareRequest );
        OperationManager operationManager = directoryService.getOperationManager();
        boolean result = operationManager.compare( opContext );
        compareRequest.getResultResponse().addAll( opContext.getResponseControls() );
        return result;
    }
View Full Code Here

Examples of org.apache.directory.server.core.interceptor.context.CompareOperationContext

        if ( ( searchControls.getSearchScope() == SearchControls.OBJECT_SCOPE )
            && ( ( searchControls.getReturningAttributes() != null )
                && ( searchControls.getReturningAttributes().length == 0 ) )
            && ( filter instanceof EqualityNode ) )
        {
            opContext = new CompareOperationContext( session, dn, ((EqualityNode)filter).getAttribute(), ((EqualityNode)filter).getValue() );
           
            // Inject the referral handling into the operation context
            injectReferralControl( opContext );

            // Call the operation
View Full Code Here

Examples of org.apache.directory.server.core.interceptor.context.CompareOperationContext

                throw new NamingException( "Bad value for the OID " + oid );
            }
        }
       
       
        CompareOperationContext opCtx = new CompareOperationContext( getSession(), name, oid, val );
        opCtx.addRequestControls( requestControls );
       
        // Inject the Referral flag
        injectReferralControl( opCtx );

        // execute operation
View Full Code Here

Examples of org.apache.directory.server.core.interceptor.context.CompareOperationContext

    public boolean compare( LdapDN dn, String oid, Object value ) throws Exception
    {
        OperationManager operationManager = directoryService.getOperationManager();
       
        return operationManager.compare(
            new CompareOperationContext( this, dn, oid,
                convertToValue( oid, value ) ) );
    }
View Full Code Here

Examples of org.apache.directory.server.core.interceptor.context.CompareOperationContext

    /**
     * {@inheritDoc}
     */
    public boolean compare( LdapDN dn, String oid, Object value, boolean ignoreReferral ) throws Exception
    {
        CompareOperationContext opContext = 
                new CompareOperationContext( this, dn, oid,
                    convertToValue( oid, value ) );
       
        setReferralHandling( opContext, ignoreReferral );
       
        OperationManager operationManager = directoryService.getOperationManager();
View Full Code Here

Examples of org.apache.directory.server.core.interceptor.context.CompareOperationContext

    /**
     * {@inheritDoc}
     */
    public boolean compare( InternalCompareRequest compareRequest ) throws Exception
    {
        CompareOperationContext opContext = new CompareOperationContext( this, compareRequest );
        OperationManager operationManager = directoryService.getOperationManager();
        boolean result = operationManager.compare( opContext );
        compareRequest.getResultResponse().addAll( opContext.getResponseControls() );
        return result;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.