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

Jean-Noël Rouvignac
11.39.2016 18bcdc6dd02ec91f32ba9922def2ffb3e4e38073
opendj-server-legacy/src/main/java/org/opends/server/tools/dsreplication/ReplicationUserData.java
@@ -12,13 +12,15 @@
 * information: "Portions Copyright [year] [name of copyright owner]".
 *
 * Copyright 2008-2009 Sun Microsystems, Inc.
 * Portions Copyright 2013-2015 ForgeRock AS.
 * Portions Copyright 2013-2016 ForgeRock AS.
 */
package org.opends.server.tools.dsreplication;
import java.util.LinkedList;
import java.util.List;
import org.forgerock.opendj.ldap.DN;
/**
 * This class is used to store the information provided by the user in the
 * replication command line.  It is required because when we are in interactive
@@ -26,7 +28,7 @@
 */
public abstract class ReplicationUserData
{
  private final LinkedList<String> baseDNs = new LinkedList<>();
  private final LinkedList<DN> baseDNs = new LinkedList<>();
  private String adminUid;
  private String adminPwd;
@@ -70,7 +72,7 @@
   * Returns the Base DNs to replicate.
   * @return the Base DNs to replicate.
   */
  public List<String> getBaseDNs()
  public List<DN> getBaseDNs()
  {
    return new LinkedList<>(baseDNs);
  }
@@ -79,7 +81,7 @@
   * Sets the Base DNs to replicate.
   * @param baseDNs the Base DNs to replicate.
   */
  public void setBaseDNs(List<String> baseDNs)
  public void setBaseDNs(List<DN> baseDNs)
  {
    this.baseDNs.clear();
    this.baseDNs.addAll(baseDNs);