KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > blandware > atleap > common > Constants


1 /*
2  * Copyright 2004 Blandware (http://www.blandware.com)
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package com.blandware.atleap.common;
17
18
19 /**
20  * <p>Constant values used throughout the application.
21  * </p>
22  * <p><a HREF="Constants.java.htm"><i>View Source</i></a>
23  * </p>
24  *
25  * @author Matt Raible <a HREF="mailto:matt@raibledesigns.com">&lt;matt@raibledesigns.com&gt;</a>
26  * @author Andrey Grebnev <a HREF="mailto:andrey.grebnev@blandware.com">&lt;andrey.grebnev@blandware.com&gt;</a>
27  * @author Sergey Zubtcovskii <a HREF="mailto:sergey.zubtcovskii@blandware.com">&lt;sergey.zubtcovskii@blandware.com&gt;</a>
28  * @version $Revision: 1.31 $ $Date: 2006/03/16 11:09:36 $
29  */

30 public class Constants {
31     //~ Static fields/initializers =============================================
32

33     /*
34      * ============================ C O M M O N =========================
35      */

36
37     /**
38      * The name of the configuration hashmap stored in application scope.
39      */

40     public static final String JavaDoc CONFIG = "appConfig";
41
42     /**
43      * The global default encoding
44      */

45     public static final String JavaDoc DEFAULT_ENCODING = "UTF-8";
46
47     /**
48      * Current system end-of-line setting
49      */

50     public static final String JavaDoc EOL = System.getProperty("line.separator", "\n");
51
52     /**
53      * The application scoped attribute for persistence engine and class that
54      * implements it
55      */

56     public static final String JavaDoc DAO_TYPE = "daoType";
57     /**
58      * 'Hibernate' DAO type
59      */

60     public static final String JavaDoc DAO_TYPE_HIBERNATE = "hibernate";
61
62     /**
63      * JNDI Name of Mail Session. As configured in the appserver.
64      */

65     public static final String JavaDoc JNDI_MAIL = "mail/Session";
66
67     /**
68      * Default from address for e-mail messages. You should change
69      * this to an e-mail address that your users can reply to.
70      */

71     public static final String JavaDoc DEFAULT_FROM = "atleap@blandware.com";
72
73     /**
74      * Name of property holding contact address
75      */

76     public static final String JavaDoc CONTACT_ADDRESS_PROPERTY = "contact.address";
77
78     /**
79      * Name of property holding contact language
80      */

81     public static final String JavaDoc CONTACT_LANGUAGE_PROPERTY = "contact.language";
82
83     /**
84      * Name of property holding patterns for default pages or documents in site map section
85      */

86     public static final String JavaDoc MAP_SECTION_INDEX_PATTERNS_PROPERTY = "siteMap.section.index.pattern.list";
87
88     /*
89      * ============================ S E C U R I T Y =========================
90      */

91
92     /**
93      * Application scoped attribute for authentication url
94      */

95     public static final String JavaDoc AUTH_URL = "authURL";
96
97     /**
98      * Application scoped attributes for SSL Switching
99      */

100     public static final String JavaDoc HTTP_PORT = "httpPort";
101     public static final String JavaDoc HTTPS_PORT = "httpsPort";
102
103     /**
104      * Name of database datasource in JNDI
105      */

106     public static final String JavaDoc DATASOURCE_NAME = "dataSourceName";
107
108     /**
109      * Application context path init parameter
110      */

111     public static final String JavaDoc CONTEXT_PATH = "contextPath";
112
113     /**
114      * Application development mode init parameter
115      */

116     public static final String JavaDoc DEVELOPMENT_MODE = "developmentMode";
117
118
119     /**
120      * The application scoped attribute for indicating a secure login
121      */

122     public static final String JavaDoc SECURE_LOGIN = "secureLogin";
123
124     /**
125      * The encryption algorithm key to be used for passwords
126      */

127     public static final String JavaDoc ENC_ALGORITHM = "algorithm";
128
129     /**
130      * A flag to indicate if passwords should be encrypted
131      */

132     public static final String JavaDoc ENCRYPT_PASSWORD = "encryptPassword";
133
134     /**
135      * The session scope attribute under which the User object for the
136      * currently logged in user is stored.
137      */

138     public static final String JavaDoc USER_KEY = "com.blandware.atleap.USER_KEY";
139
140     /**
141      * Name of cookie for "Remember Me" functionality.
142      */

143     public static final String JavaDoc LOGIN_COOKIE = "sessionId";
144
145     /**
146      * Bean name of Acegi userCache from applicationContext-security.xml
147      */

148     public static final String JavaDoc ACEGI_USER_CACHE_BEAN = "userCache";
149     
150     /**
151      * Bean name of Acegi userDetailsService from applicationContext-security.xml
152      */

153     public static final String JavaDoc USER_DETAILS_SERVICE_BEAN = "userDetailsService";
154     
155     /*
156     * ============================ G R O U P S =========================
157     */

158
159     /**
160      * The name of the Administrators group
161      */

162     public static final String JavaDoc ADMINS_GROUP = "admins";
163
164     /**
165      * The name of the Managers group
166      */

167     public static final String JavaDoc MANAGERS_GROUP = "managers";
168
169     /**
170      * The name of the Users group
171      */

172     public static final String JavaDoc USERS_GROUP = "users";
173
174     /*
175      * ============================ M A N A G E R S =========================
176      */

177
178     /**
179      * The name of layout manager bean.
180      */

181     public static final String JavaDoc LAYOUT_MANAGER_BEAN = "layoutManager";
182
183     /**
184      * The name of page manager bean.
185      */

186     public static final String JavaDoc PAGE_MANAGER_BEAN = "pageManager";
187
188     /**
189      * The name of field manager bean.
190      */

191     public static final String JavaDoc CONTENT_FIELD_MANAGER_BEAN = "contentFieldManager";
192
193     /**
194      * The name of content locale manager bean
195      */

196     public static final String JavaDoc CONTENT_LOCALE_MANAGER_BEAN = "contentLocaleManager";
197
198     /**
199      * The name of content resource manager bean
200      */

201     public static final String JavaDoc CONTENT_RESOURCE_MANAGER_BEAN = "contentResourceManager";
202
203     /**
204      * The name of role manager bean.
205      */

206     public static final String JavaDoc ROLE_MANAGER_BEAN = "roleManager";
207
208     /**
209      * The name of group manager bean.
210      */

211     public static final String JavaDoc GROUP_MANAGER_BEAN = "groupManager";
212
213     /**
214      * The name of user manager bean.
215      */

216     public static final String JavaDoc USER_MANAGER_BEAN = "userManager";
217
218     /**
219      * The name of lookup manager bean.
220      */

221     public static final String JavaDoc LOOKUP_MANAGER_BEAN = "lookupManager";
222
223     /**
224      * The name of menu manager bean.
225      */

226     public static final String JavaDoc MENU_MANAGER_BEAN = "menuManager";
227
228     /**
229      * The name of global property manager bean.
230      */

231     public static final String JavaDoc GLOBAL_PROPERTY_MANAGER_BEAN = "globalPropertyManager";
232
233     /**
234      * The name of application resource manager bean.
235      */

236     public static final String JavaDoc APPLICATION_RESOURCE_MANAGER_BEAN = "applicationResourceManager";
237
238     /**
239      * The name of backup manager bean.
240      */

241     public static final String JavaDoc BACKUP_MANAGER_BEAN = "backupManager";
242
243     /**
244      * The name of mail template manager bean.
245      */

246     public static final String JavaDoc MAIL_TEMPLATE_MANAGER_BEAN = "mailTemplateManager";
247
248     /**
249      * The name of mail engine bean
250      */

251     public static final String JavaDoc MAIL_ENGINE_BEAN = "mailEngine";
252
253
254     /*
255      * ============================ R E S O U R C E T Y P E S =========================
256      */

257
258     /**
259      * Image (content resource of known image type)
260      */

261     public static final String JavaDoc RESOURCE_TYPE_IMAGE = "image";
262
263     /**
264      * Document (content resource of known document type)
265      */

266     public static final String JavaDoc RESOURCE_TYPE_DOCUMENT = "document";
267
268     /**
269      * File (all the rest content resources)
270      */

271     public static final String JavaDoc RESOURCE_TYPE_FILE = "file";
272
273     /**
274      * Prefix for resources URIs
275      */

276     public static final String JavaDoc RESOURCES_URI_PREFIX = "/rw/resource";
277
278     /**
279      * Prefix of any localized URI (URI with locale suffix)
280      */

281     public static final String JavaDoc LOCALIZED_URI_PREFIX = "/rw";
282
283     /**
284      * Action mapping for our actions
285      */

286     public static final String JavaDoc ACTION_MAPPING = "*.do";
287
288
289     /*
290     * ============================ M I M E T Y P E S =========================
291     */

292
293     /**
294      * Plain text
295      */

296     public static final String JavaDoc MIME_TYPE_PLAIN = "text/plain";
297     /**
298      * HTML text
299      */

300     public static final String JavaDoc MIME_TYPE_HTML = "text/html";
301 }
302
Popular Tags