Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-38154

As a Liferay Plugin developer, I would like to be able to decorate PortalImpl.java with a new class called PortalWrapper.java

    Details

      Description

      In order to decorate the Portal.java interface, it would be necessary to have a PortalWrapper.java class that implements the same decorator pattern used elsewhere in the portal source.

      Example Use Case:

      The portal.properties provides a "company.security.strangers.url" property for providing a custom "Create Account" URL. However, this feature was not robust enough for the Liferay Faces jsf2-registration-portlet demo. It has a class named PortalHookImpl.java that provides a programatic way of changing the "Create Account" URL with a portlet that is different than the out-of-the-box "58" portlet.

      If there was a PortalWrapper.java class in the portal, then it would be much easier to decorate PortalImpl.getCreateAccountURL(HttpServletRequest, ThemeDisplay) with an @Override method.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Packages

                  Version Package
                  6.1.1 CE GA2
                  6.1.20 EE GA2