/** * Reset the tool (state) to "home" conditions. Default here is to clear everything from state. * * @param state * The tool's session state. */ protected void resetTool(SessionState state) { state.clear(); } // resetTool
/** * Reset the tool (state) to "home" conditions. Default here is to clear everything from state. * * @param state * The tool's session state. */ protected void resetTool(SessionState state) { state.clear(); } // resetTool
/** * Release the proper state for this instance (if portlet id is known). * * @param peid * The portlet id being rendered. * @param rundata * The Jetspeed (Turbine) rundata associated with the request. */ protected void releaseState(String peid, RunData rundata) { try { // get the PortletSessionState SessionState ss = ((JetspeedRunData) rundata).getPortletSessionState(peid); // get the state object ControllerState state = (ControllerState) ss.getAttribute("state"); // recycle the state object state.recycle(); // clear out the SessionState for this Portlet ss.removeAttribute("state"); ss.clear(); } catch (Exception e) { log.warn(e.getMessage(), e); } } // releaseState
/** * Release the proper state for this instance (if portlet id is known). * * @param peid * The portlet id being rendered. * @param rundata * The Jetspeed (Turbine) rundata associated with the request. */ protected void releaseState(String peid, RunData rundata) { try { // get the PortletSessionState SessionState ss = ((JetspeedRunData) rundata).getPortletSessionState(peid); // get the state object ControllerState state = (ControllerState) ss.getAttribute("state"); // recycle the state object state.recycle(); // clear out the SessionState for this Portlet ss.removeAttribute("state"); ss.clear(); } catch (Exception e) { log.warn(e.getMessage(), e); } } // releaseState