The addPermission method of the PermissionTreeOutput Class contains the following signatures:
addPermission(int level, IPermission perm)
addPermission(int level, IPermission perm, boolean highRisk)
Inserts a node for the specified permission and assigns it a risk value based on the default permission set.
public void addPermission(int level, IPermission perm);
level | The depth of the tree at which to place the node. |
perm | The permission that is being displayed at the current node. |
Inserts a node for the specified permission. If the permission is not explicitly high risk, it is checked against the default sets to determine the risk factor.
public void addPermission(int level, IPermission perm, boolean highRisk);
level | The depth of the tree at which to place the node. |
perm | The permission that is being displayed at the current node. |
highRisk | Specifies whether this permission should be flagged as high risk. |