The writePermission method of the PermissionTreeOutput Class contains the following signatures:
writePermission(String s, int level, IPermission perm)
writePermission(String s, int level, IPermission perm, boolean highRisk)
Creates a node with the specified string as the name for a new permission in the display tree.
public void writePermission(String s, int level, IPermission perm) throws IOException;
s | The name of the permission. |
level | The depth of the tree at which to place the node. |
perm | The permission that is being displayed at the current node. |
IOException if an error occurs while writing to the output stream.
Creates a node with the specified string as the name for a new permission in the display tree. In addition, the permission can be flagged as high risk.
public void writePermission(String s, int level, IPermission perm, boolean highRisk) throws IOException;
s | The name of the permission. |
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. |
IOException if an error occurs while writing to the output stream.