1 23 24 package org.apache.slide.webdav.util; 25 26 import java.util.Arrays ; 27 import java.util.Collections ; 28 import java.util.List ; 29 30 import org.apache.slide.content.NodeProperty.NamespaceCache; 31 import org.apache.slide.search.basic.Literals; 32 33 37 public interface AclConstants extends WebdavConstants { 38 39 40 String K_PRINCIPAL = "principal"; 41 42 43 String F_ACCESS_CONTROL = "access-control"; 44 45 46 String P_ALTERNATE_URI_SET = "alternate-URI-set"; 47 String P_PRINCIPAL_URL = "principal-URL"; 48 String P_GROUP_MEMBER_SET = "group-member-set"; 49 String P_GROUP_MEMBERSHIP = "group-membership"; 50 String P_OWNER = "owner"; 51 String P_MODIFICATIONUSER = "modificationuser"; 52 String P_CREATIONUSER = "creationuser"; 53 String P_SUPPORTED_PRIVILEGE_SET = "supported-privilege-set"; 54 String P_CURRENT_USER_PRIVILEGE_SET = "current-user-privilege-set"; 55 String P_ACL = "acl"; 56 String P_ACL_RESTRICTIONS = "acl-restrictions"; 57 String P_INHERITED_ACL_SET = "inherited-acl-set"; 58 String P_PRINCIPAL_COLLECTION_SET = "principal-collection-set"; 59 String P_PRIVILEGE_COLLECTION_SET = "privilege-collection-set"; 60 String P_PRIVILEGE_MEMBER_SET = "privilege-member-set"; 61 String P_PRIVILEGE_MEMBERSHIP = "privilege-membership"; 62 String P_PRIVILEGE_NAMESPACE = "privilege-namespace"; 63 64 String [] ACL_PROPERTIES = new String [] { 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 ACL_PROPERTY_LIST = Collections.unmodifiableList(Arrays.asList(ACL_PROPERTIES)); 84 85 86 String M_ACL = "ACL"; 87 88 89 String R_ACL_PRINCIPAL_PROP_SET = "acl-principal-prop-set"; 90 String R_PRINCIPAL_MATCH = "principal-match"; 91 String R_PRINCIPAL_PROPERTY_SEARCH = "principal-property-search"; 92 String R_PRINCIPAL_SEARCH_PROPERTY_SET = "principal-search-property-set"; 93 94 95 String E_ACE = "ace"; 96 String E_ALL = "all"; 97 String E_AUTHENTICATED = "authenticated"; 98 String E_CASELESS_SUBSTRING = "caseless-substring"; 99 String E_CREATE_OBJECT = "create-object"; 100 String E_CREATE_REVISION_CONTENT = "create-revision-content"; 101 String E_CREATE_REVISION_METADATA = "create-revision-metadata"; 102 String E_DENY = "deny"; 103 String E_DESCRIPTION = "description"; 104 String E_GRANT = "grant"; 105 String E_GRANT_PERMISSION = "grant-premission"; 106 String E_INHERITED = "inherited"; 107 String E_INVERT = "invert"; 108 String E_LOCK_OBJECT = "lock-object"; 109 String E_MATCH = "match"; 110 String E_MODIFY_REVISION_CONTENT = "modify-revision-content"; 111 String E_MODIFY_REVISION_METADATA = "modify-revision-metadata"; 112 String E_NON_SEARCHABLE_PROPERTY = "non-searchable-property"; 113 String E_PRINCIPAL = "principal"; 114 String E_PRINCIPAL_MATCH = "principal-match"; 115 String E_PRINCIPAL_PROPERTY = "principal-property"; 116 String E_PRINCIPAL_SEARCH_PROPERTY = "principal-search-property"; 117 String E_PRINCIPAL_SEARCH_PROPERTY_SET = "principal-search-property-set"; 118 String E_PRINCIPAL_URL = "principal-URL"; 119 String E_PRIVILEGE = "privilege"; 120 String E_PROPERTY_SEARCH = "property-search"; 121 String E_PROTECTED = "protected"; 122 String E_READ = "read"; 123 String E_READ_ACL = "read-acl"; 124 String E_READ_LOCKS = "read-locks"; 125 String E_READ_OBJECT = "read-object"; 126 String E_READ_REVISION_CONTENT = "read-revision-content"; 127 String E_READ_REVISION_METADATA = "read-revision-metadata"; 128 String E_REMOVE_OBJECT = "remove-object"; 129 String E_REMOVE_REVISION_CONTENT = "remove-revision-content"; 130 String E_REMOVE_REVISION_METADATA = "remove-revision-metadata"; 131 String E_REQUIRED_PRINCIPAL = "required-principal"; 132 String E_REVOKE_PERMISSION = "revoke-premission"; 133 String E_SELF = "self"; 134 String E_SUBSTRING = "substring"; 135 String E_SUPPORTED_PRIVILEGE = "supported-privilege"; 136 String E_UNAUTHENTICATED = "unauthenticated"; 137 String E_WRITE_ACL = "write-acl"; 138 139 140 141 String C_HREF_OPEN = "<D:href>"; 142 String C_HREF_CLOSE = "</D:href>"; 143 String C_SEARCHREQUEST_OPEN = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><searchrequest xmlns:D=\"DAV:\"><D:basicsearch>"; 144 String C_SEARCHREQUEST_CLOSE = "</D:basicsearch></searchrequest>"; 145 String C_SELECT_OPEN = "<D:select>"; 146 String C_SELECT_CLOSE = "</D:select>"; 147 String C_WHERE_ISPRINCIPAL = "<D:where><" + Literals.ISPRINCIPAL + " xmlns=\"" + NamespaceCache.SLIDE_URI + "\"/></D:where>"; 148 String C_PROP_PRINCIPAL_URL = "<D:prop><D:href><D:principal-URL/></D:href></D:prop>"; 149 String C_LITERAL_OPEN = "<D:literal>"; 150 String C_LITERAL_CLOSE = "</D:literal>"; 151 String C_PROP_OPEN = "<D:prop>"; 152 String C_PROP_OPEN_NS_OPEN = "<D:prop xmlns:Y=\""; 153 String C_PROP_OPEN_NS_CLOSE = "\">"; 154 String C_PROP_CLOSE = "</D:prop>"; 155 String C_X_PREFIX = "Y:"; 156 String C_PROPCONTAINS_OPEN = "<X:propcontains xmlns:X=\"http://jakarta.apache.org/slide/\">"; 157 String C_PROPCONTAINS_CLOSE = "</X:propcontains>"; 158 String C_WHERE_OPEN = "<D:where><D:and>"; 159 String C_WHERE_CLOSE = "</D:and></D:where>"; 160 String C_FROM_SCOPE_OPEN = "<D:from><D:scope><D:href>"; 161 String C_FROM_SCOPE_CLOSE = "</D:href></D:scope></D:from>"; 162 String C_DISPLAYNAME = "displayname"; 163 164 165 168 String C_PRINCIPAL_SEARCH_PROPERTY_SET = "displayname,DAV:,Full name/"; 169 170 String C_SEARCH_PROPERTY_SET_SEPERATOR = "/"; 171 172 } 173 174 175 176 177 | Popular Tags |