Jetspeed 2
  1. Jetspeed 2
  2. JS2-211

Autocreate RolePrincipals for PA role definitions on deployment

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0-dev/cvs
    • Fix Version/s: 2.0-dev/cvs, 2.0-M2
    • Component/s: Deployment, Security
    • Labels:
      None

      Description

      When a new PA is deployed with several role definitions, these roles still needs to be created by hand
      before they can be assigned to a user.

      As the required name of these roles (as derived from the web.xml) is predefined, I want to add the feature
      to automatically create new RolePrincipals on deployment.

      As initial implementation I'm going to use a new jetspeed-portlet.xml meta-data definition: <roles create="true"/>
      to enable this feature.

      Also, if nobody objects, I'd like to make this the default behavior once this works and then
      <roles create="false"/> can be used to prevent it.

        Activity

        Hide
        Ate Douma added a comment -

        Implemented, but not using jetspeed-portlet.xml meta data definition.
        After some thought this didn't seem right because it really wouldn't be meta data in the sense you would
        want to store it in the database. Its only a deployment instruction.

        I implemented it quite simple now by allowing optional configuration of the PortletApplicationManager.
        Just set appropriate values for the roleManager property and autoCreateRoles property.

        Show
        Ate Douma added a comment - Implemented, but not using jetspeed-portlet.xml meta data definition. After some thought this didn't seem right because it really wouldn't be meta data in the sense you would want to store it in the database. Its only a deployment instruction. I implemented it quite simple now by allowing optional configuration of the PortletApplicationManager. Just set appropriate values for the roleManager property and autoCreateRoles property.

          People

          • Assignee:
            Ate Douma
            Reporter:
            Ate Douma
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development