KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > nemesis > forum > config > Constants


1 /*
2  * NEMESIS-FORUM.
3  * Copyright (C) 2002 David Laurent(lithium2@free.fr). All rights reserved.
4  *
5  * Copyright (c) 2000 The Apache Software Foundation. All rights reserved.
6  *
7  * Copyright (C) 2001 Yasna.com. All rights reserved.
8  *
9  * Copyright (C) 2000 CoolServlets.com. All rights reserved.
10  *
11  * NEMESIS-FORUM. is free software; you can redistribute it and/or
12  * modify it under the terms of the Apache Software License, Version 1.1,
13  * or (at your option) any later version.
14  *
15  * NEMESIS-FORUM core framework, NEMESIS-FORUM backoffice, NEMESIS-FORUM frontoffice
16  * application are parts of NEMESIS-FORUM and are distributed under
17  * same terms of licence.
18  *
19  *
20  * NEMESIS-FORUM includes software developed by the Apache Software Foundation (http://www.apache.org/)
21  * and software developed by CoolServlets.com (http://www.coolservlets.com).
22  * and software developed by Yasna.com (http://www.yasna.com).
23  *
24  */

25
26
27 package org.nemesis.forum.config;
28
29 /**
30  * Contains constant values representing various objects.
31  */

32 public class Constants {
33
34     /**
35      * Constant to represent threads in a forum.
36      */

37     public static final int THREAD = 0;
38
39     /**
40      * Constant to represent messages in a forum.
41      */

42     public static final int MESSAGE = 1;
43
44     /**
45      * Constant to represent the subject of a message.
46      */

47     public static final int MESSAGE_SUBJECT = 3;
48
49     /**
50      * Constant to represent the body of a message.
51      */

52     public static final int MESSAGE_BODY = 4;
53     
54     
55     /**
56      * Permission to read object.
57      */

58     public static final int READ = 0;
59
60     /**
61      * Permission to administer the entire sytem.
62      */

63     public static final int SYSTEM_ADMIN = 1;
64
65     /**
66      * Permission to administer a particular forum.
67      */

68     public static final int FORUM_ADMIN = 2;
69
70     /**
71      * Permission to administer a particular user.
72      */

73     public static final int USER_ADMIN = 3;
74
75     /**
76      * Permission to administer a particular group.
77      */

78     public static final int GROUP_ADMIN = 4;
79
80     /**
81      * Permission to take on a moderator role.
82      */

83     public static final int MODERATOR = 5;
84
85     /**
86      * Permission to create a new thread.
87      */

88     public static final int CREATE_THREAD = 6;
89
90     /**
91      * Permission to create a new message.
92      */

93     public static final int CREATE_MESSAGE = 7;
94     
95     /**
96      * no forum moderation.
97      */

98     public static final int MODERATION_NONE = 0;
99     /**
100      *moderation to create thread.
101      */

102     public static final int MODERATION_THREAD = 1;
103     /**
104      *creat message moderation.
105      */

106     public static final int MODERATION_MESSAGE = 2;
107     
108     
109
110 }
111
Popular Tags