KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > opencms > core > I_CmsConstants


1 /*
2  * File : $Source: /usr/local/cvs/opencms/src-modules/com/opencms/core/I_CmsConstants.java,v $
3  * Date : $Date: 2005/06/22 10:38:32 $
4  * Version: $Revision: 1.2 $
5  *
6  * This library is part of OpenCms -
7  * the Open Source Content Mananagement System
8  *
9  * Copyright (C) 2002 - 2005 Alkacon Software (http://www.alkacon.com)
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 Alkacon Software, please see the
22  * company website: http://www.alkacon.com
23  *
24  * For further information about OpenCms, please see the
25  * project website: http://www.opencms.org
26  *
27  * You should have received a copy of the GNU Lesser General Public
28  * License along with this library; if not, write to the Free Software
29  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
30  */

31
32 package com.opencms.core;
33
34 import org.opencms.security.CmsPermissionSet;
35
36 /**
37  * This interface is a pool for constants in OpenCms.<p>
38  *
39  * @author Michael Emmerich
40  * @author Thomas Weckert
41  *
42  * @version $Revision: 1.2 $
43  */

44 public interface I_CmsConstants {
45
46     /**
47      * Group may read this resource.
48      */

49     int C_ACCESS_GROUP_READ = 8;
50
51     /**
52      * Group may view this resource.
53      */

54     int C_ACCESS_GROUP_VISIBLE = 32;
55
56     /**
57      * Group may write this resource.
58      */

59     int C_ACCESS_GROUP_WRITE = 16;
60
61     /**
62      * Public may read this resource.
63      */

64     int C_ACCESS_PUBLIC_READ = 64;
65
66     /**
67      * Public may view this resource.
68      */

69     int C_ACCESS_PUBLIC_VISIBLE = 256;
70
71     /**
72      * Public may write this resource.
73      */

74     int C_ACCESS_PUBLIC_WRITE = 128;
75     /**
76      * All may write this resource.
77      */

78     int C_ACCESS_WRITE = CmsPermissionSet.PERMISSION_WRITE + C_ACCESS_GROUP_WRITE + C_ACCESS_PUBLIC_WRITE;
79
80     /**
81      * The default-flags for a new resource.
82      */

83     int C_ACCESS_DEFAULT_FLAGS = CmsPermissionSet.PERMISSION_READ
84         + CmsPermissionSet.PERMISSION_WRITE
85         + CmsPermissionSet.PERMISSION_VIEW
86         + C_ACCESS_GROUP_WRITE
87         + C_ACCESS_GROUP_VISIBLE
88         + C_ACCESS_PUBLIC_READ
89         + C_ACCESS_PUBLIC_VISIBLE;
90
91     /**
92      * Group has full access to this resource.
93      */

94     int C_ACCESS_GROUP = C_ACCESS_GROUP_WRITE + C_ACCESS_GROUP_VISIBLE;
95
96     /**
97      * The name of the error tag prefix in backoffice templates.
98      */

99     String JavaDoc C_ERRPREFIX = "err";
100
101     /**
102      * The name of the error tag separator in backoffice templates.
103      */

104     String JavaDoc C_ERRSPERATOR = "_";
105
106     /**
107      * A tag in the manifest-file.
108      */

109     String JavaDoc C_EXPORT_TAG_MODULEXPORT = "modulexport";
110     /**
111      * This constant defines a project in a archive.
112      * Resources can't be changed in this project. Its state will never
113      * go back to the previos one.
114      */

115     int C_PROJECT_STATE_ARCHIVE = 2;
116
117     /** Identifier for request type http. */
118     int C_REQUEST_HTTP = 0;
119
120     /** Identifier for response type http. */
121     int C_RESPONSE_HTTP = 0;
122
123     /** Template element name used for the canonical root template. */
124     String JavaDoc C_ROOT_TEMPLATE_NAME = "root";
125
126     /**
127      * Session key for storing the position in the administration navigation.
128      */

129     String JavaDoc C_SESSION_ADMIN_POS = "adminposition";
130
131     /**
132      * Session key for storing the current charcter encoding to be used in HTTP
133      * requests and responses.
134      */

135     // Encoding project:
136
String JavaDoc C_SESSION_CONTENT_ENCODING = "content-encoding";
137
138     /**
139      * Session key for storing the files Vector for moduleimport.
140      */

141     String JavaDoc C_SESSION_MODULE_VECTOR = "modulevector";
142
143     /**
144      * Session key for storing a possible error while executing a thread.
145      */

146     String JavaDoc C_SESSION_THREAD_ERROR = "threaderror";
147
148     /** Start preferences language. */
149     String JavaDoc C_START_LOCALE = "StartLanguage";
150
151     /** Start preferences view. */
152     String JavaDoc C_START_VIEW = "StartView";
153
154     /**
155      * The name of the entry for the id generator to create new channelid's.
156      */

157     String JavaDoc C_TABLE_CHANNELID = "CORE_CHANNEL_ID";
158
159     /** Suffix for caching of simple pages. */
160     String JavaDoc C_XML_CONTROL_FILE_SUFFIX = ".xmlcontrol";
161
162     /** Start preferences lock dialog. */
163     String JavaDoc C_START_LOCKDIALOG = "StartLockDialog";
164
165 }
Popular Tags