Class ACLProperties
java.lang.Object
org.exoplatform.documents.storage.jcr.util.ACLProperties
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final QNameDefines the name of the element corresponding to a property that the set of privileges to be either granted or denied to a single principal.static final QNameDefines the name of the element corresponding to a protected property that specifies the list of access control entries.static final QNameDefines the name of the element corresponding to a property that can be either an aggregate privilege that contains the entire set of privileges that can be applied to the resource or an aggregate principal that contains the entire set of principals.static final QNameDefines the name of the element containing privileges to be denied.static final QNameDefines the name of the element containing privileges to be granted.static final QNameDefines the name of the element corresponding to a property which is used to uniquely identify a principal.static final QNameDefines the name of the element corresponding to a property which identifies the principal to which this ACE applies.static final QNameDefines the name of the element containing privilege's name.static final QNameDefines the name of the element corresponding to read privilege which in current implementation aggregate: READ permission.static final QNamestatic final QNameDefines the name of the element corresponding to write privilege which in current implementation aggregate: ADD_NODE, SET_PROPERTY, REMOVE permissions. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.exoplatform.documents.webdav.model.WebDavItemPropertygetACL(org.exoplatform.services.jcr.impl.core.NodeImpl node) GetsAccessControlListand transform it to DAV:acl property view represented by aWebDavItemPropertyinstance.static org.exoplatform.documents.webdav.model.WebDavItemPropertygetOwner(org.exoplatform.services.jcr.impl.core.NodeImpl node) Transform owner got from node'sAccessControlListto tree likeWebDavItemPropertyinstance to use in PROPFIND response bodystatic org.exoplatform.documents.webdav.model.WebDavItemProperty
-
Field Details
-
ACL
Defines the name of the element corresponding to a protected property that specifies the list of access control entries. More details can be found here. -
ACE
Defines the name of the element corresponding to a property that the set of privileges to be either granted or denied to a single principal. More details can be found here. -
PRINCIPAL
-
ALL
Defines the name of the element corresponding to a property that can be either an aggregate privilege that contains the entire set of privileges that can be applied to the resource or an aggregate principal that contains the entire set of principals. More details can be found here. -
HREF
Defines the name of the element corresponding to a property which is used to uniquely identify a principal. More details can be found here. -
PRIVILEGE
Defines the name of the element containing privilege's name. More details can be found here. -
GRANT
Defines the name of the element containing privileges to be granted. More details can be found here. -
DENY
Defines the name of the element containing privileges to be denied. More details can be found here. -
WRITE
Defines the name of the element corresponding to write privilege which in current implementation aggregate: ADD_NODE, SET_PROPERTY, REMOVE permissions. More details can be found here. -
UNLOCK
-
READ
Defines the name of the element corresponding to read privilege which in current implementation aggregate: READ permission. More details can be found here.
-
-
Method Details
-
getReadOnlyACL
public static org.exoplatform.documents.webdav.model.WebDavItemProperty getReadOnlyACL() -
getACL
public static org.exoplatform.documents.webdav.model.WebDavItemProperty getACL(org.exoplatform.services.jcr.impl.core.NodeImpl node) GetsAccessControlListand transform it to DAV:acl property view represented by aWebDavItemPropertyinstance.- Parameters:
node- -NodeImplfrom which we are to get an ACL- Returns:
- WebDavItemProperty - tree like structure corresponding to an DAV:acl property
-
getOwner
public static org.exoplatform.documents.webdav.model.WebDavItemProperty getOwner(org.exoplatform.services.jcr.impl.core.NodeImpl node) throws javax.jcr.RepositoryException Transform owner got from node'sAccessControlListto tree likeWebDavItemPropertyinstance to use in PROPFIND response body- Parameters:
node-- Returns:
WebDavItemPropertyrepresentation of node owner- Throws:
javax.jcr.RepositoryException
-