public interface PermissionTreeProvider
PermissionTree
is composed by a list of root nodes. The classes implementing this interface are used by
the PermissionTreeFactory
to build those root nodes.
From application perspective, custom tree providers can be implemented in order to make application related permissions part of the permission tree.
Modifier and Type | Method and Description |
---|---|
PermissionNode |
buildRootNode()
Returns a brand new node containing a permission node hierarchy.
|
default boolean |
isActive()
Flag indicating if this provider is in active state.
|
void |
loadChildren(PermissionNode parent,
LoadOptions options,
LoadCallback consumer)
Asynchronous interface for loading the children nodes of a given parent permission node.
|
PermissionNode buildRootNode()
PermissionNode
instance.void loadChildren(PermissionNode parent, LoadOptions options, LoadCallback consumer)
parent
- The parent nodeoptions
- The load optionsconsumer
- The callback instance to notify once the loading process is done.default boolean isActive()
Only if active, its root node is added to the permission tree.
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.