/** * Release the proper state for this instance (if portlet is known). * * @param portlet * The portlet being rendered. * @param rundata * The Jetspeed (Turbine) rundata associated with the request. */ protected void releaseState(VelocityPortlet portlet, RunData rundata) { releaseState(portlet.getID(), rundata); } // releaseState
/** * Release the proper state for this instance (if portlet is not known, only context). * * @param context * The Template Context (it contains a reference to the portlet). * @param rundata * The Jetspeed (Turbine) rundata associated with the request. */ protected void releaseState(Context context, RunData rundata) { releaseState(((JetspeedRunData) rundata).getJs_peid(), rundata); } // releaseState
/** * Handle the "reset tool" option from the Title bar. */ public void doReset(RunData runData, Context context) { // access the portlet element id to find "our" state (i.e. the state for this portlet) String peid = ((JetspeedRunData) runData).getJs_peid(); SessionState state = ((JetspeedRunData) runData).getPortletSessionState(peid); // clear this state resetTool(state); // // make sure the Main panel is updated String main = VelocityPortletPaneledAction.mainPanelUpdateId(peid); schedulePeerFrameRefresh(main); } // doReset
/** * The action for when the user want's an update */ public void doRefresh(RunData data, Context context) { // access the portlet element id to find our state String peid = ((JetspeedRunData) data).getJs_peid(); SessionState state = ((JetspeedRunData) data).getPortletSessionState(peid); } // doRefresh
protected void checkRunData(HttpServletRequest req) { if (req.getAttribute(ATTR_RUNDATA) != null) return; // set in VmServlet ParameterParser params = (ParameterParser) req.getAttribute(ATTR_PARAMS); JetspeedRunData rundata = new JetspeedRunData(req, getState(req), getPid(req), params); req.setAttribute(ATTR_RUNDATA, rundata); }
/** * Get the proper state for this instance (if portlet is not known, only context). * * @param context * The Template Context (it contains a reference to the portlet). * @param rundata * The Jetspeed (Turbine) rundata associated with the request. * @param stateClass * The Class of the ControllerState to find / create. * @return The proper state object for this instance. */ protected ControllerState getState(Context context, RunData rundata, Class stateClass) { return getState(((JetspeedRunData) rundata).getJs_peid(), rundata, stateClass); } // getState
/** * Setup for a helper tool - all subsequent requests will be directed there, till the tool is done. * * @param helperId * The helper tool id. */ protected void startHelper(HttpServletRequest req, String helperId) { startHelper(req, helperId, MAIN_PANEL); }
public String getInitParameter(String name, String dflt) { String value = getInitParameter(name); if (value == null) { value = dflt; } return value; }
public void put(String name, Object value) { action.setVmReference(name, value, m_req); } }
/** * Respond to a request by dispatching to a portlet like "do" method based on the portlet mode and tool mode */ protected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException { doGet(req, res); } // doPost
/** * Release any resources and restore the object to initial conditions to be reused. */ public void recycle() { m_id = ""; m_setId = ""; init(); } // recycle
public String getString(String name) { return (String) get(name); } }
/** * Handle the "reset tool" option from the Title bar. */ public void doReset(RunData runData, Context context) { // access the portlet element id to find "our" state (i.e. the state for this portlet) String peid = ((JetspeedRunData) runData).getJs_peid(); SessionState state = ((JetspeedRunData) runData).getPortletSessionState(peid); // clear this state resetTool(state); // // make sure the Main panel is updated String main = VelocityPortletPaneledAction.mainPanelUpdateId(peid); schedulePeerFrameRefresh(main); } // doReset
/** * The action for when the user want's an update */ public void doRefresh(RunData data, Context context) { // access the portlet element id to find our state String peid = ((JetspeedRunData) data).getJs_peid(); SessionState state = ((JetspeedRunData) data).getPortletSessionState(peid); } // doRefresh
/** * Release the proper state for this instance (if portlet is known). * * @param portlet * The portlet being rendered. * @param rundata * The Jetspeed (Turbine) rundata associated with the request. */ protected void releaseState(VelocityPortlet portlet, RunData rundata) { releaseState(portlet.getID(), rundata); } // releaseState
/** * Release the proper state for this instance (if portlet is not known, only context). * * @param context * The Template Context (it contains a reference to the portlet). * @param rundata * The Jetspeed (Turbine) rundata associated with the request. */ protected void releaseState(Context context, RunData rundata) { releaseState(((JetspeedRunData) rundata).getJs_peid(), rundata); } // releaseState
/** * Setup for a helper tool - all subsequent requests will be directed there, till the tool is done. * * @param helperId * The helper tool id. */ protected void startHelper(HttpServletRequest req, String helperId) { startHelper(req, helperId, MAIN_PANEL); }
/** * The action for when the user want's an update */ public void doRefresh(RunData data, Context context) { // access the portlet element id to find our state String peid = ((JetspeedRunData) data).getJs_peid(); SessionState state = ((JetspeedRunData) data).getPortletSessionState(peid); } // doRefresh
/** * The action for when the user want's an update */ public void doRefresh(RunData data, Context context) { // access the portlet element id to find our state String peid = ((JetspeedRunData) data).getJs_peid(); SessionState state = ((JetspeedRunData) data).getPortletSessionState(peid); } // doRefresh
/** * The action for when the user want's an update */ public void doRefresh(RunData data, Context context) { // access the portlet element id to find our state String peid = ((JetspeedRunData) data).getJs_peid(); SessionState state = ((JetspeedRunData) data).getPortletSessionState(peid); } // doRefresh