Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...


Home Page
The Reference Framework home page configuration allows for the configuration of a more than home page that is to be loaded based on the role of the logged in user.

...

Notes
If no role is specified the homepage is used for the logged in user.
If more than one home page is configured with the same role (or no role), then the first home page matching role will be used.

Example

 

Code Block
<homepageConfig>
     <homepage pageId="homepageAdmin" role="ROLE_ADIM"/>
     <homepage pageId="homepageExec" role="ROLE_EXEC"/>
     <homepage pageId="homepageUser" role="ROLE_USER"/>
 </homepageConfig>

...

Code Block
<commandbar>
    <button image="/images/button1.png" name="cmdButton1" onCommand="mco:cmdMco.handleButton1()" tooltip="First Button"
            role="ROLE_ADMIN"/>
    <button image="/images/button2.png" name="cmdButton2" onCommand="mco:cmdMco.handleButton2()" tooltip="Second Button"
            roleVisible="ROLE_ADMIN"/>
    <button image="/images/button3.png" name="cmdButton3" onCommand="mco:cmdMco.handleButton3()" tooltip="Third Button"
            roleEnabled="ROLE_USER"/>
</commandbar>

Pages
The Reference Framework provides control over loading a page, or whether it can be edited through the use of roles.
 
Attribute
•    roleOpen - specifies the role(s) valid for opening the page
•    roleReadOnly - specifies the role(s) that will open the page as read-only
   
Notes
If the roleOpen attribute is not set, then the logged in user will be allowed to open the page.
If the roleReadOnly attribute is not set, then the page will be open as editable. 
 

...

Code Block
<page name="page1" title="Page 1" xal="/XAL/pages/Page1.xal" roleOpen="ROLE_ADMIN"/>
<page name="page2" title="Page 2" xal="/XAL/pages/Page2.xal" roleReadOnly="ROLE_USER"/>

Components
The Reference Framework provides a means for controlling behavior for individual components through the use of roles.   Roles can be used to control visibility,  whether or not a control is enabled or whether or not a control is read only.

...

rolePolicy value

allowdeny
user has a role of ROLE_DEPT_Avisibleinvisible
user has a role that is not ROLE_DEPT_A; eg. ROLE_DEPT_Binvisiblevisible

...


Page Navigation
The Reference Framework provides control over the page navigation by allowing which page to load based on the role of the logged in user.

...