| | |
| | | * |
| | | * |
| | | * Copyright 2010 Sun Microsystems, Inc. |
| | | * Portions copyright 2012 ForgeRock AS. |
| | | */ |
| | | |
| | | package org.forgerock.opendj.ldap.requests; |
| | |
| | | import java.util.LinkedList; |
| | | import java.util.List; |
| | | |
| | | import org.forgerock.i18n.LocalizedIllegalArgumentException; |
| | | import org.forgerock.opendj.ldap.*; |
| | | import org.forgerock.opendj.ldif.ChangeRecordVisitor; |
| | | |
| | |
| | | * @throws NullPointerException |
| | | * If {@code name} was {@code null}. |
| | | */ |
| | | ModifyRequestImpl(final DN name) throws NullPointerException |
| | | ModifyRequestImpl(final DN name) |
| | | { |
| | | this.name = name; |
| | | } |
| | |
| | | * If {@code modifyRequest} was {@code null} . |
| | | */ |
| | | ModifyRequestImpl(final ModifyRequest modifyRequest) |
| | | throws NullPointerException |
| | | { |
| | | super(modifyRequest); |
| | | this.name = modifyRequest.getName(); |
| | |
| | | public ModifyRequest addChange(final ModificationType type, |
| | | final String attributeDescription, final Object firstValue, |
| | | final Object... remainingValues) |
| | | throws LocalizedIllegalArgumentException, UnsupportedOperationException, |
| | | NullPointerException |
| | | { |
| | | // TODO Auto-generated method stub |
| | | return null; |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | public ModifyRequest addModification(final Modification change) |
| | | throws UnsupportedOperationException, NullPointerException |
| | | { |
| | | Validator.ensureNotNull(change); |
| | | changes.add(change); |
| | |
| | | */ |
| | | public ModifyRequest addModification(final ModificationType type, |
| | | final String attributeDescription, final Object... values) |
| | | throws LocalizedIllegalArgumentException, UnsupportedOperationException, |
| | | NullPointerException |
| | | { |
| | | Validator.ensureNotNull(type, attributeDescription, values); |
| | | changes.add(new Modification(type, new LinkedAttribute( |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | public ModifyRequest setName(final DN dn) |
| | | throws UnsupportedOperationException, NullPointerException |
| | | { |
| | | Validator.ensureNotNull(dn); |
| | | this.name = dn; |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | public ModifyRequest setName(final String dn) |
| | | throws LocalizedIllegalArgumentException, UnsupportedOperationException, |
| | | NullPointerException |
| | | { |
| | | Validator.ensureNotNull(dn); |
| | | this.name = DN.valueOf(dn); |