001: /***************************************************************
002: * This file is part of the [fleXive](R) project.
003: *
004: * Copyright (c) 1999-2008
005: * UCS - unique computing solutions gmbh (http://www.ucs.at)
006: * All rights reserved
007: *
008: * The [fleXive](R) project is free software; you can redistribute
009: * it and/or modify it under the terms of the GNU General Public
010: * License as published by the Free Software Foundation;
011: * either version 2 of the License, or (at your option) any
012: * later version.
013: *
014: * The GNU General Public License can be found at
015: * http://www.gnu.org/copyleft/gpl.html.
016: * A copy is found in the textfile GPL.txt and important notices to the
017: * license from the author are found in LICENSE.txt distributed with
018: * these libraries.
019: *
020: * This library is distributed in the hope that it will be useful,
021: * but WITHOUT ANY WARRANTY; without even the implied warranty of
022: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
023: * GNU General Public License for more details.
024: *
025: * For further information about UCS - unique computing solutions gmbh,
026: * please see the company website: http://www.ucs.at
027: *
028: * For further information about [fleXive](R), please see the
029: * project website: http://www.flexive.org
030: *
031: *
032: * This copyright notice MUST APPEAR in all copies of the file!
033: ***************************************************************/package com.flexive.shared.configuration;
034:
035: import com.flexive.shared.search.ResultPreferences;
036: import com.flexive.shared.search.query.QueryRootNode;
037:
038: /**
039: * Flexive system parameter definitions.
040: *
041: * @author Daniel Lichtenberger (daniel.lichtenberger@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)
042: * @version $Rev: 181 $
043: */
044: public class SystemParameters {
045: /**
046: * Boolean parameter to determine if run-once scripts have been executed
047: */
048: public static final Parameter<Boolean> DIVISION_RUNONCE = ParameterFactory
049: .newInstance(Boolean.class,
050: SystemParameterPaths.DIVISION_RUNONCE_CONFIG,
051: "run.once", false);
052: /**
053: * Configuration parameter for storing user content queries assembled in the GUI.
054: */
055: public static final Parameter<QueryRootNode> USER_QUERIES_CONTENT = ParameterFactory
056: .newInstance(QueryRootNode.class,
057: SystemParameterPaths.USER_QUERIES_CONTENT, "", null);
058: public static final Parameter<ResultPreferences> USER_RESULT_PREFERENCES = ParameterFactory
059: .newInstance(ResultPreferences.class,
060: SystemParameterPaths.USER_RESULT_PREFERENCES, null);
061: // global parameters
062: /**
063: * Root login parameter
064: */
065: public static final Parameter<String> GLOBAL_ROOT_LOGIN = ParameterFactory
066: .newInstance(String.class,
067: SystemParameterPaths.GLOBAL_CONFIG, "root_login",
068: "admin");
069: /**
070: * Root password parameter
071: */
072: public static final Parameter<String> GLOBAL_ROOT_PASSWORD = ParameterFactory
073: .newInstance(String.class,
074: SystemParameterPaths.GLOBAL_CONFIG,
075: "root_password", "123456");
076: /**
077: * Division datasource parameter
078: */
079: public static final Parameter<String> GLOBAL_DATASOURCES = ParameterFactory
080: .newInstance(String.class,
081: SystemParameterPaths.GLOBAL_DIVISIONS_DS, "", "");
082: /**
083: * Divison domain matcher parameter
084: */
085: public static final Parameter<String> GLOBAL_DIVISIONS_DOMAINS = ParameterFactory
086: .newInstance(String.class,
087: SystemParameterPaths.GLOBAL_DIVISIONS_DOMAINS, "",
088: "");
089: /**
090: * Tree Caption property id
091: */
092: public static final Parameter<Long> TREE_CAPTION_PROPERTY = ParameterFactory
093: .newInstance(Long.class,
094: SystemParameterPaths.DIVISION_TREE, "caption", -1L);
095: /**
096: * Tree Caption root assignment id
097: */
098: public static final Parameter<Long> TREE_CAPTION_ROOTASSIGNMENT = ParameterFactory
099: .newInstance(Long.class,
100: SystemParameterPaths.DIVISION_TREE, "caption", -1L);
101: /**
102: * Tree checks enabled
103: */
104: public static final Parameter<Boolean> TREE_CHECKS_ENABLED = ParameterFactory
105: .newInstance(Boolean.class,
106: SystemParameterPaths.DIVISION_TREE, "treeChecks",
107: false);
108: /**
109: * Tree FQN property
110: */
111: public static final Parameter<Long> TREE_FQN_PROPERTY = ParameterFactory
112: .newInstance(Long.class,
113: SystemParameterPaths.DIVISION_TREE, "fqn", -1L);
114: /**
115: * Tree FQN root assignment id
116: */
117: public static final Parameter<Long> TREE_FQN_ROOTASSIGNMENT = ParameterFactory
118: .newInstance(Long.class,
119: SystemParameterPaths.DIVISION_TREE, "fqn", -1L);
120: }
|