KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > mvnforum > MVNForumConstant


1 /*
2  * $Header: /cvsroot/mvnforum/mvnforum/src/com/mvnforum/MVNForumConstant.java,v 1.10 2006/04/14 17:05:25 minhnn Exp $
3  * $Author: minhnn $
4  * $Revision: 1.10 $
5  * $Date: 2006/04/14 17:05:25 $
6  *
7  * ====================================================================
8  *
9  * Copyright (C) 2002-2006 by MyVietnam.net
10  *
11  * All copyright notices regarding mvnForum MUST remain
12  * intact in the scripts and in the outputted HTML.
13  * The "powered by" text/logo with a link back to
14  * http://www.mvnForum.com and http://www.MyVietnam.net in
15  * the footer of the pages MUST remain visible when the pages
16  * are viewed on the internet or intranet.
17  *
18  * This program is free software; you can redistribute it and/or modify
19  * it under the terms of the GNU General Public License as published by
20  * the Free Software Foundation; either version 2 of the License, or
21  * any later version.
22  *
23  * This program is distributed in the hope that it will be useful,
24  * but WITHOUT ANY WARRANTY; without even the implied warranty of
25  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26  * GNU General Public License for more details.
27  *
28  * You should have received a copy of the GNU General Public License
29  * along with this program; if not, write to the Free Software
30  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
31  *
32  * Support can be obtained from support forums at:
33  * http://www.mvnForum.com/mvnforum/index
34  *
35  * Correspondence and Marketing Questions can be sent to:
36  * info at MyVietnam net
37  *
38  * @author: Minh Nguyen
39  * @author: Mai Nguyen
40  * @author: Igor Manic
41  */

42 package com.mvnforum;
43
44 public final class MVNForumConstant {
45
46     /** Cannot instantiate. */
47     private MVNForumConstant() {
48     }
49
50 /*************************************************************************
51  * NOTE: below constants MUST NOT be changed IN ALL CASES,
52  * or it will break the compatibility
53  *************************************************************************/

54
55     /** Guest/anonymous site visitor. */
56     public static final int MEMBER_ID_OF_GUEST = 0;
57     /** System administrator. */
58     public static final int MEMBER_ID_OF_ADMIN = 1;
59     /**
60      * The highest reserved MemberID.
61      * All IDs from 0 through this value should not be used for "regular" members.
62      */

63     public static final int LAST_RESERVED_MEMBER_ID = 1;
64     /* IMPORTANT: When we have a group without group owner, GroupOwnerID is set to 0.
65      * Similiar is for other IDs in the database - 0 means there is no reference.
66      * Also, the other reason why MemberID=0 should not be used for Guest is
67      * that DBMS could refuse to insert a record with 0 in that field, since it's
68      * marked as non-null autoincrement primary key.
69      */

70
71     /** Unused GroupID. */
72     public static final int GROUP_ID_UNUSED0 = 0;
73     /**
74      * Unused GroupID. In the previous versions of mvnForum it was used for some
75      * special purposes, but should not be used anymore.
76      */

77     public static final int GROUP_ID_OF_GUEST = 1;
78     /** "Registered Members" virtual group. All members are listed in this group. */
79     public static final int GROUP_ID_OF_REGISTERED_MEMBERS = 2;
80     /**
81      * The highest reserved GroupID.
82      * All IDs from 0 through this value should not be used for "regular" groups.
83      */

84     public static final int LAST_RESERVED_GROUP_ID = 2;
85
86     /** "Inbox" message folder created by default for each member. */
87     public static final String JavaDoc MESSAGE_FOLDER_INBOX = "Inbox";
88     /** "Sent" message folder created by default for each member. */
89     public static final String JavaDoc MESSAGE_FOLDER_SENT = "Sent";
90     /** "Draft" message folder created by default for each member. */
91     public static final String JavaDoc MESSAGE_FOLDER_DRAFT = "Draft";
92     /** "Trash" message folder created by default for each member. */
93     public static final String JavaDoc MESSAGE_FOLDER_TRASH = "Trash";
94
95     public static final String JavaDoc dtdschemaDecl="<!DOCTYPE mvnforum SYSTEM \"http://www.mvnforum.com/dtd/mvnforum_1_0_rc2.dtd\">";
96
97     public static final String JavaDoc VN_TYPER_MODE = "mvnforum.vntypermode";
98 }
99
Popular Tags