001: /*
002: * Copyright (c) 2001 - 2005 ivata limited.
003: * All rights reserved.
004: * -----------------------------------------------------------------------------
005: * ivata groupware may be redistributed under the GNU General Public
006: * License as published by the Free Software Foundation;
007: * version 2 of the License.
008: *
009: * These programs are free software; you can redistribute them and/or
010: * modify them under the terms of the GNU General Public License
011: * as published by the Free Software Foundation; version 2 of the License.
012: *
013: * These programs are distributed in the hope that they will be useful,
014: * but WITHOUT ANY WARRANTY; without even the implied warranty of
015: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
016: *
017: * See the GNU General Public License in the file LICENSE.txt for more
018: * details.
019: *
020: * If you would like a copy of the GNU General Public License write to
021: *
022: * Free Software Foundation, Inc.
023: * 59 Temple Place - Suite 330
024: * Boston, MA 02111-1307, USA.
025: *
026: *
027: * To arrange commercial support and licensing, contact ivata at
028: * http://www.ivata.com/contact.jsp
029: * -----------------------------------------------------------------------------
030: * $Log: SettingConstants.java,v $
031: * Revision 1.3 2005/10/11 18:57:17 colinmacleod
032: * Fixed some checkstyle and javadoc issues.
033: *
034: * Revision 1.2 2005/10/02 14:08:59 colinmacleod
035: * Added/improved log4j logging.
036: *
037: * Revision 1.1 2005/09/29 13:06:05 colinmacleod
038: * First version of setting subproject.
039: * Existing classes restructured, new setting user interface created.
040: * Flexible XML UI configuration makes it easy to reuse the same web pages in
041: * other projects.
042: * Web files work as stand-alone webapp for testing.
043: *
044: * Revision 1.2 2005/04/09 17:19:57 colinmacleod
045: * Changed copyright text to GPL v2 explicitly.
046: *
047: * Revision 1.1.1.1 2005/03/10 17:51:36 colinmacleod
048: * Restructured ivata op around Hibernate/PicoContainer.
049: * Renamed ivata groupware.
050: *
051: * Revision 1.1 2004/09/30 15:15:59 colinmacleod
052: * Split off addressbook elements into security subproject.
053: *
054: * Revision 1.4 2004/07/13 19:54:31 colinmacleod
055: * Moved project to POJOs from EJBs.
056: * Applied PicoContainer to services layer (replacing session EJBs).
057: * Applied Hibernate to persistence layer (replacing entity EJBs).
058: *
059: * Revision 1.3 2004/03/21 21:16:05 colinmacleod
060: * Shortened name to ivata op.
061: *
062: * Revision 1.2 2004/02/01 22:00:32 colinmacleod
063: * Added full names to author tags
064: *
065: * Revision 1.1.1.1 2004/01/27 20:57:46 colinmacleod
066: * Moved ivata openportal to SourceForge..
067: *
068: * Revision 1.3 2003/10/17 12:36:12 jano
069: * fixing problems with building
070: * converting intranet -> portal
071: * Eclipse building
072: *
073: * Revision 1.2 2003/10/15 13:04:20 colin
074: * fixing for XDoclet
075: *
076: * Revision 1.1 2003/02/24 18:56:14 colin
077: * added to admin
078: *
079: * Revision 1.3 2003/02/07 14:40:45 peter
080: * added new constants and parameter to validate
081: *
082: * Revision 1.2 2003/02/04 17:43:50 colin
083: * copyright notice
084: *
085: * Revision 1.1 2002/06/17 07:28:32 colin
086: * improved and extended javadoc documentation
087: * moved setting constants into separate class
088: * -----------------------------------------------------------------------------
089: */
090: package com.ivata.groupware.admin.setting;
091:
092: /**
093: * <p>This class stores the constant values for the types of setting used in
094: * {@link SettingBean SettingBean} and {@link SettingBeans SettingsBean}.
095: * Currently, the following types are supported:<br/>
096: * <ul>
097: * <li>integer</li>
098: * <li>string</li>
099: * <li>boolean</li>
100: * </ul></p>
101: *
102: * @since 2001-06-16
103: * @author Colin MacLeod
104: * <a href='mailto:colin.macleod@ivata.com'>colin.macleod@ivata.com</a>
105: * @version $Revision: 1.3 $
106: */
107: public final class SettingConstants {
108: /**
109: * <p>Represents an integer setting.</p>
110: */
111: public static final int DATA_TYPE_INTEGER = 0;
112: /**
113: * <p>Represents a string setting.</p>
114: */
115: public static final int DATA_TYPE_STRING = 1;
116: /**
117: * <p>Represents a boolean setting.</p>
118: */
119: public static final int DATA_TYPE_BOOLEAN = 2;
120: /**
121: * <p>Represents system settings in validation.</p>
122: */
123: public static final int SETTING_SYSTEM = -1;
124:
125: /**
126: * <p>Represents user settings in validation.</p>
127: */
128: public static final int SETTING_USER = -2;
129:
130: /**
131: * Private default constructor enforces utility class behavior.
132: */
133: private SettingConstants() {
134: }
135: }
|