Jetspeed 2
  1. Jetspeed 2
  2. JS2-747

A valve creating template pages when a user logs on first.

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.2
    • Fix Version/s: 2.1.2
    • Component/s: Profiler
    • Labels:
      None

      Description

      Create a valve which creates user's home pages from user template folder (e.g. /_user/template/) when the user does not have home pages and the user logs on first.
      This valve should copy pages from template folder as j2-admin does.
      This feature could be useful when users are not created only by j2-admin UI.

      A similar issue was proposed in the mailing list before. (See http://www.nabble.com/Creating-a-user-in-jetspeed-t3836908.html.)
      I searched the JIRA on this issue, but I could not find a patch for this.
      So, I'd like to upload my patch.

        Activity

        Hide
        Ate Douma added a comment -

        Very useful new feature Woonsan, thanks!.

        Show
        Ate Douma added a comment - Very useful new feature Woonsan, thanks!.
        Hide
        Woonsan Ko added a comment -

        Although pages are created by this valve, the page is not refreshed instantly.
        So, I made this valve to extend ProfilerValveImpl.
        By doing this, if pages are newly created, this valve called super.invokeNext() and this refreshes the user page instantly.
        Also, the template folder could be configured at runtime by setting a request attribute.
        To apply this valve, add this valve after profilerValve for jetspeed-pipeline and desktop-pipeline.
        Any comment welcomed.

        Show
        Woonsan Ko added a comment - Although pages are created by this valve, the page is not refreshed instantly. So, I made this valve to extend ProfilerValveImpl. By doing this, if pages are newly created, this valve called super.invokeNext() and this refreshes the user page instantly. Also, the template folder could be configured at runtime by setting a request attribute. To apply this valve, add this valve after profilerValve for jetspeed-pipeline and desktop-pipeline. Any comment welcomed.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development