Jetspeed 2
  1. Jetspeed 2
  2. JS2-791

configure the security constraint on a particular portlet fragment using new custom config portlet mode

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.2
    • Fix Version/s: 2.1.3, 2.2.0
    • Component/s: Admin Portlets
    • Labels:
      None

      Description

      The security constraint on a particular portlet fragment has to be set using PSML Only. It's possible "now" to set it for a specific page and not the whole portlet.

        Activity

        Hide
        Ate Douma added a comment -

        Updated the subject to better describe the way the new feature was implemented (adding custom config mode)

        Show
        Ate Douma added a comment - Updated the subject to better describe the way the new feature was implemented (adding custom config mode)
        Hide
        Woonsan Ko added a comment -

        Here's a guide for using config mode.

        1. Basic functionality

        Only users having admin rights (based on constraints/permissions) can use config mode, and
        the security constraints of a portlet fragment could be updated with this mode.
        To enable this feature, the portlet decoration properties should have
        'actions.factory=org.apache.jetspeed.decoration.CustomDecoratorActionsFactory'. See
        /decorations/portlet/tigris/decorator.properties.

        2. Automatic dispatching to config mode

        Jetspeed provides automatic dispatching to a built-in portlet when the current portlet mode is config.

        To enable this option:

        a) Set the following property to true in /WEB-INF/conf/jetspeed.properties:

        supported.portletmode.autoswitch.config=true

        b) Each portlet application should have custom portlet mode mapping declaration like the following (in portlet.xml):

        <custom-portlet-mode>
        <description>a Custom Config Mode</description>
        <portlet-mode>config</portlet-mode>
        </custom-portlet-mode>

        3. Customizing the built-in portlet for config mode

        To customize the built-in portlet for config mode, you should modify the j2-admin::CustomConfigModePortlet. Or you can add a new portlet based on the built-in portlet. You can set the portlet name for the config mode by setting the following portlet in /WEB-INF/conf/jetspeed.properties:

        1. auto-switching surrogate portlet for config mode
          supported.portletmode.autoswitch.config.surrogate.portlet = j2-admin::CustomConfigModePortlet
        Show
        Woonsan Ko added a comment - Here's a guide for using config mode. 1. Basic functionality Only users having admin rights (based on constraints/permissions) can use config mode, and the security constraints of a portlet fragment could be updated with this mode. To enable this feature, the portlet decoration properties should have 'actions.factory=org.apache.jetspeed.decoration.CustomDecoratorActionsFactory'. See /decorations/portlet/tigris/decorator.properties. 2. Automatic dispatching to config mode Jetspeed provides automatic dispatching to a built-in portlet when the current portlet mode is config. To enable this option: a) Set the following property to true in /WEB-INF/conf/jetspeed.properties: supported.portletmode.autoswitch.config=true b) Each portlet application should have custom portlet mode mapping declaration like the following (in portlet.xml): <custom-portlet-mode> <description>a Custom Config Mode</description> <portlet-mode>config</portlet-mode> </custom-portlet-mode> 3. Customizing the built-in portlet for config mode To customize the built-in portlet for config mode, you should modify the j2-admin::CustomConfigModePortlet. Or you can add a new portlet based on the built-in portlet. You can set the portlet name for the config mode by setting the following portlet in /WEB-INF/conf/jetspeed.properties: auto-switching surrogate portlet for config mode supported.portletmode.autoswitch.config.surrogate.portlet = j2-admin::CustomConfigModePortlet
        Hide
        Woonsan Ko added a comment -

        Implemented custom config mode to set security constraints for portlet fragments.
        Thanks to David for fixing the build problems which were side effects of my commits.

        Show
        Woonsan Ko added a comment - Implemented custom config mode to set security constraints for portlet fragments. Thanks to David for fixing the build problems which were side effects of my commits.
        Hide
        Woonsan Ko added a comment -

        I'd like to implement 'config' custom mode for configuring security constraint on portlet fragment.

        Show
        Woonsan Ko added a comment - I'd like to implement 'config' custom mode for configuring security constraint on portlet fragment.

          People

          • Assignee:
            Woonsan Ko
            Reporter:
            Mansour Al Akeel
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development