1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.seasar.tuigwaa.system;
17
18 import java.text.SimpleDateFormat;
19
20 import org.apache.struts.action.ActionForward;
21 import org.seasar.tuigwaa.cms.core.CmsConstants;
22
23 /***
24 * @author nishioka
25 */
26 public class Constants {
27
28 public static final String PRODUCT_NAME = "WebUDA Tuigwaa";
29
30 public static final String PRODUCT_URL = "http://tuigwaa.sandbox.seasar.org";
31
32 public static final String ACTION_URI_VIEWFOLDER = "listFolder.do";
33
34 public static final String ACTION_URI_VIEWRECORD = "listRecord.do";
35
36 public static final String ACTION_URI_VIEWATTACHMENT = "viewAttachment.do";
37
38 public static final String CONTENTTYPE_WIKI = "text/x-wiki";
39
40 public static final String LINEBREAK_CODE = "\n";
41
42 public static final String USER_ADMINISTRATOR = "admin";
43
44 public static final String SITE_LOCAL_DIRECTORY = "";
45
46 public static final String LOGIC_PAGEALIAS_SUFFIX = "_PAGEALIAS";
47
48
49
50 public static final String DIRECTORY_APP = "app/";
51
52 public static final String DIRECTORY_BACKUP = "backup/";
53
54 public static final String DIRECTORY_TMP = "tmp/";
55
56 public static final String DIRECTORY_UPLOAD = "upload/";
57
58 public static final String FILE_DEFAULTSITE = "default.site";
59
60 public static final String LOCAL_FORWARD_SUCCESS = "success";
61
62 public static final String LOCAL_FORWARD_ERROR = "error";
63
64 public static final String WEBDAV_URL_PREFIX = "/WEB-DAV";
65
66 public static final ActionForward WIKI_FORWARD = new ActionForward(
67 "/top.do");
68
69 public static final SimpleDateFormat DATEFORMAT = CmsConstants.DATEFORMAT;
70
71 public static final SimpleDateFormat SIMPLE_DATEFORMAT = new SimpleDateFormat(
72 "yyyyMMddHHmm");
73
74 public static final SimpleDateFormat LIGHT_DATEFORMAT = new SimpleDateFormat(
75 "yyyy/MM/dd");
76
77 public static final SimpleDateFormat STRUTS_DATEFORMAT = new SimpleDateFormat(
78 "yyyy-MM-dd HH:mm:ss");
79
80
81
82 public static final String ENTITY_BUILTIN_CREATIONUSER = "creationUser";
83
84 public static final String ENTITY_BUILTIN_MODIFICATIONUSER = "modificationUser";
85
86 public static final String ENTITY_BUILTIN_CREATIONDATE = "creationDate";
87
88 public static final String ENTITY_BUILTIN_MODIFICATIONDATE = "modificationDate";
89
90 public static final String ENTITY_BUILTIN_ID = "id";
91
92
93
94 public static final String CATTR_DEFAULTSITENAME = "TGW_DEFAULT_SITE_NAME";
95
96 public static final String CATTR_TUIGWAASERVLET = "com.isenshi.tuigwaa.TUIGWAASERVLET";
97
98 public static final String CATTR_SESSIONCOUNT = "com.isenshi.tuigwaa.SESSIONCOUNT";
99
100 public static final String CATTR_LOGFILELIST = "logFileList_";
101
102
103
104 public static final String SATTR_CURRENTPATH = "currentpath";
105
106 public static final String SATTR_LASTPAGEPATH = "LAST_PAGE_PATH";
107
108 public static final String SATTR_HISTORY = "history_";
109
110 public static final String SATTR_PAGEFORM = "pageForm";
111
112 public static final String SATTR_JSONRPCBRIDGE = "JSONRPCBridge";
113
114 public static final String SATTR_BASEDBINFO = "basedbinfo_";
115
116 public static final String SATTR_FORM_CUSTOMFORM = "customFormForm";
117
118 public static final String SATTR_FORM_UPDATERULE = "updateRuleForm";
119
120 public static final String SATTR_FORM_SEARCHFORM = "searchFormForm";
121
122
123
124 public static final String RATTR_PATH = "path_";
125
126 public static final String RATTR_SITECONFIG = "site_";
127
128 public static final String RATTR_SITECONFIGS = "siteConfigs_";
129
130 public static final String RATTR_SITEBACKUPDATES = "siteBackupDates_";
131
132 public static final String RATTR_PAGENAME = "pageName_";
133
134 public static final String RATTR_PAGEHISTORY = "pageHistory_";
135
136 public static final String RATTR_PAGELIST = "pageList_";
137
138 public static final String RATTR_PAGEDIFF = "pageDiff_";
139
140 public static final String RATTR_ENTITY = "entity_";
141
142 public static final String RATTR_ENTITY_NAME = "entityName_";
143
144 public static final String RATTR_ENTITY_AGGREGATION = "entityAgg_";
145
146 public static final String RATTR_ENTITY_REFLIST = "entityRefList_";
147
148 public static final String RATTR_ENTITYINFO = "entityinfo_";
149
150 public static final String RATTR_ENTITYINFOLIST = "entityInfoList_";
151
152
153
154 public static final String RATTR_PLUGININCLUDE = "plugininclude";
155
156 public static final String RATTR_PREVIEWPAGE = "previewpage";
157
158 public static final String RATTR_CMSREQUEST = "cmsRequest_";
159
160 public static final String RATTR_PARENTFOLDER = "parent_";
161
162 public static final String RATTR_FOLDERCONTENTS = "folderContents_";
163
164 public static final String RATTR_FOLDERLIST = "folderList_";
165
166 public static final String RATTR_UPLOADFILELIST = "uploadFileList_";
167
168 public static final String RATTR_RESULTSET = "resultSet_";
169
170 public static final String RATTR_SELECTED_FILTER = "selectedFilter_";
171
172 public static final String RATTR_HTML_PAGE = "htmlPage_";
173
174 public static final String RATTR_HTML_FORM = "htmlForm_";
175
176
177
178 public static final String RATTR_HTML_CONFIG = "htmlConfig_";
179
180 public static final String RATTR_MAX_FILE_SIZE = "maxFileSize_";
181
182 public static final String RATTR_ACTION_CONFIGS = "actionConfigs_";
183
184 public static final String RATTR_BASEWINDOW_URL = "baseUrl_";
185
186 public static final String RATTR_VALUE = "value_";
187
188 public static final String RATTR_LOGICCOL = "logicCol_";
189
190 public static final String RATTR_USER_MODIFYFLAG = "userModify_";
191
192 public static final String RATTR_ROLE_MODIFYFLAG = "roleModify_";
193
194 public static final String RATTR_USERFORM = "userForm";
195
196 public static final String RATTR_ROLEFORM = "roleForm";
197
198 public static final String RATTR_USERLIST = "userList_";
199
200 public static final String RATTR_ROLELIST = "roleList_";
201
202 public static final String RATTR_PAGESETTINGFORM = "pageSettingForm";
203
204 public static final String RATTR_PAGESETTINGS = "pageSettings_";
205
206 public static final String RATTR_EXTERNALDBINFOLIST = "externalDbInfoList_";
207
208 public static final String RATTR_EXTERNALDBNAMES = "externalDbNames_";
209
210 public static final String RATTR_CONTEXTPATH = "contextPath_";
211
212 public static final String RATTR_COLORSTYLE = "colorstyle_";
213
214 public static final String RATTR_PAGELOCK = "pageLock_";
215
216 public static final String RATTR_STATUSLIST = "statusList_";
217
218 public static final String RATTR_VALUEOBJECT = "bean.valueObject";
219
220 public static final String RATTR_FORMHELPER = "formHelper_";
221
222 public static final String RATTR_SKINS = "skins_";
223
224 public static final String RATTR_TABLELIST = "tableList_";
225
226 public static final String RATTR_SKIN_PAGELIST = "skinPageList_";
227
228 public static final String RATTR_LOG_RESULT = "logResult_";
229
230 public static final String RATTR_MANAGE_MAINPATH = "manageMainPage_";
231
232
233
234 public static final String PARAM_PREFIX_ENTITY = "_ENTITY.";
235
236 public static final String PARAM_SUFFIX_ENTITY = "_";
237
238 public static final String PARAM_PREFIX_PLUGIN = "_PLUGIN.";
239
240 public static final String PARAM_SUFFIX_PLUGIN = "_";
241
242 public static final String PARAM_PREFIX_ENTITY_ESCAPE = "_tgw_ENTITY_";
243
244 public static final String PARAM_PREFIX_ATTR_ESCAPE = "_tgw_ATTR_";
245
246 public static final String PARAM_PLUGINNAME = "_PLUGIN_";
247
248 public static final String PARAM_PAGENAME = "_pageName_";
249
250 public static final String PARAM_THISPAGENAME = "_thisPageName_";
251
252 public static final String PARAM_PAGE_VERSION = "version";
253
254 public static final String PARAM_CURRENTFOLDER = "currentfolder";
255
256 public static final String PARAM_ORDER = "order";
257
258 public static final String PARAM_METHOD_NAME = "methodName";
259
260 public static final String PARAM_KEYWORD = "_keyword_";
261
262 public static final String PARAM_ENTITY_ID = "id";
263
264 public static final String PARAM_DATABASE_NAME = "_databaseName_";
265
266 public static final String PARAM_ENTITY_NAME = "tableName";
267
268 public static final String PARAM_ENTITY_ORDER = "order";
269
270 public static final String PARAM_ENTITY_FIRST = "first";
271
272 public static final String PARAM_ENTITY_MAX = "max";
273
274 public static final String PARAM_ENTITY_ORDERDESC = "desc";
275
276 public static final String PARAM_ENTITY_FILTER = "filter";
277
278 public static final String PARAM_ENTITY_FILTERTYPE = "filterType";
279
280 public static final String PARAM_ENTITY_DELETEFILTER = "deleteFilter";
281
282 public static final String PARAM_ENTITY_AGGREGATION = "agg";
283
284 public static final String PARAM_ENTITY_FIELDNAME = "field";
285
286 public static final String PARAM_BUTTON_BUTTON = "button";
287
288 public static final String PARAM_BUTTON_PREVIEW = "preview";
289
290 public static final String PARAM_BUTTON_UPWARD = "upward";
291
292 public static final String PARAM_SITENAME = "_siteName_";
293
294 public static final String PARAM_BACKUPDATE = "_backupDate_";
295
296 public static final String PARAM_FEEDVERSION = "_feedversion_";
297
298 public static final String PARAM_USERDN_NAME = "_userdnname_";
299
300 public static final String PARAM_ROLEDN_NAME = "_rolednname_";
301
302 public static final String PARAM_LOGIC_NAME = "_logicName_";
303
304 public static final String PARAM_FILE_NAME = "_fileName_";
305
306 public static final String PARAM_IFRAME_MODE = "_iframeMode_";
307
308 public static final String PARAM_TMP_DIR = "_tmpDir_";
309
310 public static final String PARAM_VALUE = "value";
311
312 public static final String PARAM_PREFIX_PAGESETTINGS = "_SETTINGS.";
313
314 public static final String PARAM_SUFFIX_PAGESETTINGS = "_";
315
316 public static final String PARAM_CONTENTTYPE = "_contentType_";
317
318 public static final String PARAM_BYNAME = "_byName_";
319
320 public static final String PARAM_FULLMODE = "_fullMode_";
321
322 public static final String PARAM_PAGESECTIONID = "_sectionId_";
323
324 public static final String PARAM_MODE_FOLDER = "_folderMode_";
325
326 public static final String PARAM_TEMPLATE = "_template_";
327
328 public static final String PARAM_REDIRECT_URL = "tgw.redirectURL";
329
330 public static final String PARAM_ORDER_IDX = "_idx_";
331
332 public static final String PARAM_SKIN_NAME = "_skinname_";
333
334 public static final String PARAM_SEARCH_REDIREDT_URL = "_searchRedirectUrl_";
335 }