Previous Page | Next Page

Moving Existing Custom Portlets to SAS Information Delivery Portal 4.2

Remote Portlet API Changes


Logoff Portlet Action

The logoff portlet action allows the Web application associated with the remote portlet to receive notification when a user logs off the portal. This allows resources to be cleaned up immediately, as opposed to waiting for an HttpSession time-out. To implement, the portlet.xml file must contain a logoff action like the following:

</portlet-action>
   <portlet-action name="logoff" remote-logoff="true">
   <url>http://host-name:8080/SASRemotePortlet/Controller</url>
</portlet-action>

The following code in the remote portlet Web application processes the logoff action:

// Check for logoff notification before doing anything else.
if (RemotePortletToolkitUtil.isLogoffRequest(request)) {
   session.invalidate();
   return false;
}


RemotePortletToolkitUtil Classes

The com.sas.portal.portlet.remote.RemotePortletToolkitUtil class contains the following new utility methods that make it easier to write remote portlets:

Previous Page | Next Page | Top of Page