Jump to content
We've recently updated our Privacy Statement, available here ×
  • Customizing Home or Login Page


    kcollins

    Issue:

    [toc on_off::hide=1]

    User would like to configure the Jasper server so that users with a particular role (for example, ROLE_USER), bypass the main menu completely and go directly to the report list (i.e. as if they had clicked the "View Your Reports" button).


    Resolution:

    This can be done by modifying the jasperserver-pro/WEB-INF/jasperserver-servlet-pro.xml file. You'll see this:

    <bean class="java.util.ArrayList" id="proHomePageByRole">

      <constructor-arg>

        <list>

          <value>ROLE_ADMINISTRATOR|redirect:/flow.html?_flowId=homeFlow</value>

          <value>ROLE_USER|redirect:/flow.html?_flowId=homeFlow</value>

        </list>

      </constructor-arg>

    </bean> 

    Add or modify these values as desired. For example, if you want role user to be directed to the 'Veiew Your Reports' page upon login, modify the value to this:

    <bean class="java.util.ArrayList" id="proHomePageByRole">

      <constructor-arg>

        <list>

          <value>ROLE_ADMINISTRATOR|redirect:/flow.html?_flowId=homeFlow</value>

          <value>ROLE_USER|redirect:/flow.html?_flowId=searchFlow&mode=search&filterId=resourceTypeFilter&filterOption=resourceTypeFilter-reports&searchText=

          </value>

        </list>

      </constructor-arg>

    </bean> 


    Ref. Case #00025958 -- 21:04, 2 May 2012 (UTC)

     


    User Feedback

    Recommended Comments

    There are no comments to display.



    Guest
    This is now closed for further comments

×
×
  • Create New...