KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > za > org > coefficient > modules > project > ProjectConstants


1 /*
2  * Coefficient - facilitates project based collaboration
3  * Copyright (C) 2003, Dylan Etkin, CSIR icomtek
4  * PO Box 395
5  * Pretoria 0001, RSA
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18  */

19
20 package za.org.coefficient.modules.project;
21
22 import za.org.coefficient.core.BaseConfigurationBackedConstants;
23
24 /**
25  * This class is used to hold coefficient projectconfiguration properties that are
26  * backed up by storage on the DB.
27  *
28  */

29 public class ProjectConstants extends BaseConfigurationBackedConstants {
30     //~ Static fields/initializers =============================================
31

32     public static String JavaDoc PROJECT_NAME = "project";
33     public static boolean EDIT_PROJECT_NAME = true;
34     public static boolean MANAGE_PROJECT_VERSIONS = true;
35     public static boolean MANAGE_PROJECT_COMPONENTS = true;
36     public static boolean CHANGE_TO_WORKFLOW = true;
37     public static boolean ADD_REMOVE_MODULES = true;
38     public static boolean EDIT_CATEGORIES = true;
39     public static boolean EDIT_ATTRIBUTES = true;
40     public static boolean EDIT_ATTRIBUTE_DATA = true;
41     public static boolean CHANGE_WORKFLOW_STATE = true;
42     public static boolean CHANGE_TO_CUSTOM_PROJECT = true;
43     public static boolean ALLOW_PRIVATE_PROJECTS = true;
44     public static boolean EDIT_THEMES = true;
45     public static boolean SHOW_IN_LINE_MODULE_SUMMARIES = false;
46     public static boolean RENDER_MODULE_LINKS_HORIZONTAL = true;
47
48     private static String JavaDoc className =
49         "za.org.coefficient.modules.project.ProjectConstants";
50     private static String JavaDoc propertiesFileName = "project.properties";
51
52     static {
53         ProjectConstants.init();
54     }
55
56     public static void init() {
57         BaseConfigurationBackedConstants.init(propertiesFileName, className);
58     }
59 }
60
Popular Tags