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

kenneth_suter
05.02.2007 0f7b83578af3a66529590cf0516dc8bc1b79b8c1
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/UserData.java
@@ -72,6 +72,10 @@
  private SuffixesToReplicateOptions suffixesToReplicateOptions;
  private boolean silent;
  private boolean noninteractive;
  /**
   * Creates a user data object with default values.
   */
@@ -387,6 +391,40 @@
  }
  /**
   * Sets whether or not this session should print messages to the
   * console if in CLI mode.
   * @param silent where true indicates this sesssion should be silent
   */
  public void setSilent(boolean silent) {
    this.silent = silent;
  }
  /**
   * Indicates whether or not the user has requested silent mode.
   * @return boolean where true indicates this session should be silent.
   */
  public boolean isSilent() {
    return this.silent;
  }
  /**
   * Sets whether or not this session should solicite feedback from the user.
   * @param noninteractive boolean where true indicates this application
   *        should NOT solicite feedback from the user
   */
  public void setNoninteractive(boolean noninteractive) {
    this.noninteractive = noninteractive;
  }
  /**
   * Indicates whether or not the user has requested noninteractive mode.
   * @return boolean where true indicates this session should be noninteractive
   */
  public boolean isNoninteractive() {
    return this.noninteractive;
  }
  /**
   * Provides the port that will be proposed to the user in the second page of
   * the installation wizard. It will check whether we can use ports of type
   * X389 and if not it will return -1.