mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Matthew Swift
25.33.2012 263d085885df024dca9250cc03c807912b0a7662
opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/requests/AddRequest.java
@@ -6,17 +6,16 @@
 * (the "License").  You may not use this file except in compliance
 * with the License.
 *
 * You can obtain a copy of the license at
 * trunk/opendj3/legal-notices/CDDLv1_0.txt
 * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
 * or http://forgerock.org/license/CDDLv1.0.html.
 * See the License for the specific language governing permissions
 * and limitations under the License.
 *
 * When distributing Covered Code, include this CDDL HEADER in each
 * file and include the License file at
 * trunk/opendj3/legal-notices/CDDLv1_0.txt.  If applicable,
 * add the following below this CDDL HEADER, with the fields enclosed
 * by brackets "[]" replaced with your own identifying information:
 * file and include the License file at legal-notices/CDDLv1_0.txt.
 * If applicable, add the following below this CDDL HEADER, with the
 * fields enclosed by brackets "[]" replaced with your own identifying
 * information:
 *      Portions Copyright [yyyy] [name of copyright owner]
 *
 * CDDL HEADER END
@@ -28,19 +27,21 @@
package org.forgerock.opendj.ldap.requests;
import java.util.Collection;
import java.util.List;
import org.forgerock.opendj.ldap.*;
import org.forgerock.opendj.ldap.Attribute;
import org.forgerock.opendj.ldap.AttributeDescription;
import org.forgerock.opendj.ldap.ByteString;
import org.forgerock.opendj.ldap.DN;
import org.forgerock.opendj.ldap.DecodeException;
import org.forgerock.opendj.ldap.DecodeOptions;
import org.forgerock.opendj.ldap.Entry;
import org.forgerock.opendj.ldap.controls.Control;
import org.forgerock.opendj.ldap.controls.ControlDecoder;
import org.forgerock.opendj.ldif.ChangeRecord;
import org.forgerock.opendj.ldif.ChangeRecordVisitor;
/**
 * The Add operation allows a client to request the addition of an entry into
 * the Directory.
@@ -50,176 +51,126 @@
 * {@code creatorsName} attributes must not be included, since the server
 * maintains these automatically.
 */
public interface AddRequest extends Request, ChangeRecord, Entry
{
  /**
   * {@inheritDoc}
   */
  <R, P> R accept(ChangeRecordVisitor<R, P> v, P p);
public interface AddRequest extends Request, ChangeRecord, Entry {
    /**
     * {@inheritDoc}
     */
    <R, P> R accept(ChangeRecordVisitor<R, P> v, P p);
    /**
     * {@inheritDoc}
     */
    boolean addAttribute(Attribute attribute);
    /**
     * {@inheritDoc}
     */
    boolean addAttribute(Attribute attribute, Collection<ByteString> duplicateValues);
  /**
   * {@inheritDoc}
   */
  boolean addAttribute(Attribute attribute);
    /**
     * {@inheritDoc}
     */
    AddRequest addAttribute(String attributeDescription, Object... values);
    /**
     * {@inheritDoc}
     */
    AddRequest addControl(Control control);
    /**
     * {@inheritDoc}
     */
    AddRequest clearAttributes();
  /**
   * {@inheritDoc}
   */
  boolean addAttribute(Attribute attribute,
      Collection<ByteString> duplicateValues);
    /**
     * {@inheritDoc}
     */
    boolean containsAttribute(Attribute attribute, Collection<ByteString> missingValues);
    /**
     * {@inheritDoc}
     */
    boolean containsAttribute(String attributeDescription, Object... values);
    /**
     * {@inheritDoc}
     */
    Iterable<Attribute> getAllAttributes();
  /**
   * {@inheritDoc}
   */
  AddRequest addAttribute(String attributeDescription, Object... values);
    /**
     * {@inheritDoc}
     */
    Iterable<Attribute> getAllAttributes(AttributeDescription attributeDescription);
    /**
     * {@inheritDoc}
     */
    Iterable<Attribute> getAllAttributes(String attributeDescription);
    /**
     * {@inheritDoc}
     */
    Attribute getAttribute(AttributeDescription attributeDescription);
  /**
   * {@inheritDoc}
   */
  AddRequest addControl(Control control);
    /**
     * {@inheritDoc}
     */
    Attribute getAttribute(String attributeDescription);
    /**
     * {@inheritDoc}
     */
    int getAttributeCount();
    /**
     * {@inheritDoc}
     */
    <C extends Control> C getControl(ControlDecoder<C> decoder, DecodeOptions options)
            throws DecodeException;
  /**
   * {@inheritDoc}
   */
  AddRequest clearAttributes();
    /**
     * {@inheritDoc}
     */
    List<Control> getControls();
    /**
     * {@inheritDoc}
     */
    DN getName();
    /**
     * {@inheritDoc}
     */
    boolean removeAttribute(Attribute attribute, Collection<ByteString> missingValues);
  /**
   * {@inheritDoc}
   */
  boolean containsAttribute(Attribute attribute,
      Collection<ByteString> missingValues);
    /**
     * {@inheritDoc}
     */
    boolean removeAttribute(AttributeDescription attributeDescription);
    /**
     * {@inheritDoc}
     */
    AddRequest removeAttribute(String attributeDescription, Object... values);
    /**
     * {@inheritDoc}
     */
    boolean replaceAttribute(Attribute attribute);
  /**
   * {@inheritDoc}
   */
  boolean containsAttribute(String attributeDescription, Object... values);
  /**
   * {@inheritDoc}
   */
  Iterable<Attribute> getAllAttributes();
  /**
   * {@inheritDoc}
   */
  Iterable<Attribute> getAllAttributes(AttributeDescription attributeDescription);
  /**
   * {@inheritDoc}
   */
  Iterable<Attribute> getAllAttributes(String attributeDescription);
  /**
   * {@inheritDoc}
   */
  Attribute getAttribute(AttributeDescription attributeDescription);
  /**
   * {@inheritDoc}
   */
  Attribute getAttribute(String attributeDescription);
  /**
   * {@inheritDoc}
   */
  int getAttributeCount();
  /**
   * {@inheritDoc}
   */
  <C extends Control> C getControl(ControlDecoder<C> decoder,
      DecodeOptions options) throws DecodeException;
  /**
   * {@inheritDoc}
   */
  List<Control> getControls();
  /**
   * {@inheritDoc}
   */
  DN getName();
  /**
   * {@inheritDoc}
   */
  boolean removeAttribute(Attribute attribute,
      Collection<ByteString> missingValues);
  /**
   * {@inheritDoc}
   */
  boolean removeAttribute(AttributeDescription attributeDescription);
  /**
   * {@inheritDoc}
   */
  AddRequest removeAttribute(String attributeDescription, Object... values);
  /**
   * {@inheritDoc}
   */
  boolean replaceAttribute(Attribute attribute);
  /**
   * {@inheritDoc}
   */
  AddRequest replaceAttribute(String attributeDescription, Object... values);
  /**
   * {@inheritDoc}
   */
  AddRequest setName(DN dn);
    /**
     * {@inheritDoc}
     */
    AddRequest replaceAttribute(String attributeDescription, Object... values);
    /**
     * {@inheritDoc}
     */
    AddRequest setName(DN dn);
  /**
   * {@inheritDoc}
   */
  AddRequest setName(String dn);
    /**
     * {@inheritDoc}
     */
    AddRequest setName(String dn);
}