KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ivata > groupware > admin > setting > SettingConstants


1 // Source file: h:/cvslocal/ivata groupware/src/com/ivata/intranet/admin/setting/SettingConstants.java
2

3 /*
4  * Copyright (c) 2001 - 2005 ivata limited.
5  * All rights reserved.
6  * -----------------------------------------------------------------------------
7  * ivata groupware may be redistributed under the GNU General Public
8  * License as published by the Free Software Foundation;
9  * version 2 of the License.
10  *
11  * These programs are free software; you can redistribute them and/or
12  * modify them under the terms of the GNU General Public License
13  * as published by the Free Software Foundation; version 2 of the License.
14  *
15  * These programs are distributed in the hope that they will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18  *
19  * See the GNU General Public License in the file LICENSE.txt for more
20  * details.
21  *
22  * If you would like a copy of the GNU General Public License write to
23  *
24  * Free Software Foundation, Inc.
25  * 59 Temple Place - Suite 330
26  * Boston, MA 02111-1307, USA.
27  *
28  *
29  * To arrange commercial support and licensing, contact ivata at
30  * http://www.ivata.com/contact.jsp
31  * -----------------------------------------------------------------------------
32  * $Log: SettingConstants.java,v $
33  * Revision 1.2 2005/04/09 17:19:57 colinmacleod
34  * Changed copyright text to GPL v2 explicitly.
35  *
36  * Revision 1.1.1.1 2005/03/10 17:51:36 colinmacleod
37  * Restructured ivata op around Hibernate/PicoContainer.
38  * Renamed ivata groupware.
39  *
40  * Revision 1.1 2004/09/30 15:15:59 colinmacleod
41  * Split off addressbook elements into security subproject.
42  *
43  * Revision 1.4 2004/07/13 19:54:31 colinmacleod
44  * Moved project to POJOs from EJBs.
45  * Applied PicoContainer to services layer (replacing session EJBs).
46  * Applied Hibernate to persistence layer (replacing entity EJBs).
47  *
48  * Revision 1.3 2004/03/21 21:16:05 colinmacleod
49  * Shortened name to ivata op.
50  *
51  * Revision 1.2 2004/02/01 22:00:32 colinmacleod
52  * Added full names to author tags
53  *
54  * Revision 1.1.1.1 2004/01/27 20:57:46 colinmacleod
55  * Moved ivata openportal to SourceForge..
56  *
57  * Revision 1.3 2003/10/17 12:36:12 jano
58  * fixing problems with building
59  * converting intranet -> portal
60  * Eclipse building
61  *
62  * Revision 1.2 2003/10/15 13:04:20 colin
63  * fixing for XDoclet
64  *
65  * Revision 1.1 2003/02/24 18:56:14 colin
66  * added to admin
67  *
68  * Revision 1.3 2003/02/07 14:40:45 peter
69  * added new constants and parameter to validate
70  *
71  * Revision 1.2 2003/02/04 17:43:50 colin
72  * copyright notice
73  *
74  * Revision 1.1 2002/06/17 07:28:32 colin
75  * improved and extended javadoc documentation
76  * moved setting constants into separate class
77  * -----------------------------------------------------------------------------
78  */

79 package com.ivata.groupware.admin.setting;
80
81
82 /**
83  * <p>This class stores the constant values for the types of setting used in
84  * {@link SettingBean SettingBean} and {@link SettingBeans SettingsBean}.
85  * Currently, the following types are supported:<br/>
86  * <ul>
87  * <li>integer</li>
88  * <li>string</li>
89  * <li>boolean</li>
90  * </ul></p>
91  *
92  * @since 2001-06-16
93  * @author Colin MacLeod
94  * <a HREF='mailto:colin.macleod@ivata.com'>colin.macleod@ivata.com</a>
95  * @version $Revision: 1.2 $
96  */

97 public class SettingConstants {
98     /**
99      * <p>Represents an integer setting.</p>
100      */

101     public static final int DATA_TYPE_INTEGER = 0;
102     /**
103      * <p>Represents a string setting.</p>
104      */

105     public static final int DATA_TYPE_STRING = 1;
106     /**
107      * <p>Represents a boolean setting.</p>
108      */

109     public static final int DATA_TYPE_BOOLEAN = 2;
110     /**
111      * <p>Represents system settings in validation.</p>
112      */

113     public final static int SETTING_SYSTEM = -1;
114
115     /**
116      * <p>Represents user settings in validation.</p>
117      */

118     public final static int SETTING_USER = -2;
119 }
120
Popular Tags