KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > slide > webdav > util > AclConstants


1 /*
2  * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/AclConstants.java,v 1.24 2004/08/09 12:05:28 unico Exp $
3  * $Revision: 1.24 $
4  * $Date: 2004/08/09 12:05:28 $
5  *
6  * ====================================================================
7  *
8  * Copyright 1999-2002 The Apache Software Foundation
9  *
10  * Licensed under the Apache License, Version 2.0 (the "License");
11  * you may not use this file except in compliance with the License.
12  * You may obtain a copy of the License at
13  *
14  * http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing, software
17  * distributed under the License is distributed on an "AS IS" BASIS,
18  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  * See the License for the specific language governing permissions and
20  * limitations under the License.
21  *
22  */

23
24 package org.apache.slide.webdav.util;
25
26 import java.util.Arrays JavaDoc;
27 import java.util.Collections JavaDoc;
28 import java.util.List JavaDoc;
29
30 import org.apache.slide.content.NodeProperty.NamespaceCache;
31 import org.apache.slide.search.basic.Literals;
32
33 /**
34  * ACL constants.
35  *
36  */

37 public interface AclConstants extends WebdavConstants {
38     
39     /** Resource Kinds */
40     String JavaDoc K_PRINCIPAL = "principal";
41
42     /** Features */
43     String JavaDoc F_ACCESS_CONTROL = "access-control";
44     
45     /** Live Properties */
46     String JavaDoc P_ALTERNATE_URI_SET = "alternate-URI-set";
47     String JavaDoc P_PRINCIPAL_URL = "principal-URL";
48     String JavaDoc P_GROUP_MEMBER_SET = "group-member-set";
49     String JavaDoc P_GROUP_MEMBERSHIP = "group-membership";
50     String JavaDoc P_OWNER = "owner";
51     String JavaDoc P_MODIFICATIONUSER = "modificationuser";
52     String JavaDoc P_CREATIONUSER = "creationuser";
53     String JavaDoc P_SUPPORTED_PRIVILEGE_SET = "supported-privilege-set";
54     String JavaDoc P_CURRENT_USER_PRIVILEGE_SET = "current-user-privilege-set";
55     String JavaDoc P_ACL = "acl";
56     String JavaDoc P_ACL_RESTRICTIONS = "acl-restrictions";
57     String JavaDoc P_INHERITED_ACL_SET = "inherited-acl-set";
58     String JavaDoc P_PRINCIPAL_COLLECTION_SET = "principal-collection-set";
59     String JavaDoc P_PRIVILEGE_COLLECTION_SET = "privilege-collection-set";
60     String JavaDoc P_PRIVILEGE_MEMBER_SET = "privilege-member-set";
61     String JavaDoc P_PRIVILEGE_MEMBERSHIP = "privilege-membership";
62     String JavaDoc P_PRIVILEGE_NAMESPACE = "privilege-namespace";
63
64     String JavaDoc[] ACL_PROPERTIES = new String JavaDoc[] {
65         P_ALTERNATE_URI_SET,
66             P_PRINCIPAL_URL,
67             P_GROUP_MEMBER_SET,
68             P_GROUP_MEMBERSHIP,
69         P_OWNER,
70             P_CREATIONUSER,
71         P_MODIFICATIONUSER,
72         P_SUPPORTED_PRIVILEGE_SET,
73         P_CURRENT_USER_PRIVILEGE_SET,
74         P_ACL,
75             P_ACL_RESTRICTIONS,
76             P_INHERITED_ACL_SET,
77             P_PRINCIPAL_COLLECTION_SET,
78             P_PRIVILEGE_COLLECTION_SET,
79             P_PRIVILEGE_MEMBER_SET,
80             P_PRIVILEGE_MEMBERSHIP
81     };
82         
83     List JavaDoc ACL_PROPERTY_LIST = Collections.unmodifiableList(Arrays.asList(ACL_PROPERTIES));
84     
85     /** Methods */
86     String JavaDoc M_ACL = "ACL";
87
88     /** Reports */
89     String JavaDoc R_ACL_PRINCIPAL_PROP_SET = "acl-principal-prop-set";
90     String JavaDoc R_PRINCIPAL_MATCH = "principal-match";
91     String JavaDoc R_PRINCIPAL_PROPERTY_SEARCH = "principal-property-search";
92     String JavaDoc R_PRINCIPAL_SEARCH_PROPERTY_SET = "principal-search-property-set";
93
94     /** XML Elements */
95     String JavaDoc E_ACE = "ace";
96     String JavaDoc E_ALL = "all";
97     String JavaDoc E_AUTHENTICATED = "authenticated";
98     String JavaDoc E_CASELESS_SUBSTRING = "caseless-substring";
99     String JavaDoc E_CREATE_OBJECT = "create-object";
100     String JavaDoc E_CREATE_REVISION_CONTENT = "create-revision-content";
101     String JavaDoc E_CREATE_REVISION_METADATA = "create-revision-metadata";
102     String JavaDoc E_DENY = "deny";
103     String JavaDoc E_DESCRIPTION = "description";
104     String JavaDoc E_GRANT = "grant";
105     String JavaDoc E_GRANT_PERMISSION = "grant-premission";
106     String JavaDoc E_INHERITED = "inherited";
107     String JavaDoc E_INVERT = "invert";
108     String JavaDoc E_LOCK_OBJECT = "lock-object";
109     String JavaDoc E_MATCH = "match";
110     String JavaDoc E_MODIFY_REVISION_CONTENT = "modify-revision-content";
111     String JavaDoc E_MODIFY_REVISION_METADATA = "modify-revision-metadata";
112     String JavaDoc E_NON_SEARCHABLE_PROPERTY = "non-searchable-property";
113     String JavaDoc E_PRINCIPAL = "principal";
114     String JavaDoc E_PRINCIPAL_MATCH = "principal-match";
115     String JavaDoc E_PRINCIPAL_PROPERTY = "principal-property";
116     String JavaDoc E_PRINCIPAL_SEARCH_PROPERTY = "principal-search-property";
117     String JavaDoc E_PRINCIPAL_SEARCH_PROPERTY_SET = "principal-search-property-set";
118     String JavaDoc E_PRINCIPAL_URL = "principal-URL";
119     String JavaDoc E_PRIVILEGE = "privilege";
120     String JavaDoc E_PROPERTY_SEARCH = "property-search";
121     String JavaDoc E_PROTECTED = "protected";
122     String JavaDoc E_READ = "read";
123     String JavaDoc E_READ_ACL = "read-acl";
124     String JavaDoc E_READ_LOCKS = "read-locks";
125     String JavaDoc E_READ_OBJECT = "read-object";
126     String JavaDoc E_READ_REVISION_CONTENT = "read-revision-content";
127     String JavaDoc E_READ_REVISION_METADATA = "read-revision-metadata";
128     String JavaDoc E_REMOVE_OBJECT = "remove-object";
129     String JavaDoc E_REMOVE_REVISION_CONTENT = "remove-revision-content";
130     String JavaDoc E_REMOVE_REVISION_METADATA = "remove-revision-metadata";
131     String JavaDoc E_REQUIRED_PRINCIPAL = "required-principal";
132     String JavaDoc E_REVOKE_PERMISSION = "revoke-premission";
133     String JavaDoc E_SELF = "self";
134     String JavaDoc E_SUBSTRING = "substring";
135     String JavaDoc E_SUPPORTED_PRIVILEGE = "supported-privilege";
136     String JavaDoc E_UNAUTHENTICATED = "unauthenticated";
137     String JavaDoc E_WRITE_ACL = "write-acl";
138     
139
140     /** Constant helpers */
141     String JavaDoc C_HREF_OPEN = "<D:href>";
142     String JavaDoc C_HREF_CLOSE = "</D:href>";
143     String JavaDoc C_SEARCHREQUEST_OPEN = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><searchrequest xmlns:D=\"DAV:\"><D:basicsearch>";
144     String JavaDoc C_SEARCHREQUEST_CLOSE = "</D:basicsearch></searchrequest>";
145     String JavaDoc C_SELECT_OPEN = "<D:select>";
146     String JavaDoc C_SELECT_CLOSE = "</D:select>";
147     String JavaDoc C_WHERE_ISPRINCIPAL = "<D:where><" + Literals.ISPRINCIPAL + " xmlns=\"" + NamespaceCache.SLIDE_URI + "\"/></D:where>";
148     String JavaDoc C_PROP_PRINCIPAL_URL = "<D:prop><D:href><D:principal-URL/></D:href></D:prop>";
149     String JavaDoc C_LITERAL_OPEN = "<D:literal>";
150     String JavaDoc C_LITERAL_CLOSE = "</D:literal>";
151     String JavaDoc C_PROP_OPEN = "<D:prop>";
152     String JavaDoc C_PROP_OPEN_NS_OPEN = "<D:prop xmlns:Y=\"";
153     String JavaDoc C_PROP_OPEN_NS_CLOSE = "\">";
154     String JavaDoc C_PROP_CLOSE = "</D:prop>";
155     String JavaDoc C_X_PREFIX = "Y:";
156     String JavaDoc C_PROPCONTAINS_OPEN = "<X:propcontains xmlns:X=\"http://jakarta.apache.org/slide/\">";
157     String JavaDoc C_PROPCONTAINS_CLOSE = "</X:propcontains>";
158     String JavaDoc C_WHERE_OPEN = "<D:where><D:and>";
159     String JavaDoc C_WHERE_CLOSE = "</D:and></D:where>";
160     String JavaDoc C_FROM_SCOPE_OPEN = "<D:from><D:scope><D:href>";
161     String JavaDoc C_FROM_SCOPE_CLOSE = "</D:href></D:scope></D:from>";
162     String JavaDoc C_DISPLAYNAME = "displayname";
163
164     
165     /* The PRINCIPAL-SEARCH-PROPERTY-SET has to be in the following way:
166      * C_PRINCIPAL_SEARCH_PROPERTY_SET = "property1,namespace1,description1/property2,namspace2,description2/";
167      */

168     String JavaDoc C_PRINCIPAL_SEARCH_PROPERTY_SET = "displayname,DAV:,Full name/";
169     
170     String JavaDoc C_SEARCH_PROPERTY_SET_SEPERATOR = "/";
171
172 }
173
174
175
176
177
Popular Tags