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