| | |
| | | * |
| | | * |
| | | * Copyright 2010 Sun Microsystems, Inc. |
| | | * Portions copyright 2012 ForgeRock AS. |
| | | */ |
| | | |
| | | package org.forgerock.opendj.ldap.requests; |
| | | |
| | | |
| | | |
| | | import org.forgerock.i18n.LocalizedIllegalArgumentException; |
| | | import org.forgerock.opendj.ldap.AttributeDescription; |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.DN; |
| | |
| | | */ |
| | | CompareRequestImpl(final DN name, |
| | | final AttributeDescription attributeDescription, |
| | | final ByteString assertionValue) throws NullPointerException |
| | | final ByteString assertionValue) |
| | | { |
| | | this.name = name; |
| | | this.attributeDescription = attributeDescription; |
| | |
| | | * If {@code compareRequest} was {@code null} . |
| | | */ |
| | | CompareRequestImpl(final CompareRequest compareRequest) |
| | | throws NullPointerException |
| | | { |
| | | super(compareRequest); |
| | | this.name = compareRequest.getName(); |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | public CompareRequest setAssertionValue(final ByteString value) |
| | | throws UnsupportedOperationException, NullPointerException |
| | | { |
| | | Validator.ensureNotNull(value); |
| | | this.assertionValue = value; |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | public CompareRequest setAssertionValue(final Object value) |
| | | throws UnsupportedOperationException, NullPointerException |
| | | { |
| | | Validator.ensureNotNull(value); |
| | | this.assertionValue = ByteString.valueOf(value); |
| | |
| | | */ |
| | | public CompareRequest setAttributeDescription( |
| | | final AttributeDescription attributeDescription) |
| | | throws UnsupportedOperationException, NullPointerException |
| | | { |
| | | Validator.ensureNotNull(attributeDescription); |
| | | this.attributeDescription = attributeDescription; |
| | |
| | | */ |
| | | public CompareRequest setAttributeDescription( |
| | | final String attributeDescription) |
| | | throws LocalizedIllegalArgumentException, UnsupportedOperationException, |
| | | NullPointerException |
| | | { |
| | | Validator.ensureNotNull(attributeDescription); |
| | | this.attributeDescription = AttributeDescription |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | public CompareRequest setName(final DN dn) |
| | | throws UnsupportedOperationException, NullPointerException |
| | | { |
| | | Validator.ensureNotNull(dn); |
| | | this.name = dn; |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | public CompareRequest setName(final String dn) |
| | | throws LocalizedIllegalArgumentException, UnsupportedOperationException, |
| | | NullPointerException |
| | | { |
| | | Validator.ensureNotNull(dn); |
| | | this.name = DN.valueOf(dn); |