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: RightConstants.java,v $
031: * Revision 1.2 2005/04/09 17:19:07 colinmacleod
032: * Changed copyright text to GPL v2 explicitly.
033: *
034: * Revision 1.1.1.1 2005/03/10 17:50:35 colinmacleod
035: * Restructured ivata op around Hibernate/PicoContainer.
036: * Renamed ivata groupware.
037: *
038: * Revision 1.2 2004/03/21 21:16:06 colinmacleod
039: * Shortened name to ivata op.
040: *
041: * Revision 1.1.1.1 2004/01/27 20:57:51 colinmacleod
042: * Moved ivata openportal to SourceForge..
043: *
044: * Revision 1.3 2003/10/17 12:36:12 jano
045: * fixing problems with building
046: * converting intranet -> portal
047: * Eclipse building
048: *
049: * Revision 1.2 2003/10/15 13:18:02 colin
050: * fixing for XDoclet
051: *
052: * Revision 1.7 2003/08/19 14:53:30 jano
053: * *** empty log message ***
054: *
055: * Revision 1.6 2003/08/15 14:04:05 peter
056: * directory constant fixed
057: *
058: * Revision 1.5 2003/08/13 13:44:44 jano
059: * mising DETAIL_DIRECTORY
060: *
061: * Revision 1.4 2003/08/13 13:35:53 jano
062: * we don't need addressBook detail
063: *
064: * Revision 1.3 2003/07/31 08:48:30 jano
065: * new detail for multiple addressBook
066: *
067: * Revision 1.2 2003/05/02 16:26:03 peter
068: * added detail for handling users
069: *
070: * Revision 1.1 2003/02/24 19:09:21 colin
071: * moved to business
072: *
073: * Revision 1.7 2003/02/11 09:19:17 peter
074: * *** empty log message ***
075: *
076: * Revision 1.6 2003/02/11 09:11:49 peter
077: * added detail constants for settings
078: *
079: * Revision 1.5 2003/02/04 17:43:45 colin
080: * copyright notice
081: *
082: * Revision 1.4 2002/07/12 09:42:04 colin
083: * added comment right constant
084: *
085: * Revision 1.3 2002/06/28 13:15:23 colin
086: * first addressbook release
087: *
088: * Revision 1.2 2002/06/17 10:45:45 colin
089: * added constants for topic_item...
090: *
091: * Revision 1.1 2002/06/13 11:21:24 colin
092: * first version with rose model integration.
093: * -----------------------------------------------------------------------------
094: */
095: package com.ivata.groupware.business.addressbook.person.group.right;
096:
097: /**
098: * <p>Store all the constants for person group rights. You need to use these
099: * constants to identify the 'detail' of right you are applying, or the access
100: * value.</p>
101: *
102: * @since 2002-05-19
103: * @author Colin MacLeod
104: * <a href='mailto:colin.macleod@ivata.com'>colin.macleod@ivata.com</a>
105: * @version $Revision: 1.2 $
106: */
107: public class RightConstants {
108:
109: /**
110: * <p>This right allows a group to add, view or remove group memberships.</p>
111: */
112: public final static Integer DETAIL_PERSON_GROUP_MEMBER = new Integer(
113: 1);
114:
115: /**
116: * <p>This right allows a group to add, view or remove library items, based
117: * on their topic.</p>
118: */
119: public final static Integer DETAIL_LIBRARY_ITEM_TOPIC = new Integer(
120: 2);
121:
122: /**
123: * <p>This right allows a group to add, amend or remove topics.</p>
124: */
125: public final static Integer DETAIL_LIBRARY_TOPIC = new Integer(3);
126:
127: /**
128: * <p>This right allows a group to add, amend or remove comment, based on
129: * the topics of their items.</p>
130: */
131: public final static Integer DETAIL_LIBRARY_COMMENT_TOPIC = new Integer(
132: 4);
133:
134: /**
135: * <p>This right allows a group to amend a setting on user level.</p>
136: */
137: public final static Integer DETAIL_SETTING_USER = new Integer(5);
138:
139: /**
140: * <p>This right allows a group to amend settings on system level.</p>
141: */
142: public final static Integer DETAIL_SETTING_SYSTEM = new Integer(6);
143:
144: /**
145: * <p>This right allows a group to add to, amend and remove a directory.</p>
146: */
147: public final static Integer DETAIL_DIRECTORY = new Integer(8);
148:
149: /**
150: * <p>Gives the group the right to view/select an element.</p>
151: */
152: public final static Integer ACCESS_VIEW = new Integer(0);
153:
154: /**
155: * <p>Gives the group the right to add/insert an element.</p>
156: */
157: public final static Integer ACCESS_ADD = new Integer(1);
158:
159: /**
160: * <p>Gives the group the right to amend/update an element.</p>
161: */
162: public final static Integer ACCESS_AMEND = new Integer(2);
163:
164: /**
165: * <p>Gives the group the right to remove/delete an element.</p>
166: */
167: public final static Integer ACCESS_REMOVE = new Integer(3);
168: }
|