4.8.3 PortletSessionListener

This interface requests the Portal Server to notify the portlet if an authenticated user has accessed the portlet. This interface is already implemented by the PortletAdapter class which is traditionally the parent of most custom portlets. This interface defines the two methods shown in Example 4-18. Figure  illustrates where in the life cycle of the portlet these methods are called. The functionality of the login and logout methods is detailed in 4.7, Portlet life cycle.

Example 4-18 PortletSessionListener methods

public void login(PortletRequest request) throws PortletException{ ... }
public void logout(PortletSession session) throws PortletException{ ... }


Redbooks
ibm.com/redbooks