PT Profile Roles Component

From ADF Docs
Revision as of 16:03, 29 March 2010 by Mcarroll (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Overview

The ProfileRoles Component is required for establishing the logic for roles at global and site levels.

The ProfileRoles Component contains a setRolePermission function which controls the rules for the profiles on the site. The function contains a switch statement that examines the passed-in role name and runs through logic to determine a user's permission for the role.

Every time a new role is added, a new case statement for the role should also be added.

If the site roles or logic differs from the global roles or logic, a ProfileRoles Component can be set up for the site. For details on overriding this component at the site, see the Load ADF Application Site Components wiki page.