JavaScript is disabled on your browser.
public class PermissionNode
extends Object
Permissions tree node, allowing one or more actions.
Each action is a semicolon separated string with action class and method names.
For example ru.bgcrm.struts.action.admin.AppAction:status
.
A node can contains many actions in case of name deprecations,
or when all of them have to be handled together.
All the node actions are allowed when the node is allowed.
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
Finds permission node by action.
Finds permission node by action.
List with root permission nodes for kernel and other enabled plugins.
boolean
boolean
Gets map with primary actions as keys.
void
Sets primary and other actions from comma separated string.
void
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
Method Details
getChildren
Returns:
children nodes.
getTitle
Returns:
node title.
getTitlePath
Returns:
slash separated titles path to the node.
getAction
Returns:
the primary node action, identifies that the node is selected in UI.
getActions
Returns:
node actions.
setAction
public void setAction (String action)
Sets primary and other actions from comma separated string.
Parameters:
action
- comma separated string.
getDescription
public String getDescription ()
setDescription
public void setDescription (String description)
isAllowAll
public boolean isAllowAll ()
isNotLogging
public boolean isNotLogging ()
getPermissionTrees
List with root permission nodes for kernel and other enabled plugins.
Returns:
primaryActions
Gets map with primary actions as keys.
Parameters:
permMap
- map with any action as key.
Returns:
getPermissionNode
Finds permission node by action.
Parameters:
action
- semicolon separated class and method names.
Returns:
getPermissionNodeOrThrow
public static PermissionNode getPermissionNodeOrThrow (String action)
throws javassist.NotFoundException
Finds permission node by action.
Parameters:
action
- semicolon separated class and method names.
Returns:
not null
node value.
Throws:
javassist.NotFoundException
- not found node.