Difference between revisions of "PT Profile Roles Component"

From ADF Docs
Jump to: navigation, search
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
== Overview ==
 
== Overview ==
The [[ProfileRoles_Component|ProfileRoles Component]] is required for establishing the logic for the roles at the global and site level.
+
The [[PT_Profile_Roles_Component|ProfileRoles Component]] is required for establishing the logic for roles at global and site levels.
  
The [[ProfileRoles_Component|ProfileRoles Component]] contains a function ''setRolePermission''.  This function controls the rules for the profiles on the site.  The function contains a switch statement for the role name passed in and then runs through logic to determine the users permission for the role.   
+
The [[PT_Profile_Roles_Component|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 [[How_to_add_profile_role | a new role is added]], then a new case statement for the role should be added as well.
+
Every time a new role is added, a new case statement for the role should also be added.
  
If the site roles or role logic differs from the global, then a [[ProfileRoles_Component|ProfileRoles Component]] can be setup for the site.  Follow the wiki page for [[Load_ADF_App_Site_Components|Load ADF Application Site Components]] for details on how to override this component at the site.
+
If the site roles or logic differs from the global roles or logic, a [[PT_Profile_Roles_Component|ProfileRoles Component]] can be set up for the site.  For details on overriding this component at the site, see the [[Load_ADF_App_Site_Components|Load ADF Application Site Components]] wiki page.
  
 
[[Category:Profile]]
 
[[Category:Profile]]

Latest revision as of 16:03, 29 March 2010

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.