Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Corrected links that should have been relative instead of absolute.

...

Extending CPortletAdapter

This section documents how you would extend CPortletAdapter under the proposed introduction of overridable protected methods.

Actually doing it

You can extend the CPortletAdapter class to override implementation of some of its protected methods for getting user attributes for for setting up PortletRequest attributes. The way you do this is you write a Java class that extends CPortletAdapter and overrides the appropriate methods. Then, when publishing a Portlet using CChannelManager, instead of using CPortletAdapter use your subclass.

...