Microsoft SDK for Java

addPermission

The addPermission method of the PermissionTreeOutput Class contains the following signatures:

addPermission(int level, IPermission perm)
addPermission(int level, IPermission perm, boolean highRisk)

addPermission(int level, IPermission perm)

Inserts a node for the specified permission and assigns it a risk value based on the default permission set.

Syntax

public void addPermission(int level, IPermission perm);

Parameters

level The depth of the tree at which to place the node.
perm The permission that is being displayed at the current node.

addPermission(int level, IPermission perm, boolean highRisk)

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.

Syntax

public void addPermission(int level, IPermission perm, boolean highRisk);



Parameters

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.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.