/** * PLUTO: PortletPreferencesService */ public Map<String, PortletPreference> getStoredPreferences( org.apache.pluto.container.PortletWindow pw, PortletRequest request) throws PortletContainerException { PortletWindow window = (PortletWindow)pw; if (request.getPortletMode().equals(JetspeedActions.EDIT_DEFAULTS_MODE)) { return retrieveEntityPreferences(window); } String userName = request.getUserPrincipal() != null ? request.getUserPrincipal().getName() : null; if (userName == null) { userName = SubjectHelper.getPrincipal(window.getRequestContext().getSubject(), User.class).getName(); } // JS2-1325: since 2.3.0 return (enableSessionCache) ? retrieveUserSessionWindowPreferences(window, userName) : retrieveUserPreferences(window, userName); }