Package org.apache.directory.server.core.interceptor.context

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


    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

    /**
     * {@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

    /**
     * {@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

    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

    /**
     * {@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

    /**
     * {@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

     */
    public boolean compare( Dn dn, String oid, Object value ) throws LdapException
    {
        OperationManager operationManager = directoryService.getOperationManager();

        return operationManager.compare( new CompareOperationContext( this, dn, oid, convertToValue( oid, value ) ) );
    }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    public boolean compare( Dn dn, String oid, Object value, boolean ignoreReferral ) throws LdapException
    {
        CompareOperationContext compareContext = new CompareOperationContext( this, dn, oid,
            convertToValue( oid, value ) );

        setReferralHandling( compareContext, ignoreReferral );

        OperationManager operationManager = directoryService.getOperationManager();
View Full Code Here

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

TOP

Related Classes of org.apache.directory.server.core.interceptor.context.CompareOperationContext

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.