E
- the type of Access Control Entries (ACEs) managed by this list.public class AccessControlList<E extends AccessControlList.Entry> extends Object
WebAccessFieldFactory
Modifier and Type | Class and Description |
---|---|
static class |
AccessControlList.Entry
An entry in the access control list.
|
static class |
AccessControlList.EntryKey
Deprecated.
since 5.4.8, equality is implemented on the entry directly, while same-key merging logic was moved
to the more specific
WorkspaceAccessControlList |
Modifier and Type | Field and Description |
---|---|
static long |
ACCESS_TYPE_CHILDREN
Deprecated.
since 5.4.8, moved to
WorkspaceAccessControlList.ACCESS_TYPE_CHILDREN |
static long |
ACCESS_TYPE_NODE
Deprecated.
since 5.4.8, moved to
WorkspaceAccessControlList.ACCESS_TYPE_NODE |
static long |
ACCESS_TYPE_NODE_AND_CHILDREN
Deprecated.
since 5.4.8, moved to
WorkspaceAccessControlList.ACCESS_TYPE_NODE_AND_CHILDREN |
static String |
PATH_PROPERTY_NAME
Deprecated.
since 5.4.8, intended for internal usage only (package visibility)
|
static String |
PERMISSIONS_PROPERTY_NAME
Deprecated.
since 5.4.8, intended for internal usage only (package visibility)
|
Constructor and Description |
---|
AccessControlList() |
Modifier and Type | Method and Description |
---|---|
void |
addEntry(E entry) |
protected Collection<E> |
createEntries(javax.jcr.Node aclNode) |
protected E |
createEntry(javax.jcr.Node entryNode)
Default implementation simply retrieves the path and permissions values from corresponding JCR properties,
and delegates entry construction to
doCreateRawEntry(long, String) . |
protected E |
doCreateRawEntry(long permissions,
String path)
Subclasses of
AccessControlList may override this to create their own specialized Entries . |
Collection<E> |
getEntries() |
AccessControlList.Entry |
getEntryByNode(javax.jcr.Node entryNode)
Deprecated.
since 5.4.8, replaced by
createEntry(Node) and doCreateRawEntry(long, String) |
void |
readEntries(javax.jcr.Node aclNode)
Initializes this
AccessControlList by reading existing entries from the given ACL node. |
void |
readEntry(javax.jcr.Node entryNode)
Deprecated.
since 5.4.8, replaced by
addEntry(Entry) and createEntry(Node) |
void |
removeEntry(E entry) |
void |
saveEntries(javax.jcr.Node aclNode)
Saves entries of this
AccessControlList (back) to the given ACL node. |
@Deprecated public static final String PATH_PROPERTY_NAME
@Deprecated public static final String PERMISSIONS_PROPERTY_NAME
@Deprecated public static final long ACCESS_TYPE_NODE
WorkspaceAccessControlList.ACCESS_TYPE_NODE
@Deprecated public static final long ACCESS_TYPE_CHILDREN
WorkspaceAccessControlList.ACCESS_TYPE_CHILDREN
@Deprecated public static final long ACCESS_TYPE_NODE_AND_CHILDREN
WorkspaceAccessControlList.ACCESS_TYPE_NODE_AND_CHILDREN
public Collection<E> getEntries()
public void addEntry(E entry)
public void removeEntry(E entry)
public void readEntries(javax.jcr.Node aclNode) throws javax.jcr.RepositoryException
AccessControlList
by reading existing entries from the given ACL node.aclNode
- the JCR node corresponding to the given ACL, usually named acl_<foobar>
javax.jcr.RepositoryException
protected Collection<E> createEntries(javax.jcr.Node aclNode) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected E createEntry(javax.jcr.Node entryNode) throws javax.jcr.RepositoryException
doCreateRawEntry(long, String)
.javax.jcr.RepositoryException
protected E doCreateRawEntry(long permissions, String path)
AccessControlList
may override this to create their own specialized Entries
.public void saveEntries(javax.jcr.Node aclNode) throws javax.jcr.RepositoryException
AccessControlList
(back) to the given ACL node.aclNode
- the JCR node corresponding to the given ACL, usually named acl_<foobar>
javax.jcr.RepositoryException
@Deprecated public void readEntry(javax.jcr.Node entryNode) throws javax.jcr.RepositoryException
addEntry(Entry)
and createEntry(Node)
javax.jcr.RepositoryException
@Deprecated public AccessControlList.Entry getEntryByNode(javax.jcr.Node entryNode) throws javax.jcr.RepositoryException
createEntry(Node)
and doCreateRawEntry(long, String)
javax.jcr.RepositoryException
Copyright © 2019 Magnolia International Ltd.. All rights reserved.