Interface PermissionTree
-
- All Known Implementing Classes:
DefaultPermissionTree
public interface PermissionTreeA hierarchy ofPermissionNodeinstances
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaccept(PermissionTreeVisitor visitor)Entry point for visitor interfacesCollection<String>getChildrenResourceIds(PermissionNode parentNode)Get the resource ids (if any) referenced from the permission instances, seegetPermissions().org.uberfire.security.authz.PermissionCollectiongetPermissions()Get the collection of permissions this tree has been initiliazed withList<PermissionNode>getRootNodes()Get the root nodes of the tree.
-
-
-
Method Detail
-
getRootNodes
List<PermissionNode> getRootNodes()
Get the root nodes of the tree.A list of nodes order by its
PermissionNode.getPositionInTree(). The nodes with the same position are ordered by node name in incremental order.
-
getChildrenResourceIds
Collection<String> getChildrenResourceIds(PermissionNode parentNode)
Get the resource ids (if any) referenced from the permission instances, seegetPermissions().- Parameters:
parentNode- The parent node to start looking for- Returns:
- A collection of resource identifiers
-
getPermissions
org.uberfire.security.authz.PermissionCollection getPermissions()
Get the collection of permissions this tree has been initiliazed with
-
accept
void accept(PermissionTreeVisitor visitor)
Entry point for visitor interfaces
-
-