001/*
002 * The contents of this file are subject to the terms of the Common Development and
003 * Distribution License (the License). You may not use this file except in compliance with the
004 * License.
005 *
006 * You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
007 * specific language governing permission and limitations under the License.
008 *
009 * When distributing Covered Software, include this CDDL Header Notice in each file and include
010 * the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
011 * Header, with the fields enclosed by brackets [] replaced by your own identifying
012 * information: "Portions Copyright [year] [name of copyright owner]".
013 *
014 * Copyright 2008 Sun Microsystems, Inc.
015 * Portions Copyright 2011-2016 ForgeRock AS.
016 */
017package org.opends.quicksetup;
018
019import org.opends.admin.ads.ADSContext;
020
021/**
022 * Defines common constants.
023 */
024public class Constants {
025
026  /** Platform appropriate line separator. */
027  public static final String LINE_SEPARATOR = System.getProperty("line.separator");
028
029  /** HTML line break tag. */
030  public static final String HTML_LINE_BREAK = "<br>";
031
032  /** HTML bold open tag. */
033  public static final String HTML_BOLD_OPEN = "<b>";
034
035  /** HTML bold close tag. */
036  public static final String HTML_BOLD_CLOSE = "</b>";
037
038  /** HTML list item open tag. */
039  public static final String HTML_LIST_ITEM_OPEN = "<li>";
040
041  /** HTML list item close tag. */
042  public static final String HTML_LIST_ITEM_CLOSE = "</li>";
043
044  /** Default dynamic name of directory manager. */
045  public static final String DIRECTORY_MANAGER_DN = "cn=Directory Manager";
046
047  /** Default global admin UID. */
048  public static final String GLOBAL_ADMIN_UID = ADSContext.GLOBAL_ADMIN_UID;
049  /** These HTML tags cause a line break in formatted text. */
050  public static final String[] BREAKING_TAGS = {
051          HTML_LINE_BREAK,
052          HTML_LIST_ITEM_CLOSE
053  };
054
055  /** DN of the schema object. */
056  public static final String SCHEMA_DN = "cn=schema";
057
058  /** DN of legacy replication changes base DN for backwards compatibility with OpenDJ <= 2.6.x. */
059  public static final String REPLICATION_CHANGES_DN = "dc=replicationChanges";
060
061  /** The cli java system property. */
062  public static final String CLI_JAVA_PROPERTY = "org.opends.quicksetup.cli";
063
064  /** The default replication port. */
065  public static final int DEFAULT_REPLICATION_PORT = 8989;
066
067  /** The maximum chars we show in a line of a dialog. */
068  public static final int MAX_CHARS_PER_LINE_IN_DIALOG = 100;
069}