/** * {@inheritDoc} */ @Override public boolean compare( String dn, String attributeName, byte[] value ) throws LdapException { return compare( new Dn( dn ), attributeName, value ); }
/** * {@inheritDoc} */ @Override public boolean compare( String dn, String attributeName, Value value ) throws LdapException { return compare( new Dn( dn ), attributeName, value ); }
/** * {@inheritDoc} */ @Override public boolean compare( String dn, String attributeName, String value ) throws LdapException { return compare( new Dn( dn ), attributeName, value ); }
/** * {@inheritDoc} */ @Override public boolean compare( String dn, String attributeName, byte[] value ) throws LdapException { return compare( new Dn( dn ), attributeName, value ); }
/** * {@inheritDoc} */ @Override public boolean compare( String dn, String attributeName, String value ) throws LdapException { return compare( new Dn( dn ), attributeName, value ); }
/** * {@inheritDoc} */ @Override public boolean compare( String dn, String attributeName, byte[] value ) throws LdapException { return compare( new Dn( dn ), attributeName, value ); }
/** * {@inheritDoc} */ @Override public boolean compare( String dn, String attributeName, Value value ) throws LdapException { return compare( new Dn( dn ), attributeName, value ); }
/** * {@inheritDoc} */ @Override public boolean compare( String dn, String attributeName, String value ) throws LdapException { return compare( new Dn( dn ), attributeName, value ); }
/** * {@inheritDoc} */ @Override public boolean compare( String dn, String attributeName, Value value ) throws LdapException { return compare( new Dn( dn ), attributeName, value ); }
/** * {@inheritDoc} */ @Override public boolean compare( Dn dn, String attributeName, byte[] value ) throws LdapException { CompareRequest compareRequest = new CompareRequestImpl(); compareRequest.setName( dn ); compareRequest.setAttributeId( attributeName ); compareRequest.setAssertionValue( value ); CompareResponse compareResponse = compare( compareRequest ); return processResponse( compareResponse ); }
/** * {@inheritDoc} */ @Override public boolean compare( Dn dn, String attributeName, byte[] value ) throws LdapException { CompareRequest compareRequest = new CompareRequestImpl(); compareRequest.setName( dn ); compareRequest.setAttributeId( attributeName ); compareRequest.setAssertionValue( value ); CompareResponse compareResponse = compare( compareRequest ); return processResponse( compareResponse ); }
/** * {@inheritDoc} */ @Override public boolean compare( Dn dn, String attributeName, String value ) throws LdapException { CompareRequest compareRequest = new CompareRequestImpl(); compareRequest.setName( dn ); compareRequest.setAttributeId( attributeName ); compareRequest.setAssertionValue( value ); CompareResponse compareResponse = compare( compareRequest ); return processResponse( compareResponse ); }
/** * {@inheritDoc} */ @Override public boolean compare( Dn dn, String attributeName, byte[] value ) throws LdapException { CompareRequest compareRequest = new CompareRequestImpl(); compareRequest.setName( dn ); compareRequest.setAttributeId( attributeName ); compareRequest.setAssertionValue( value ); CompareResponse compareResponse = compare( compareRequest ); return processResponse( compareResponse ); }
/** * {@inheritDoc} */ @Override public boolean compare( Dn dn, String attributeName, String value ) throws LdapException { CompareRequest compareRequest = new CompareRequestImpl(); compareRequest.setName( dn ); compareRequest.setAttributeId( attributeName ); compareRequest.setAssertionValue( value ); CompareResponse compareResponse = compare( compareRequest ); return processResponse( compareResponse ); }
/** * {@inheritDoc} */ @Override public boolean compare( Dn dn, String attributeName, String value ) throws LdapException { CompareRequest compareRequest = new CompareRequestImpl(); compareRequest.setName( dn ); compareRequest.setAttributeId( attributeName ); compareRequest.setAssertionValue( value ); CompareResponse compareResponse = compare( compareRequest ); return processResponse( compareResponse ); }
/** * {@inheritDoc} */ @Override public boolean compare( Dn dn, String attributeName, Value value ) throws LdapException { CompareRequest compareRequest = new CompareRequestImpl(); compareRequest.setName( dn ); compareRequest.setAttributeId( attributeName ); if ( value.isHumanReadable() ) { compareRequest.setAssertionValue( value.getValue() ); } else { compareRequest.setAssertionValue( value.getBytes() ); } CompareResponse compareResponse = compare( compareRequest ); return processResponse( compareResponse ); }
/** * {@inheritDoc} */ @Override public boolean compare( Dn dn, String attributeName, Value value ) throws LdapException { CompareRequest compareRequest = new CompareRequestImpl(); compareRequest.setName( dn ); compareRequest.setAttributeId( attributeName ); if ( value.isHumanReadable() ) { compareRequest.setAssertionValue( value.getValue() ); } else { compareRequest.setAssertionValue( value.getBytes() ); } CompareResponse compareResponse = compare( compareRequest ); return processResponse( compareResponse ); }
/** * {@inheritDoc} */ @Override public boolean compare( Dn dn, String attributeName, Value value ) throws LdapException { CompareRequest compareRequest = new CompareRequestImpl(); compareRequest.setName( dn ); compareRequest.setAttributeId( attributeName ); if ( value.isHumanReadable() ) { compareRequest.setAssertionValue( value.getValue() ); } else { compareRequest.setAssertionValue( value.getBytes() ); } CompareResponse compareResponse = compare( compareRequest ); return processResponse( compareResponse ); }
@Override public Response<Boolean> compare(final CompareRequest request) throws LdapException { Response<Boolean> response = null; try { final CompareRequestImpl cri = new CompareRequestImpl(); if (request.getControls() != null) { cri.addAllControls(config.getControlProcessor().processRequestControls(request.getControls())); } cri.setName(new Dn(request.getDn())); cri.setAttributeId(request.getAttribute().getName()); if (request.getAttribute().isBinary()) { cri.setAssertionValue(request.getAttribute().getBinaryValue()); } else { cri.setAssertionValue(request.getAttribute().getStringValue()); } final CompareResponse cr = connection.compare(cri); throwOperationException(request, cr); response = createResponse(request, cr.isTrue(), cr); } catch (LdapOperationException e) { processLdapOperationException(e); } catch (org.apache.directory.api.ldap.model.exception.LdapException e) { processLdapException(e); } return response; }