Securing pages

In this recipe, we will see how to set access permissions on a single page. As for the portals, we can configure those through the web console and XML.

Getting ready

Start Gatein and connect through a browser to the web console. Enter in the portal root application to see the XML files.

How to do it…

  1. On the web console, select one page, for example Application Registry:
    How to do it…
  2. Now edit the page by clicking on the Edit Page link.
  3. Click on the View Page properties button in the Page Editor box as shown in the following screenshot:
    How to do it…
  4. Here we can choose the permissions:
    How to do it…

By using XML, we can open the file of the portal configuration where the dashboard page is configured, inside gatein.ear/02portal.war/WEB-INF/conf/portal/group/organization/management/executive-board/pages.xml. Here is the configuration:

<page>
  <name>management</name>
  ...
  <access-permissions>
     *:/organization/management/executive-board
  </access-permissions>
  <edit-permission>
     *:/organization/management/executive-board
  </edit-permission>    
  ...
</page>

How it works…

Who receives the information of the access on the page and coordinates it? JCR is the key. Everything is registered in the JCR repository. See the How it works… section of the Securing categories recipe to learn more about this.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.226.172.200