RevokePermissionForComponent method: PortalRegistry class
Syntax
RevokePermissionForComponent(MenuName, ComponentName, Market, PermListName, NodeName)
Description
Use the RevokePermissionForComponent method to revoke the specified permission to the specified component. In addition, the specified permission is revoked for any component references that point to the specified component.
If you use the string "LOCAL_NODE" as NodeName, the system uses the node name currently defined as local.
All component entries in the portal registry are affected for all the portals. Not just the current portal.
Parameters
| Parameter | Description |
|---|---|
|
MenuName |
Specify the menu name, as a string, that the component that you want to revoke permissions for is associated with. |
|
ComponentName |
Specify the component name, as a string, that you want to revoke permissions for. |
|
Market |
Specify the market, as a string, associated with the component that you want to revoke permissions for. |
|
PermListName |
Specify the name of the permission list, as a string, that you want to use. |
|
NodeName |
Specify the node of the component reference, as a string, that points to the component reference that you want to revoke permissions for. If you use the string "LOCAL_NODE", the system uses the node name currently defined as local. |
Returns
A Boolean value: True if method completed successfully, False otherwise.
Example
The My Profile Component Reference points to the USERMAINT_SELF component. Using the following example, "ALLPANLS" permission is revoked to the MY_PROFILE component reference.
&Portal.RevokePermissionForComponent("MAINTAIN_SECURITY", "USERMAINT_SELF", "GBL",⇒
"ALLPANLS", "LOCAL_NODE");