juergen 02/05/14 07:15:40
Modified: src/webdav/server/org/apache/slide/webdav/util
AclConstants.java
Log:
added principal-search-report and principal-search-property-set report
Revision Changes Path
1.8 +55 -26
jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/AclConstants.java
Index: AclConstants.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/AclConstants.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- AclConstants.java 8 May 2002 16:24:27 -0000 1.7
+++ AclConstants.java 14 May 2002 14:15:40 -0000 1.8
@@ -1,7 +1,7 @@
/*
- * $Header:
/home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/AclConstants.java,v
1.7 2002/05/08 16:24:27 pnever Exp $
- * $Revision: 1.7 $
- * $Date: 2002/05/08 16:24:27 $
+ * $Header:
/home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/AclConstants.java,v
1.8 2002/05/14 14:15:40 juergen Exp $
+ * $Revision: 1.8 $
+ * $Date: 2002/05/14 14:15:40 $
*
* ====================================================================
*
@@ -65,6 +65,8 @@
import java.util.*;
+import org.apache.slide.search.basic.Literals;
+
/**
* ACL constants.
*
@@ -73,20 +75,20 @@
public interface AclConstants extends WebdavConstants {
/** Resource Kinds */
- String K_PRINCIPAL = "principal";
+ static String K_PRINCIPAL = "principal";
/** Features */
- String F_ACCESS_CONTROL = "access-control";
+ static String F_ACCESS_CONTROL = "access-control";
/** Live Properties */
- String P_ALTERNATE_URI_SET = "alternate-URI-set";
- String P_OWNER = "owner";
- String P_SUPPORTED_PRIVILEGE_SET = "supported-privilege-set";
- String P_CURRENT_USER_PRIVILEGE_SET = "current-user-privilege-set";
- String P_ACL = "acl";
- String P_ACL_SEMANTICS = "acl-semantics";
- String P_PRINCIPAL_COLLECTION_SET = "principal-collection-set";
- String P_ACE = "ace";
+ static String P_ALTERNATE_URI_SET = "alternate-URI-set";
+ static String P_OWNER = "owner";
+ static String P_SUPPORTED_PRIVILEGE_SET = "supported-privilege-set";
+ static String P_CURRENT_USER_PRIVILEGE_SET = "current-user-privilege-set";
+ static String P_ACL = "acl";
+ static String P_ACL_SEMANTICS = "acl-semantics";
+ static String P_PRINCIPAL_COLLECTION_SET = "principal-collection-set";
+ static String P_ACE = "ace";
String[] ACL_PROPERTIES = new String[] {
P_ALTERNATE_URI_SET,
@@ -102,28 +104,55 @@
List ACL_PROPERTY_LIST =
Collections.unmodifiableList(Arrays.asList(ACL_PROPERTIES));
/** Methods */
- String M_ACL = "ACL";
+ static String M_ACL = "ACL";
/** Reports */
- String R_ACL_PRINCIPAL_PROPS = "acl-principal-props";
- String R_PRINCIPAL_MATCH = "principal-match";
- String R_PRINCIPAL_PROPERTY_SEARCH = "principal-property-search";
- String R_PRINCIPAL_SEARCH_PROPERTY_SET = "principal-search-property-set";
+ static String R_ACL_PRINCIPAL_PROPS = "acl-principal-props";
+ static String R_PRINCIPAL_MATCH = "principal-match";
+ static String R_PRINCIPAL_PROPERTY_SEARCH = "principal-property-search";
+ static String R_PRINCIPAL_SEARCH_PROPERTY_SET =
"principal-search-property-set";
/** XML Elements */
- String E_PRINCIPAL_PROPERTY = "principal-property";
- String E_SELF = "self";
-
+ static String E_PRINCIPAL_PROPERTY = "principal-property";
+ static String E_SELF = "self";
+ static String E_PRINCIPAL_SEARCH_PROPERTY = "principal-search-property";
+ static String E_DESCRIPTION = "description";
+ static String E_PROPERTY_SEARCH = "property-search";
+ static String E_CASELESS_SUBSTRING = "caseless-substring";
+ static String E_PRINCIPAL_COLLECTION_SET = "principal-collection-set";
+ static String E_NON_SEARCHABLE_PROPERTY = "non-searchable-property";
/** XML Attributes */
/** Constant helpers */
- String C_MATCH_REPORT_SEARCH1 = "<?xml version=\"1.0\"
encoding=\"UTF-8\"?><searchrequest xmlns:D=\"DAV:\"><D:basicsearch><D:select>";
- String C_MATCH_REPORT_SEARCH2 =
"</D:select><D:from><D:scope><D:href>";
- String C_MATCH_REPORT_SEARCH_SELF =
"</D:href></D:scope></D:from><D:where><is-principal
xmlns=\"http://jakarta.apache.org/slide:\"/></D:where></D:basicsearch></searchrequest>";
+ static String C_SEARCHREQUEST_OPEN = "<?xml version=\"1.0\"
encoding=\"UTF-8\"?><searchrequest xmlns:D=\"DAV:\"><D:basicsearch>";
+ static String C_SEARCHREQUEST_CLOSE =
"</D:basicsearch></searchrequest>";
+ static String C_SELECT_OPEN = "<D:select>";
+ static String C_SELECT_CLOSE = "</D:select>";
+ static String C_WHERE_ISPRINCIPAL = "<D:where><" +
Literals.ISPRINCIPAL + " xmlns=\"" + Literals.SLIDE_EXTENSIONS + "\"/></D:where>";
+ static String C_PROP_DISPLAYNAME =
"<D:prop><D:displayname/></D:prop>";
+ static String C_LITERAL_OPEN = "<D:literal>";
+ static String C_LITERAL_CLOSE = "</D:literal>";
+ static String C_PROP_OPEN = "<D:prop>";
+ static String C_PROP_OPEN_NS_OPEN = "<D:prop xmlns:Y=\"";
+ static String C_PROP_OPEN_NS_CLOSE = "\">";
+ static String C_PROP_CLOSE = "</D:prop>";
+ static String C_X_PREFIX = "Y:";
+ static String C_PROPCONTAINS_OPEN = "<X:propcontains
xmlns:X=\"http://jakarta.apache.org/slide/\">";
+ static String C_PROPCONTAINS_CLOSE = "</X:propcontains>";
+ static String C_WHERE_OPEN = "<D:where><D:and>";
+ static String C_WHERE_CLOSE = "</D:and></D:where>";
+ static String C_FROM_SCOPE_OPEN = "<D:from><D:scope><D:href>";
+ static String C_FROM_SCOPE_CLOSE =
"</D:href></D:scope></D:from>";
+
- String C_MATCH_REPORT_SEARCH_PROP1 =
"</D:href></D:scope></D:from></D:basicsearch></searchrequest>";
+ /* The PRINCIPAL-SEARCH-PROPERTY-SET has to be in the following way:
+ * C_PRINCIPAL_SEARCH_PROPERTY_SET =
"property1,namespace1,description1/property2,namspace2,description2/";
+ */
+ static String C_PRINCIPAL_SEARCH_PROPERTY_SET = "displayname,DAV:,Full name/";
+
+ static String C_SEARCH_PROPERTY_SET_SEPERATOR = "/";
- String C_MATCH_REPORT_ALLPROP = "<D:allprop/>";
}
+
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>