public static class WorkspaceAccessControlList.Entry extends AccessControlList.Entry
Constructor and Description |
---|
Entry(long permissions,
long accessType,
String path)
Creates a workspace access control entry by decoding base path from the given path.
|
Entry(long permissions,
String path)
Creates a workspace access control entry by decoding access type and base path from the given path.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
long |
getAccessType() |
int |
hashCode() |
void |
setAccessType(long accessType) |
void |
setPath(String path)
Decorates the path setter with sanitation of the path given as input.
|
String |
toString() |
createKey, getPath, getPermissions, merge, setPermissions
public Entry(long permissions, String path)
public Entry(long permissions, long accessType, String path) throws IllegalArgumentException
IllegalArgumentException
- if access type is different from supported values WorkspaceAccessControlList.ACCESS_TYPE_NODE
(1), WorkspaceAccessControlList.ACCESS_TYPE_CHILDREN
(2) or WorkspaceAccessControlList.ACCESS_TYPE_NODE_AND_CHILDREN
(3)public void setPath(String path)
setPath
in class AccessControlList.Entry
public long getAccessType()
getAccessType
in class AccessControlList.Entry
public void setAccessType(long accessType)
setAccessType
in class AccessControlList.Entry
public boolean equals(Object o)
equals
in class AccessControlList.Entry
public int hashCode()
hashCode
in class AccessControlList.Entry
public String toString()
toString
in class AccessControlList.Entry
Copyright © 2019 Magnolia International Ltd.. All rights reserved.