Source code: com/opencms/core/I_CmsConstants.java
1 /*
2 * File : $Source: /usr/local/cvs/opencms/src/com/opencms/core/I_CmsConstants.java,v $
3 * Date : $Date: 2004/01/07 11:11:12 $
4 * Version: $Revision: 1.220.2.1 $
5 *
6 * This library is part of OpenCms -
7 * the Open Source Content Mananagement System
8 *
9 * Copyright (C) 2001 The OpenCms Group
10 *
11 * This library is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU Lesser General Public
13 * License as published by the Free Software Foundation; either
14 * version 2.1 of the License, or (at your option) any later version.
15 *
16 * This library is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * Lesser General Public License for more details.
20 *
21 * For further information about OpenCms, please see the
22 * OpenCms Website: http://www.opencms.org
23 *
24 * You should have received a copy of the GNU Lesser General Public
25 * License along with this library; if not, write to the Free Software
26 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
27 */
28
29 package com.opencms.core;
30
31 /**
32 * This interface is a pool for constants in OpenCms.<p>
33 *
34 * Other classes may implement this class to get easy access to this constants.
35 *
36 * @author Andreas Schouten
37 * @author Michael Emmerich
38 * @author Michaela Schleich
39 * @author Thomas Weckert
40 *
41 * @version $Revision: 1.220.2.1 $ $Date: 2004/01/07 11:11:12 $
42 */
43 public interface I_CmsConstants {
44
45 /**
46 * The copyright message for OpenCms.
47 */
48 static String C_COPYRIGHT[] = {
49 "",
50 "Copyright (c) 2002-2004 Alkacon Software",
51 "Copyright (c) 2000-2002 The OpenCms Group",
52 "OpenCms comes with ABSOLUTELY NO WARRANTY",
53 "This is free software, and you are welcome to",
54 "redistribute it under certain conditions.",
55 "Please see the GNU Lesser General Public Licence for",
56 "further details.",
57 ""
58 };
59
60 /**
61 * Replacekey for the webapplication name (used in opencms.properties)
62 */
63 static final String C_WEB_APP_REPLACE_KEY = "${WEB_APP_NAME}";
64
65 /**
66 * The minimum-size of a passwordstring.
67 */
68 static final int C_PASSWORD_MINIMUMSIZE = 4;
69
70 /**
71 * The maximum length of a resource name (incl. path).
72 */
73 static final int C_MAX_LENGTH_RESOURCE_NAME = 240;
74
75 /**
76 * This flag is set for enabled entrys in the database.
77 * (GROUP_FLAGS for example)
78 */
79 static final int C_FLAG_ENABLED = 0;
80
81 /**
82 * This flag is set for disabled entrys in the database.
83 * (GROUP_FLAGS for example)
84 */
85 static final int C_FLAG_DISABLED = 1;
86
87 /**
88 * Flag constant: Projectmanager
89 * flag for groups
90 */
91 static final int C_FLAG_GROUP_PROJECTMANAGER = 2;
92
93 /**
94 * Flag constant: ProjectCoWorker
95 * flag for groups
96 */
97 static final int C_FLAG_GROUP_PROJECTCOWORKER = 4;
98
99 /**
100 * Flag constant: Role (for coworkers)
101 * flag for groups
102 */
103 static final int C_FLAG_GROUP_ROLE = 8;
104
105 /** prefix for temporary files */
106 public static final String C_TEMP_PREFIX = "~";
107
108 /**
109 * The last index, that was used for resource-types.
110 */
111 final static String C_TYPE_LAST_INDEX = "lastIndex";
112
113 /**
114 * The resource type-id for a folder.
115 */
116 final static int C_TYPE_FOLDER = 0;
117
118 /**
119 * The resource type-id for a folder.
120 */
121 final static String C_TYPE_FOLDER_NAME = "folder";
122
123 /** The resource type-name for an image. */
124 final static String C_TYPE_IMAGE_NAME = "image";
125
126 /**
127 * The resource type-name for a page file.
128 */
129 final static String C_TYPE_PAGE_NAME = "page";
130
131 /**
132 * The resource type-name for plain files.
133 */
134 final static String C_TYPE_PLAIN_NAME = "plain";
135
136 /**
137 * The resource type-name for compatiblePlain files. This type is
138 * used by the opencms system to show the user that this resource doesent
139 * fit to the new standard in the folder content.
140 */
141 final static String C_TYPE_COMPATIBLEPLAIN_NAME = "compatiblePlain";
142
143 /**
144 * The resource type-name for body files.
145 */
146 final static String C_TYPE_BODY_NAME = "body";
147
148 /**
149 * Property for resource title
150 */
151 static final String C_PROPERTY_TITLE = "Title";
152
153 /**
154 * Property for resource navigation title
155 */
156 static final String C_PROPERTY_NAVTEXT = "NavText";
157
158 /**
159 * Property for resource navigation title
160 */
161 static final String C_PROPERTY_VISIBLE = "visiblemethod";
162
163 /**
164 * Property for resource export name. When resource is exported
165 * by the static export this name is used instead of the realname.
166 */
167 static final String C_PROPERTY_EXPORTNAME = "exportname";
168
169 /**
170 * Property for resource export name. When resource is exported
171 * by the static export this name is used instead of the realname.
172 */
173 static final String C_PROPERTY_EXPORT = "export";
174
175 /**
176 * Property for resource navigation title
177 */
178 static final String C_PROPERTY_ACTIV = "activemethod";
179
180 /**
181 * Property for resource navigation position
182 */
183 static final String C_PROPERTY_NAVPOS = "NavPos";
184
185 /**
186 * Property for template type
187 */
188 static final String C_PROPERTY_TEMPLATETYPE = "TemplateType";
189
190 /**
191 * Property for keywords
192 */
193 static final String C_PROPERTY_KEYWORDS = "Keywords";
194
195 /**
196 * Property for the description
197 */
198 static final String C_PROPERTY_DESCRIPTION = "Description";
199
200 /**
201 * Property for the description
202 */
203 static final String C_PROPERTY_CHANNELID = "ChannelId";
204
205 /**
206 * Property for content encoding
207 */
208 // Encoding project:
209 static final String C_PROPERTY_CONTENT_ENCODING = "content-encoding";
210
211 /**
212 * Property for default file in folders
213 */
214 static final String C_PROPERTY_DEFAULT_FILE = "default-file";
215
216 /**
217 * Property for relative root link substitution
218 */
219 static final String C_PROPERTY_RELATIVEROOT = "relativeroot";
220
221 /**
222 * This is the group for guests.
223 */
224 static final String C_GROUP_GUEST = "Guests";
225
226 /**
227 * This is the group for administrators.
228 */
229 static final String C_GROUP_ADMIN = "Administrators";
230
231 /**
232 * This is the group for projectleaders. It is the only group, which
233 * can create new projects.
234 */
235 static final String C_GROUP_PROJECTLEADER = "Projectmanager";
236
237 /**
238 * This is the group for users. If you are in this group, you can use
239 * the workplace.
240 */
241 static final String C_GROUP_USERS = "Users";
242
243 /**
244 * This is the group for guests.
245 */
246 static final String C_USER_GUEST = "Guest";
247
248 /**
249 * This is the group for administrators.
250 */
251 static final String C_USER_ADMIN = "Admin";
252
253 /**
254 * A user-type
255 */
256 static final int C_USER_TYPE_SYSTEMUSER = 0;
257
258 /**
259 * A user-type
260 */
261 static final int C_USER_TYPE_WEBUSER = 1;
262
263 /**
264 * A user-type
265 */
266 static final int C_USER_TYPE_SYSTEMANDWEBUSER = 2;
267
268 /**
269 * Key for additional info address.
270 */
271 final static String C_ADDITIONAL_INFO_ZIPCODE = "USER_ZIPCODE";
272
273 /**
274 * Key for additional info address.
275 */
276 final static String C_ADDITIONAL_INFO_TOWN = "USER_TOWN";
277
278 /**
279 * Key for additional info flags.
280 */
281 final static String C_ADDITIONAL_INFO_PREFERENCES = "USER_PREFERENCES";
282
283 /** Key for additional info explorer settings. */
284 final static String C_ADDITIONAL_INFO_EXPLORERSETTINGS = "USER_EXPLORERSETTINGS";
285
286 /** Key for additional info task settings. */
287 final static String C_ADDITIONAL_INFO_TASKSETTINGS = "USER_TASKSETTINGS";
288
289 /** Key for additional info start settings. */
290 final static String C_ADDITIONAL_INFO_STARTSETTINGS = "USER_STARTSETTINGS";
291
292 /**
293 * This constant is used to order the tasks by date.
294 */
295 static final int C_TASK_ORDER_BY_DATE = 1;
296
297 /**
298 * This constant is used to order the tasks by name.
299 */
300 static final int C_TASK_ORDER_BY_NAME = 2;
301
302 /**
303 * This constant defines the onlineproject. This is the project which
304 * is used to show the resources for guestusers
305 */
306 static final String C_PROJECT_ONLINE = "Online";
307
308 /**
309 * This constant defines the onlineproject. This is the project which
310 * is used to show the resources for guestusers
311 */
312 static final int C_PROJECT_ONLINE_ID = 1;
313
314 /**
315 * This constant defines a normal project-type.
316 */
317 static final int C_PROJECT_TYPE_NORMAL = 0;
318
319 /**
320 * This constant defines a temporary project-type.
321 * The project will be deleted after publishing
322 */
323 static final int C_PROJECT_TYPE_TEMPORARY = 1;
324
325 /**
326 * This constant defines a invisible project-type.
327 * The project exists only for temporary files
328 * and will never be displayed, published or deleted
329 */
330 static final int C_PROJECT_TYPE_INVISIBLE = 3;
331
332 /**
333 * This constant defines a unlocked project.
334 * Resources may be changed in this project.
335 */
336 static final int C_PROJECT_STATE_UNLOCKED = 0;
337
338 /**
339 * This constant defines a locked project.
340 * Resources can't be changed in this project.
341 */
342 static final int C_PROJECT_STATE_LOCKED = 1;
343
344 /**
345 * This constant defines a project in a archive.
346 * Resources can't be changed in this project. Its state will never
347 * go back to the previos one.
348 */
349 static final int C_PROJECT_STATE_ARCHIVE = 2;
350
351 /**
352 * This constant defines a project that is invisible.
353 * The project is invisible for users. It is needed
354 * for creating and editing temporary files
355 */
356 static final int C_PROJECT_STATE_INVISIBLE = 3;
357
358 /**
359 * This id will be returned for resources with no id.
360 * (filesystem resources)
361 */
362 final static int C_UNKNOWN_ID = -1;
363
364 /**
365 * Owner may read this resource
366 */
367 final static int C_ACCESS_OWNER_READ = 1;
368
369 /**
370 * Owner may write this resource
371 */
372 final static int C_ACCESS_OWNER_WRITE = 2;
373
374 /**
375 * Owner may view this resource
376 */
377 final static int C_ACCESS_OWNER_VISIBLE = 4;
378
379 /**
380 * Group may read this resource
381 */
382 final static int C_ACCESS_GROUP_READ = 8;
383
384 /**
385 * Group may write this resource
386 */
387 final static int C_ACCESS_GROUP_WRITE = 16;
388
389 /**
390 * Group may view this resource
391 */
392 final static int C_ACCESS_GROUP_VISIBLE = 32;
393
394 /**
395 * may read this resource
396 */
397 final static int C_ACCESS_PUBLIC_READ = 64;
398
399 /**
400 * may write this resource
401 */
402 final static int C_ACCESS_PUBLIC_WRITE = 128;
403
404 /**
405 * may view this resource
406 */
407 final static int C_ACCESS_PUBLIC_VISIBLE = 256;
408
409 /**
410 * This is an internal resource, it can't be launched directly.
411 */
412 final static int C_ACCESS_INTERNAL_READ = 512;
413
414 /**
415 * All may read this resource.
416 */
417 final static int C_ACCESS_READ = C_ACCESS_OWNER_READ + C_ACCESS_GROUP_READ + C_ACCESS_PUBLIC_READ;
418
419 /**
420 * All may write this resource.
421 */
422 final static int C_ACCESS_WRITE = C_ACCESS_OWNER_WRITE + C_ACCESS_GROUP_WRITE + C_ACCESS_PUBLIC_WRITE;
423
424 /**
425 * All may view this resource.
426 */
427 final static int C_ACCESS_VISIBLE = C_ACCESS_OWNER_VISIBLE + C_ACCESS_GROUP_VISIBLE + C_ACCESS_PUBLIC_VISIBLE;
428
429 /**
430 * Owner has full access to this resource.
431 */
432 final static int C_ACCESS_OWNER = C_ACCESS_OWNER_READ + C_ACCESS_OWNER_WRITE + C_ACCESS_OWNER_VISIBLE;
433
434 /**
435 * Group has full access to this resource.
436 */
437 final static int C_ACCESS_GROUP = C_ACCESS_GROUP_READ + C_ACCESS_GROUP_WRITE + C_ACCESS_GROUP_VISIBLE;
438
439 /**
440 * has full access to this resource.
441 */
442 final static int C_ACCESS_PUBLIC = C_ACCESS_PUBLIC_READ + C_ACCESS_PUBLIC_WRITE + C_ACCESS_PUBLIC_VISIBLE;
443
444 /**
445 * The default-flags for a new resource.
446 */
447 final static int C_ACCESS_DEFAULT_FLAGS = C_ACCESS_OWNER_READ + C_ACCESS_OWNER_WRITE + C_ACCESS_OWNER_VISIBLE
448 + C_ACCESS_GROUP_READ + C_ACCESS_GROUP_WRITE + C_ACCESS_GROUP_VISIBLE + C_ACCESS_PUBLIC_READ + C_ACCESS_PUBLIC_VISIBLE;
449
450 /**
451 * Is set, if the resource is unchanged in this project.
452 */
453 static final int C_STATE_UNCHANGED = 0;
454
455 /**
456 * Is set, if the resource was changed in this project.
457 */
458 static final int C_STATE_CHANGED = 1;
459
460 /**
461 * Is set, if the resource is new in this project.
462 */
463 static final int C_STATE_NEW = 2;
464
465 /**
466 * Is set, if the resource was deleted in this project.
467 */
468 static final int C_STATE_DELETED = 3;
469
470 /**
471 * This value will be returned for int's withaout a value.
472 */
473 static final int C_UNKNOWN_INT = -1;
474
475 /**
476 * This value will be returned for long's withaout a value.
477 */
478 static final int C_UNKNOWN_LONG = -1;
479
480 /**
481 * This is the id for an undefined launcher.
482 */
483 static final int C_UNKNOWN_LAUNCHER_ID = -1;
484
485 /**
486 * This is the classname for an undefined launcher.
487 */
488 static final String C_UNKNOWN_LAUNCHER = "UNKNOWN";
489
490 /**
491 * This is the defintion for a filesystem mountpoint.
492 */
493 static final int C_MOUNTPOINT_FILESYSTEM = 1;
494
495 /**
496 * This is the defintion for a database mountpoint.
497 */
498 static final int C_MOUNTPOINT_MYSQL = 2;
499
500 /**
501 * A string in the configuration-file.
502 */
503 static final String C_EXPORTPOINT = "exportpoint.";
504
505 /**
506 * A string in the configuration-file.
507 */
508 static final String C_EXPORTPOINT_PATH = "exportpoint.path.";
509
510 /**
511 * A string in the configuration-file.
512 */
513 static final String C_STATICEXPORT_PATH = "staticexport.path";
514
515 /**
516 * A string in the configuration-file.
517 */
518 static final String C_STATICEXPORT_START = "staticexport.start";
519
520 /**
521 * A string in the configuration-file.
522 */
523 static final String C_URL_PREFIX_EXPORT = "url_prefix_export";
524
525 /**
526 * A string in the configuration-file.
527 */
528 static final String C_URL_PREFIX_HTTP = "url_prefix_http";
529
530 /**
531 * A string in the configuration-file.
532 */
533 static final String C_URL_PREFIX_HTTPS = "url_prefix_https";
534
535 /**
536 * A string in the configuration-file.
537 */
538 static final String C_URL_PREFIX_SERVERNAME = "url_prefix_servername";
539
540 /**
541 * The folder - seberator in this system
542 */
543 static final String C_FOLDER_SEPARATOR = "/";
544
545 /**
546 * The name of the rood folder
547 */
548 static final String C_ROOT = C_FOLDER_SEPARATOR;
549
550 /**
551 * The name of the exportpath-systemproperty.
552 */
553 static final String C_SYSTEMPROPERTY_CRONTABLE = "CRONTABLE";
554
555 /**
556 * The name of the exportpath-systemproperty.
557 */
558 static final String C_SYSTEMPROPERTY_EXPORTPATH = "EXPORTPATH";
559
560 /**
561 * The name of the mountpoint-systemproperty.
562 */
563 static final String C_SYSTEMPROPERTY_MOUNTPOINT = "MOUNTPOINT";
564
565 /**
566 * The name of the mimetypes-systemproperty.
567 */
568 static final String C_SYSTEMPROPERTY_MIMETYPES = "MIMETYPES";
569
570 /**
571 * The name of the resourcetype-systemproperty.
572 */
573 static final String C_SYSTEMPROPERTY_RESOURCE_TYPE = "RESOURCE_TYPE";
574
575 /**
576 * The name of the resourcetype-extension.
577 */
578 static final String C_SYSTEMPROPERTY_EXTENSIONS = "EXTENSIONS";
579
580 /**
581 * The name of the linkchecktable-systemproperty.
582 */
583 static final String C_SYSTEMPROPERTY_LINKCHECKTABLE = "LINKCHECKTABLE";
584
585 /**
586 * The key for the username in the user information hashtable.
587 */
588 static final String C_SESSION_USERNAME = "USERNAME";
589
590 /**
591 * The key for the current usergroup the user information hashtable.
592 */
593 static final String C_SESSION_CURRENTGROUP = "CURRENTGROUP";
594
595 /**
596 * The key for the project in the user information hashtable.
597 */
598 static final String C_SESSION_PROJECT = "PROJECT";
599
600 /**
601 * The key for the dirty-flag in the session.
602 */
603 static final String C_SESSION_IS_DIRTY = "_core_session_is_dirty_";
604
605 /**
606 * The key for the original session to store the session data.
607 */
608 static final String C_SESSION_DATA = "_session_data_";
609
610 /**
611 * The key for the session to store Broadcast messages.
612 */
613 static final String C_SESSION_BROADCASTMESSAGE = "BROADCASTMESSAGE";
614
615 /**
616 * The key for the session to store, if a message is pending for this user.
617 */
618 static final String C_SESSION_MESSAGEPENDING = "BROADCASTMESSAGE_PENDING";
619
620 /**
621 * Session key for storing the possition in the administration navigation
622 */
623 public static final String C_SESSION_ADMIN_POS = "adminposition";
624
625 /**
626 * Session key for storing a possible error while executing a thread
627 */
628 public static final String C_SESSION_THREAD_ERROR = "threaderror";
629
630 /**
631 * Session key for storing the files Vector for moduleimport.
632 */
633 public static final String C_SESSION_MODULE_VECTOR = "modulevector";
634
635 /**
636 * Session key for storing the current charcter encoding to be used in HTTP
637 * requests and responses.
638 */
639 // Encoding project:
640 public static final String C_SESSION_CONTENT_ENCODING = "content-encoding";
641
642 /** Identifier for request type http */
643 public static final int C_REQUEST_HTTP = 0;
644
645 /** Identifier for request type console */
646 public static final int C_REQUEST_CONSOLE = 1;
647
648 /** Identifier for request type http */
649 public static final int C_RESPONSE_HTTP = 0;
650
651 /** Identifier for request type console */
652 public static final int C_RESPONSE_CONSOLE = 1;
653
654 /** Task type value of getting all tasks */
655 public static final int C_TASKS_ALL = 1;
656
657 /** Task type value of getting new tasks */
658 public static final int C_TASKS_NEW = 2;
659
660 /** Task type value of getting open tasks */
661 public static final int C_TASKS_OPEN = 3;
662
663 /** Task type value of getting active tasks */
664 public static final int C_TASKS_ACTIVE = 4;
665
666 /** Task type value of getting done tasks */
667 public static final int C_TASKS_DONE = 5;
668
669 /** Task order value */
670 public static final String C_ORDER_ID = "id";
671
672 /** Task order value */
673 public static final String C_ORDER_NAME = "name";
674
675 /** Task order value */
676 public static final String C_ORDER_STATE = "state";
677
678 /** Task order value */
679 public static final String C_ORDER_TASKTYPE = "tasktyperef";
680
681 /** Task order value */
682 public static final String C_ORDER_INITIATORUSER = "initiatoruserref";
683
684 /** Task order value */
685 public static final String C_ORDER_ROLE = "roleref";
686
687 /** Task order value */
688 public static final String C_ORDER_AGENTUSER = "agentuserref";
689
690 /** Task order value */
691 public static final String C_ORDER_ORIGINALUSER = "originaluserref";
692
693 /** Task order value */
694 public static final String C_ORDER_STARTTIME = "starttime";
695
696 /** Task order value */
697 public static final String C_ORDER_WAKEUPTIME = "wakeuptime";
698
699 /** Task order value */
700 public static final String C_ORDER_TIMEOUT = "timeout";
701
702 /** Task order value */
703 public static final String C_ORDER_ENDTIME = "endtime";
704
705 /** Task order value */
706 public static final String C_ORDER_PERCENTAGE = "percentage";
707
708 /** Task order value */
709 public static final String C_ORDER_PRIORITY = "priorityref";
710
711 /** Task sort value ascending */
712 public static final String C_SORT_ASC = "ASC";
713
714 /** Task sort value descending */
715 public static final String C_SORT_DESC = "DESC";
716
717 /** Task priority high */
718 public static final int C_TASK_PRIORITY_HIGH = 1;
719
720 /** Task priority normal */
721 public static final int C_TASK_PRIORITY_NORMAL = 2;
722
723 /** Task priority low */
724 public static final int C_TASK_PRIORITY_LOW = 3;
725
726 /** Value for order tasks by none */
727 public static final int C_TASKORDER_NONE = 0;
728
729 /** Value for order tasks by startdate */
730 public static final int C_TASKORDER_STARTDATE = 1;
731
732 /** Value for order tasks by timeout */
733 public static final int C_TASKORDER_TIMEOUT = 2;
734
735 /** Value for order tasks by taskname */
736 public static final int C_TASKSORDER_TASKNAME = 3;
737
738 /** state values of a task prepared to start*/
739 public static final int C_TASK_STATE_PREPARE = 0;
740
741 /** state values of a task ready to start */
742 public static final int C_TASK_STATE_START = 1;
743
744 /** state values of a task started */
745 public static final int C_TASK_STATE_STARTED = 2;
746
747 /** state values of a task ready to end */
748 public static final int C_TASK_STATE_NOTENDED = 3;
749
750 /** state values of a task ended */
751 public static final int C_TASK_STATE_ENDED = 4;
752
753 /** state values of a task halted */
754 public static final int C_TASK_STATE_HALTED = 5;
755
756 /**System type values for the task log */
757 public static final int C_TASKLOG_SYSTEM = 0;
758
759 /**User type value for the task log */
760 public static final int C_TASKLOG_USER = 1;
761
762 /** state values of task messages when accepted */
763 public static final int C_TASK_MESSAGES_ACCEPTED = 1;
764
765 /** state values of task messages when forwared */
766 public static final int C_TASK_MESSAGES_FORWARDED = 2;
767
768 /** state values of task messages when completed */
769 public static final int C_TASK_MESSAGES_COMPLETED = 4;
770
771 /** state values of task messages when members */
772 public static final int C_TASK_MESSAGES_MEMBERS = 8;
773 public final static String C_FILE = "FILE";
774 public final static String C_FILECONTENT = "CONTENT";
775 public final static String C_FOLDER = "FOLDER";
776 public final static String C_USER = "USER";
777 public final static String C_GROUP = "GROUP";
778
779 /**
780 * Values for the database import and export
781 */
782
783 /** Export type value - exports users and resources */
784 final static int C_EXPORTUSERSFILES = 0;
785
786 /**Export type value - exports only users */
787 final static int C_EXPORTONLYUSERS = 1;
788
789 /**Export type value - exports only resources */
790 final static int C_EXPORTONLYFILES = 2;
791
792 /**Are files imported - NO */
793 final static int C_NO_FILES_IMPORTED = 0;
794
795 /**Are files imported - yes */
796 final static int C_FILES_IMPORTED = 1;
797
798 /**
799 * root element in the XML file (the document node)
800 * needed, to insert other elements
801 */
802 final static String C_FELEMENT = "CMS_EXPORT";
803
804 /** first XML element tag for the resources */
805 final static String C_TFILES = "FILES";
806
807 /** XML tag to defines one resource */
808 final static String C_TFILEOBJ = "FILEOBJ";
809
810 /** XML tag to defines the resource name */
811 final static String C_TFNAME = "NAME";
812
813 /** XML tag to defines the resource type */
814 final static String C_TFTYPE = "TYPE";
815
816 /** XML tag to defines the resource typename */
817 final static String C_TFTYPENAME = "TYPENAME";
818
819 /** XML tag to defines user acces */
820 final static String C_TFUSER = "USER";
821
822 /** XML tag to defines group acces */
823 final static String C_TFGROUP = "GROUP";
824
825 /** XML tag to defines file acces */
826 final static String C_TFACCESS = "ACCESFLAG";
827
828 /** XML tag to defines the resource property */
829 final static String C_TFPROPERTYINFO = "PROPERTYINFO";
830
831 /** XML tag to defines the resource property */
832 final static String C_TFPROPERTYNAME = "PROPERTYNAME";
833
834 /** XML tag to defines the resource propertytype */
835 final static String C_TFPROPERTYTYPE = "PROPERTYTYP";
836
837 /** XML tag to defines the resource propertyvalue */
838 final static String C_TFPROPERTYVALUE = "PROPERTYVALUE";
839
840 /** XML tag to defines the resource content if resource is a file */
841 final static String C_FCONTENT = "CONTENT";
842
843 /** first XML element tag for the groups */
844 final static String C_TGROUPS = "GROUPS";
845
846 /** XML tag to defines one group */
847 final static String C_TGROUPOBJ = "GROUPOBJ";
848
849 /** XML tag to defines the group name */
850 final static String C_TGNAME = "NAME";
851
852 /** XML tag to defines the parentgroup name */
853 final static String C_TGPARENTGROUP = "PARENTGROUP";
854
855 /** XML tag to defines the description of group */
856 final static String C_TGDESC = "DESC";
857
858 /** XML tag to defines the flag of group */
859 final static String C_TGFLAG = "FLAG";
860
861 /** XML tag to defines all users of the group */
862 final static String C_TGROUPUSERS = "GROUPUSERS";
863
864 /** XML tag to defines the name of user in group */
865 final static String C_TGUSER = "USER";
866
867 /** first XML element tag for the users */
868 final static String C_TUSERS = "USERS";
869
870 /** XML tag to defines one user */
871 final static String C_TUSEROBJ = "USEROBJ";
872
873 /** XML tag to defines the user login */
874 final static String C_TULOGIN = "LOGIN";
875
876 /** XML tag to defines the user PASSWD default "Kennwort" */
877 final static String C_TUPASSWD = "PASSWD";
878
879 /** XML tag to defines the user Lastname */
880 final static String C_TUNAME = "NAME";
881
882 /** XML tag to defines the user Firstname */
883 final static String C_TUFIRSTNAME = "FIRSTNAME";
884
885 /** XML tag to defines the user Description */
886 final static String C_TUDESC = "DESC";
887
888 /** XML tag to defines the user EMail */
889 final static String C_TUEMAIL = "EMAIL";
890
891 /** XML tag to defines the user defaultgroup */
892 final static String C_TUDGROUP = "DEFAULTGROUP";
893
894 /** XML tag to defines if the user is disabled */
895 final static String C_TUDISABLED = "DISABLED";
896
897 /** XML tag to defines the user flag */
898 final static String C_TUFLAG = "FLAG";
899
900 /** XML tag to defines the groups in which the user is in */
901 final static String C_TUSERGROUPS = "USERGROUPS";
902
903 /** XML tag to defines the user group name */
904 final static String C_TUGROUP = "GROUP";
905
906 /** XML tag to defines additional user info */
907 final static String C_TUADDINFO = "ADDINFO";
908
909 /** XML tag to defines additional user info key */
910 final static String C_TUINFOKEY = "INFOKEY";
911
912 /** XML tag to defines additional user info value */
913 final static String C_TUINFOVALUE = "INFOVALUE";
914
915 // Contants for preferences
916
917 /** Task preferenses filter */
918 public static final String C_TASK_FILTER = "TaskFilter";
919
920 /** Task preferenses view all */
921 public static final String C_TASK_VIEW_ALL = "TaskViewAll";
922
923 /** Task preferenses message flags */
924 public static final String C_TASK_MESSAGES = "TaskMessages";
925
926 /** Start preferenses Language */
927 public static final String C_START_LANGUAGE = "StartLanguage";
928
929 /** Start preferenses Project */
930 public static final String C_START_PROJECT = "StartProject";
931
932 /** Start preferenses View */
933 public static final String C_START_VIEW = "StartView";
934
935 /** Start preferenses DefaultGroup */
936 public static final String C_START_DEFAULTGROUP = "StartDefaultGroup";
937
938 /** Start preferenses lock dialog */
939 public static final String C_START_LOCKDIALOG = "StartLockDialog";
940
941 /** Start preferenses AccessFlags */
942 public static final String C_START_ACCESSFLAGS = "StartAccessFlags";
943
944 /** Template element name used for the canonical root template */
945 public static final String C_ROOT_TEMPLATE_NAME = "root";
946
947 // Constants for import/export
948
949 /**
950 * The filename of the xml manifest.
951 */
952 public static String C_EXPORT_XMLFILENAME = "manifest.xml";
953
954 /**
955 * The version of the opencms export (appears in the export manifest-file).
956 */
957 public static String C_EXPORT_VERSION = "2";
958
959 /**
960 * A tag in the export manifest-file.
961 */
962 public static String C_EXPORT_TAG_INFO = "info";
963
964 /**
965 * A tag in the export manifest-file, used as subtag of C_EXPORT_TAG_INFO.
966 */
967 public static String C_EXPORT_TAG_CREATOR = "creator";
968
969 /**
970 * A tag in the export manifest-file, used as subtag of C_EXPORT_TAG_INFO.
971 */
972 public static String C_EXPORT_TAG_OC_VERSION = "opencms_version";
973
974 /**
975 * A tag in the export manifest-file, used as subtag of C_EXPORT_TAG_INFO.
976 */
977 public static String C_EXPORT_TAG_DATE = "createdate";
978
979 /**
980 * A tag in the manifest-file, used as subtag of C_EXPORT_TAG_INFO.
981 */
982 public static String C_EXPORT_TAG_PROJECT = "project";
983
984 /**
985 * A tag in the export manifest-file, used as subtag of C_EXPORT_TAG_INFO.
986 */
987 public static String C_EXPORT_TAG_VERSION = "export_version";
988
989 /**
990 * A tag in the manifest-file.
991 */
992 public static String C_EXPORT_TAG_FILE = "file";
993
994 /**
995 * A tag in the manifest-file.
996 */
997 public static String C_EXPORT_TAG_SOURCE = "source";
998
999 /**
1000 * A tag in the manifest-file.
1001 */
1002 public static String C_EXPORT_TAG_DESTINATION = "destination";
1003
1004 /**
1005 * A tag in the manifest-file.
1006 */
1007 public static String C_EXPORT_TAG_TYPE = "type";
1008
1009 /**
1010 * A tag in the manifest-file.
1011 */
1012 public static String C_EXPORT_TAG_USER = "user";
1013
1014 /**
1015 * A tag in the manifest-file.
1016 */
1017 public static String C_EXPORT_TAG_GROUP = "group";
1018
1019 /**
1020 * A tag in the manifest-file.
1021 */
1022 public static String C_EXPORT_TAG_ACCESS = "access";
1023
1024 /**
1025 * A tag in the manifest-file.
1026 */
1027 public static String C_EXPORT_TAG_PROPERTY = "property";
1028
1029 /**
1030 * A tag in the manifest-file.
1031 */
1032 public static String C_EXPORT_TAG_NAME = "name";
1033
1034 /**
1035 * A tag in the manifest-file.
1036 */
1037 public static String C_EXPORT_TAG_VALUE = "value";
1038
1039 /**
1040 * A tag in the manifest-file.
1041 */
1042 public static String C_EXPORT_TAG_EXPORT = "export";
1043
1044 /**
1045 * A tag in the manifest-file.
1046 */
1047 public static String C_EXPORT_TAG_MODULEXPORT = "modulexport";
1048
1049 /**
1050 * A tag in the manifest-file.
1051 */
1052 public static String C_EXPORT_TAG_PROPERTIES = "properties";
1053
1054 /**
1055 * A tag in the manifest-file.
1056 */
1057 public static String C_EXPORT_TAG_LAUNCHER_START_CLASS = "startclass";
1058
1059 /**
1060 * A tag in the manifest-file.
1061 */
1062 public static String C_EXPORT_TAG_USERGROUPDATA = "usergroupdata";
1063
1064 /**
1065 * A tag in the manifest-file.
1066 */
1067 public static String C_EXPORT_TAG_USERDATA = "userdata";
1068
1069 /**
1070 * A tag in the manifest-file.
1071 */
1072 public static String C_EXPORT_TAG_GROUPDATA = "groupdata";
1073
1074 /**
1075 * A tag in the manifest-file.
1076 */
1077 public static String C_EXPORT_TAG_DESCRIPTION = "description";
1078
1079 /**
1080 * A tag in the manifest-file.
1081 */
1082 public static String C_EXPORT_TAG_FLAGS = "flags";
1083
1084 /**
1085 * A tag in the manifest-file.
1086 */
1087 public static String C_EXPORT_TAG_PARENTGROUP = "parentgroup";
1088
1089 /**
1090 * A tag in the manifest-file.
1091 */
1092 public static String C_EXPORT_TAG_PASSWORD = "password";
1093
1094 /**
1095 * A tag in the manifest-file.
1096 */
1097 public static String C_EXPORT_TAG_RECOVERYPASSWORD = "recoverypassword";
1098
1099 /**
1100 * A tag in the manifest-file.
1101 */
1102 public static String C_EXPORT_TAG_FIRSTNAME = "firstname";
1103
1104 /**
1105 * A tag in the manifest-file.
1106 */
1107 public static String C_EXPORT_TAG_LASTNAME = "lastname";
1108
1109 /**
1110 * A tag in the manifest-file.
1111 */
1112 public static String C_EXPORT_TAG_EMAIL = "email";
1113
1114 /**
1115 * A tag in the manifest-file.
1116 */
1117 public static String C_EXPORT_TAG_DEFAULTGROUP = "defaultgroup";
1118
1119 /**
1120 * A tag in the manifest-file.
1121 */
1122 public static String C_EXPORT_TAG_ADDRESS = "address";
1123
1124 /**
1125 * A tag in the manifest-file.
1126 */
1127 public static String C_EXPORT_TAG_SECTION = "section";
1128
1129 /**
1130 * A tag in the manifest-file.
1131 */
1132 public static String C_EXPORT_TAG_USERINFO = "userinfo";
1133
1134 /**
1135 * A tag in the manifest-file.
1136 */
1137 public static String C_EXPORT_TAG_USERGROUPS = "usergroups";
1138
1139 /**
1140 * A tag in the manifest-file.
1141 */
1142 public static String C_EXPORT_TAG_GROUPNAME = "groupname";
1143
1144 /**
1145 * The "lastmodified" tag in the manifest-file.
1146 */
1147 public static String C_EXPORT_TAG_LASTMODIFIED = "lastmodified";
1148
1149 /**
1150 * A string in the configuration-file.
1151 */
1152 public static String C_CONFIGURATION_RESOURCEBROKER = "resourcebroker";
1153
1154 /**
1155 * A string in the configuration-file.
1156 */
1157 public static String C_CONFIGURATION_CACHE = "cache";
1158
1159 /**
1160 * A string in the configuration-file.
1161 */
1162 public static String C_CONFIGURATION_CLASS = "class";
1163
1164 /**
1165 * A string in the configuration-file.
1166 */
1167 public static String C_CONFIGURATION_REGISTRY = "registry";
1168
1169 /**
1170 * A string in the configuration-file.
1171 */
1172 public static String C_CLUSTERURL = "clusterurl";
1173
1174 /**
1175 * wasLoggedIn
1176 */
1177 static final int C_NEVER = 1;
1178
1179 /**
1180 * wasLoggedIn
1181 */
1182 static final int C_AT_LEAST_ONCE = 2;
1183
1184 /**
1185 * wasLoggedIn
1186 */
1187 static final int C_WHATEVER = 3;
1188
1189 /**
1190 * The name of the synchronizationpath-tag in registry.
1191 */
1192 static final String C_SYNCHRONISATION_PATH = "syncpath";
1193
1194 /**
1195 * The name of the synchronizationproject-tag in registry.
1196 */
1197 static final String C_SYNCHRONISATION_PROJECT = "syncproject";
1198
1199 /**
1200 * The name of the synchronizationresource-tag in registry.
1201 */
1202 static final String C_SYNCHRONISATION_RESOURCE = "syncresource";
1203
1204 /**
1205 * The name of the synchronizationresource-tag in registry.
1206 */
1207 static final String C_SYNCHRONISATION_RESOURCETAG = "res";
1208
1209 /**
1210 * The name of the known launchers tag in registry.
1211 */
1212 static final String C_REGISTRY_KNOWNLAUNCHERS = "launchers";
1213
1214 /**
1215 * The name of the launcher tag in registry.
1216 */
1217 static final String C_REGISTRY_LAUNCHER = "launcher";
1218
1219 /**
1220 * The name of the exportpoint source tag in registry.
1221 */
1222 static final String C_REGISTRY_SOURCE = "source";
1223
1224 /**
1225 * The name of the exportpoint destination tag in registry.
1226 */
1227 static final String C_REGISTRY_DESTINATION = "destination";
1228
1229 /**
1230 * The name of the error tag seperator in backoffice templates
1231 */
1232 static final String C_ERRSPERATOR="_";
1233
1234 /**
1235 * The name of the error tag prefix in backoffice templates
1236 */
1237 static final String C_ERRPREFIX="err";
1238
1239 /**
1240 * The name of the default site
1241 */
1242 static final String C_DEFAULT_SITE = "/default";
1243
1244 /**
1245 * The root name of the VFS
1246 */
1247 static final String C_ROOTNAME_VFS = "/vfs";
1248
1249 /**
1250 * The root name of the COS
1251 */
1252 static final String C_ROOTNAME_COS = "/cos";
1253
1254 /**
1255 * The name of the entry for the id generator to create new channelid's
1256 */
1257 static final String C_TABLE_CHANNELID = "CORE_CHANNEL_ID";
1258
1259 /**
1260 * The modus the cmsObject runs in. There are three diffrent: online, offline
1261 * and export. It is used by the link replacement mechanism. (the extern mode is
1262 * used for the names in the filesystem for the exported files.)
1263 */
1264 static final int C_MODUS_AUTO = -1;
1265 static final int C_MODUS_ONLINE = 0;
1266 static final int C_MODUS_OFFLINE = 1;
1267 static final int C_MODUS_EXPORT = 2;
1268 static final int C_MODUS_EXTERN = 3;
1269
1270 /**
1271 * The attribute of the publishclass tag in the modules registry used to show
1272 * that this method needs the vector of the changed links for publishing.
1273 * (i.e. the search module)
1274 */
1275 static final String C_PUBLISH_METHOD_LINK = "linkpublish";
1276
1277 /**
1278 * The key for the date of the last linkcheck in the linkchecktable
1279 */
1280 static final String C_LINKCHECKTABLE_DATE = "linkcheckdate";
1281
1282 /**
1283 * The name of the tag in registry for history properties.
1284 */
1285 static final String C_REGISTRY_HISTORY = "history";
1286
1287 /**
1288 * The name of the tag in registry if versions of the history should be deleted
1289 */
1290 static final String C_DELETE_HISTORY = "deleteversions";
1291
1292 /**
1293 * The name of the tag in registry for the number of weeks the versions should remain in the history.
1294 */
1295 static final String C_WEEKS_HISTORY = "weeks";
1296
1297 /**
1298 * The name of the tag in registry if history is enabled.
1299 */
1300 static final String C_ENABLE_HISTORY = "enabled";
1301
1302 /**
1303 * The module property key name to specifiy additional resources which are
1304 * part of a module outside of {system/modules}.
1305 */
1306 static final String C_MODULE_PROPERTY_ADDITIONAL_RESOURCES = "additionalresources";
1307
1308 /**
1309 * Character to separate additional resources specified in the module properties.
1310 */
1311 static final String C_MODULE_PROPERTY_ADDITIONAL_RESOURCES_SEPARATOR = ";";
1312
1313 /** name of the special body element from an XMLTemplate */
1314 public final static String C_XML_BODY_ELEMENT = "body";
1315}
1316
1317