Interface MutablePermissionTree
- All Superinterfaces:
PermissionContainer,PermissionTree
A mutable permission tree.
-
Method Summary
Modifier and TypeMethodDescriptionstatic MutablePermissionTreecreate()Creates a new mutable permission tree.default voidsetPermission(String permission, boolean state) Sets the permission with the given state.default voidsetPermission(String permission, boolean state, boolean override) Sets the permission with the given state.default voidsetPermission(String permission, TriState state) Sets the permission with the given state.voidsetPermission(String permission, TriState state, boolean override) Sets the permission with the given state.default voidsetPermissions(PermissionTree tree) Sets the permissions from the given permission tree.default voidsetPermissions(PermissionTree tree, boolean override) Sets the permissions from the given permission tree.Methods inherited from interface com.xpdustry.distributor.api.permission.PermissionContainer
getPermissionMethods inherited from interface com.xpdustry.distributor.api.permission.PermissionTree
getPermissions
-
Method Details
-
create
Creates a new mutable permission tree. -
setPermission
Sets the permission with the given state.- Parameters:
permission- the permissionstate- the state
-
setPermission
Sets the permission with the given state.- Parameters:
permission- the permissionstate- the state
-
setPermission
Sets the permission with the given state.- Parameters:
permission- the permissionstate- the stateoverride- whether to override the child permissions with the new state
-
setPermission
Sets the permission with the given state.- Parameters:
permission- the permissionstate- the stateoverride- whether to override the child permissions with the new state
-
setPermissions
Sets the permissions from the given permission tree.- Parameters:
tree- the permission tree
-
setPermissions
Sets the permissions from the given permission tree.- Parameters:
tree- the permission treeoverride- whether to override the child permissions with the new state
-