KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ivata > groupware > business > addressbook > person > group > right > RightConstants


1 /*
2  * Copyright (c) 2001 - 2005 ivata limited.
3  * All rights reserved.
4  * -----------------------------------------------------------------------------
5  * ivata groupware may be redistributed under the GNU General Public
6  * License as published by the Free Software Foundation;
7  * version 2 of the License.
8  *
9  * These programs are free software; you can redistribute them and/or
10  * modify them under the terms of the GNU General Public License
11  * as published by the Free Software Foundation; version 2 of the License.
12  *
13  * These programs are distributed in the hope that they will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16  *
17  * See the GNU General Public License in the file LICENSE.txt for more
18  * details.
19  *
20  * If you would like a copy of the GNU General Public License write to
21  *
22  * Free Software Foundation, Inc.
23  * 59 Temple Place - Suite 330
24  * Boston, MA 02111-1307, USA.
25  *
26  *
27  * To arrange commercial support and licensing, contact ivata at
28  * http://www.ivata.com/contact.jsp
29  * -----------------------------------------------------------------------------
30  * $Log: RightConstants.java,v $
31  * Revision 1.2 2005/04/09 17:19:07 colinmacleod
32  * Changed copyright text to GPL v2 explicitly.
33  *
34  * Revision 1.1.1.1 2005/03/10 17:50:35 colinmacleod
35  * Restructured ivata op around Hibernate/PicoContainer.
36  * Renamed ivata groupware.
37  *
38  * Revision 1.2 2004/03/21 21:16:06 colinmacleod
39  * Shortened name to ivata op.
40  *
41  * Revision 1.1.1.1 2004/01/27 20:57:51 colinmacleod
42  * Moved ivata openportal to SourceForge..
43  *
44  * Revision 1.3 2003/10/17 12:36:12 jano
45  * fixing problems with building
46  * converting intranet -> portal
47  * Eclipse building
48  *
49  * Revision 1.2 2003/10/15 13:18:02 colin
50  * fixing for XDoclet
51  *
52  * Revision 1.7 2003/08/19 14:53:30 jano
53  * *** empty log message ***
54  *
55  * Revision 1.6 2003/08/15 14:04:05 peter
56  * directory constant fixed
57  *
58  * Revision 1.5 2003/08/13 13:44:44 jano
59  * mising DETAIL_DIRECTORY
60  *
61  * Revision 1.4 2003/08/13 13:35:53 jano
62  * we don't need addressBook detail
63  *
64  * Revision 1.3 2003/07/31 08:48:30 jano
65  * new detail for multiple addressBook
66  *
67  * Revision 1.2 2003/05/02 16:26:03 peter
68  * added detail for handling users
69  *
70  * Revision 1.1 2003/02/24 19:09:21 colin
71  * moved to business
72  *
73  * Revision 1.7 2003/02/11 09:19:17 peter
74  * *** empty log message ***
75  *
76  * Revision 1.6 2003/02/11 09:11:49 peter
77  * added detail constants for settings
78  *
79  * Revision 1.5 2003/02/04 17:43:45 colin
80  * copyright notice
81  *
82  * Revision 1.4 2002/07/12 09:42:04 colin
83  * added comment right constant
84  *
85  * Revision 1.3 2002/06/28 13:15:23 colin
86  * first addressbook release
87  *
88  * Revision 1.2 2002/06/17 10:45:45 colin
89  * added constants for topic_item...
90  *
91  * Revision 1.1 2002/06/13 11:21:24 colin
92  * first version with rose model integration.
93  * -----------------------------------------------------------------------------
94  */

95 package com.ivata.groupware.business.addressbook.person.group.right;
96
97
98 /**
99  * <p>Store all the constants for person group rights. You need to use these
100  * constants to identify the 'detail' of right you are applying, or the access
101  * value.</p>
102  *
103  * @since 2002-05-19
104  * @author Colin MacLeod
105  * <a HREF='mailto:colin.macleod@ivata.com'>colin.macleod@ivata.com</a>
106  * @version $Revision: 1.2 $
107  */

108 public class RightConstants {
109
110     /**
111      * <p>This right allows a group to add, view or remove group memberships.</p>
112      */

113     public final static Integer JavaDoc DETAIL_PERSON_GROUP_MEMBER = new Integer JavaDoc(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 JavaDoc DETAIL_LIBRARY_ITEM_TOPIC = new Integer JavaDoc(2);
120
121     /**
122      * <p>This right allows a group to add, amend or remove topics.</p>
123      */

124     public final static Integer JavaDoc DETAIL_LIBRARY_TOPIC = new Integer JavaDoc(3);
125
126     /**
127      * <p>This right allows a group to add, amend or remove comment, based on
128      * the topics of their items.</p>
129      */

130     public final static Integer JavaDoc DETAIL_LIBRARY_COMMENT_TOPIC = new Integer JavaDoc(4);
131
132     /**
133      * <p>This right allows a group to amend a setting on user level.</p>
134      */

135     public final static Integer JavaDoc DETAIL_SETTING_USER = new Integer JavaDoc(5);
136
137     /**
138      * <p>This right allows a group to amend settings on system level.</p>
139      */

140     public final static Integer JavaDoc DETAIL_SETTING_SYSTEM = new Integer JavaDoc(6);
141
142     /**
143      * <p>This right allows a group to add to, amend and remove a directory.</p>
144      */

145     public final static Integer JavaDoc DETAIL_DIRECTORY = new Integer JavaDoc(8);
146
147     /**
148      * <p>Gives the group the right to view/select an element.</p>
149      */

150     public final static Integer JavaDoc ACCESS_VIEW = new Integer JavaDoc(0);
151
152     /**
153      * <p>Gives the group the right to add/insert an element.</p>
154      */

155     public final static Integer JavaDoc ACCESS_ADD = new Integer JavaDoc(1);
156
157     /**
158      * <p>Gives the group the right to amend/update an element.</p>
159      */

160     public final static Integer JavaDoc ACCESS_AMEND = new Integer JavaDoc(2);
161
162     /**
163      * <p>Gives the group the right to remove/delete an element.</p>
164      */

165     public final static Integer JavaDoc ACCESS_REMOVE = new Integer JavaDoc(3);
166 }
167
Popular Tags