KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > mvnforum > MVNForumGlobal


1 /*
2  * $Header: /cvsroot/mvnforum/mvnforum/src/com/mvnforum/MVNForumGlobal.java,v 1.21 2006/04/14 17:05:25 minhnn Exp $
3  * $Author: minhnn $
4  * $Revision: 1.21 $
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  */

41 package com.mvnforum;
42
43 public class MVNForumGlobal {
44
45     private MVNForumGlobal() {
46     }
47
48 /*************************************************************************
49  * NOTE: below constants can be changed for each build,
50  * these constant MUST NOT break the compatibility
51  *************************************************************************/

52     public final static String JavaDoc IMAGE_DIR = "/mvnplugin/mvnforum/images";
53
54     public final static String JavaDoc EMOTION_DIR = "/mvnplugin/mvnforum/images/emotion/";
55
56     public final static String JavaDoc CSS_FULLPATH = "/mvnplugin/mvnforum/css/style.css";
57
58     public final static String JavaDoc LOGO_FULLPATH = "/mvnplugin/mvnforum/images/logo.gif";
59
60     // Note that we cannot put / at the end because getRealPath will remove it in Tomcat 4.1.7 :((
61
public final static String JavaDoc UPLOADED_AVATAR_DIR = "/mvnplugin/mvnforum/upload/memberavatars";
62
63     public final static String JavaDoc UPLOADED_COMPANY_DIR = "/mvnplugin/mvnforum/upload/company";
64
65     public final static String JavaDoc COMPANY_DEFAULT_CSS_PATH = "/mvnplugin/mvnforum/upload/company/style.css";
66
67     public final static String JavaDoc COMPANY_DEFAULT_LOGO_PATH = "/mvnplugin/mvnforum/upload/company/logo.gif";
68
69     public final static String JavaDoc RESOURCE_BUNDLE_NAME = "mvnForum_i18n";
70
71     /** value to control the flood prevention. Note value from 0 to 999 is belong to mvnCore */
72     public final static Integer JavaDoc FLOOD_ID_NEW_POST = new Integer JavaDoc(1000);
73     public final static Integer JavaDoc FLOOD_ID_NEW_MEMBER = new Integer JavaDoc(1001);
74     public final static Integer JavaDoc FLOOD_ID_LOGIN = new Integer JavaDoc(1002);
75     public final static Integer JavaDoc FLOOD_ID_NEW_MESSAGE = new Integer JavaDoc(1003);
76
77     /** The maximum length of the email in database */
78     public final static int MAX_MEMBER_EMAIL_LENGTH = 60;
79
80     /** The maximum length of the member login name in database */
81     public final static int MAX_MEMBER_LOGIN_LENGTH = 30;
82
83     /** The type of search index: Disk */
84     public final static int SEARCH_INDEX_TYPE_DISK = 0;
85     /** The type of search index: Database */
86     public final static int SEARCH_INDEX_TYPE_DATABASE = 1;
87
88     public final static String JavaDoc TEMPLATE_SENDACTIVATECODE_PREFIX = "sendactivemailtemplate";
89     public final static String JavaDoc TEMPLATE_SENDACTIVATECODE_SUBJECT = "sendactivemailtemplate-subject.ftl";
90     public final static String JavaDoc TEMPLATE_SENDACTIVATECODE_BODY = "sendactivemailtemplate-body.ftl";
91
92     public final static String JavaDoc TEMPLATE_FORGOTPASSWORD_PREFIX = "forgotpasswordtemplate";
93     public final static String JavaDoc TEMPLATE_FORGOTPASSWORD_SUBJECT = "forgotpasswordtemplate-subject.ftl";
94     public final static String JavaDoc TEMPLATE_FORGOTPASSWORD_BODY = "forgotpasswordtemplate-body.ftl";
95
96     public final static String JavaDoc TEMPLATE_WATCHMAIL_PREFIX = "watchmailtemplate";
97     public final static String JavaDoc TEMPLATE_WATCHMAIL_SUBJECT = "watchmailtemplate-subject.ftl";
98     public final static String JavaDoc TEMPLATE_WATCHMAIL_BODY = "watchmailtemplate-body.ftl";
99
100     // Constant for Company module
101
public final static String JavaDoc COMPANY_GROUP_FREFIX = "CompanyGroup: ";
102 }
103
Popular Tags