public class DefaultPermissionTree extends Object implements PermissionTree
| Constructor and Description |
|---|
DefaultPermissionTree(PermissionManager permissionManager,
List<PermissionNode> rootNodes,
PermissionCollection permissions) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(PermissionTreeVisitor visitor)
Entry point for visitor interfaces
|
void |
accept(PermissionTreeVisitor visitor,
List<PermissionNode> children) |
void |
accept(PermissionTreeVisitor visitor,
PermissionNode node) |
Set<Permission> |
getChildrenPermissions(PermissionNode parent) |
Collection<String> |
getChildrenResourceIds(PermissionNode node)
Get the resource ids (if any) referenced from the permission instances, see
PermissionTree.getPermissions(). |
PermissionCollection |
getPermissions()
Get the collection of permissions this tree has been initiliazed with
|
List<PermissionNode> |
getRootNodes()
Get the root nodes of the tree.
|
public DefaultPermissionTree(PermissionManager permissionManager, List<PermissionNode> rootNodes, PermissionCollection permissions)
public List<PermissionNode> getRootNodes()
PermissionTreePermissionNode.getPositionInTree(). The nodes with the same position
are ordered by node name in incremental order.getRootNodes in interface PermissionTreepublic PermissionCollection getPermissions()
PermissionTreegetPermissions in interface PermissionTreepublic Collection<String> getChildrenResourceIds(PermissionNode node)
PermissionTreePermissionTree.getPermissions().getChildrenResourceIds in interface PermissionTreenode - The parent node to start looking forpublic Set<Permission> getChildrenPermissions(PermissionNode parent)
public void accept(PermissionTreeVisitor visitor)
PermissionTreeaccept in interface PermissionTreepublic void accept(PermissionTreeVisitor visitor, PermissionNode node)
public void accept(PermissionTreeVisitor visitor, List<PermissionNode> children)
Copyright © 2012–2017 JBoss by Red Hat. All rights reserved.