Package org.sakaiproject.cheftool
Class VelocityPortletStateAction
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.sakaiproject.vm.ComponentServlet
-
- org.sakaiproject.vm.VmServlet
-
- org.sakaiproject.cheftool.VmServlet
-
- org.sakaiproject.cheftool.ToolServlet
-
- org.sakaiproject.cheftool.VelocityPortletPaneledAction
-
- org.sakaiproject.cheftool.VelocityPortletStateAction
-
- All Implemented Interfaces:
Serializable,Servlet,ServletConfig
public abstract class VelocityPortletStateAction extends VelocityPortletPaneledAction
VelocityPortletStateAction is an extension of VelocityPortletAction which provides a way to associate Controller state with each instances of the portlet using this action.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.sakaiproject.cheftool.VelocityPortletPaneledAction
ATTR_CONFIG, ATTR_CONTEXT, ATTR_FRAME_FOCUS, ATTR_FRAME_REFRESH, ATTR_PORTLET, ATTR_RUNDATA, ATTR_TOP_REFRESH, BUTTON, CONTEXT_SITE_COLLECTION_ID, CONTEXT_SITE_COLLECTION_URL, HELPER_LINK_MODE, HELPER_MODE_DONE, LAYOUT_MAIN, MODE_OPTIONS, MODE_PERMISSIONS, SAKAI_CSRF_TOKEN, STATE_ACTION, STATE_BUNDLE_KEY, STATE_FLOAT, STATE_HELPER, STATE_MESSAGE, STATE_MODE, STATE_NEW_PANEL, STATE_NOTIF, STATE_OBSERVER, STATE_OBSERVER2, STATE_PRESENCE_OBSERVER, STATE_TOOL, STATE_TOOL_KEY
-
Fields inherited from class org.sakaiproject.cheftool.ToolServlet
ALERT_ATTR, ALERT_STATE_INITED, HELPER_ID, MAIN_PANEL, MENU_ATTR, PARAM_ACTION, PARAM_ACTION_COMBO, TITLE_PANEL, TOOL_MODE_ATTR, TOOL_MODE_DEFAULT
-
Fields inherited from class org.sakaiproject.cheftool.VmServlet
m_validator
-
Fields inherited from class org.sakaiproject.vm.ComponentServlet
ATTR_PARAMS
-
-
Constructor Summary
Constructors Constructor Description VelocityPortletStateAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ControllerStategetState(String peid, RunData rundata, Class stateClass)Get the proper state for this instance (if portlet id is known).protected ControllerStategetState(Context context, RunData rundata, Class stateClass)Get the proper state for this instance (if portlet is not known, only context).protected ControllerStategetState(VelocityPortlet portlet, RunData rundata, Class stateClass)Get the proper state for this instance (if portlet is known).protected voidreleaseState(String peid, RunData rundata)Release the proper state for this instance (if portlet id is known).protected voidreleaseState(Context context, RunData rundata)Release the proper state for this instance (if portlet is not known, only context).protected voidreleaseState(VelocityPortlet portlet, RunData rundata)Release the proper state for this instance (if portlet is known).-
Methods inherited from class org.sakaiproject.cheftool.VelocityPortletPaneledAction
actionDispatch, addAlert, addAlert, addFlashNotif, addOptionsMenu, allowedToOptions, build_permissions_context, cancelOptions, checkCSRFToken, checkRunData, doGet, doOptions, doReset, getContext, getDateFormatString, getTimeFormatString, helperActionDispatch, initState, initState, mainPanelUpdateId, panelMethodName, processAction, resetTool, saveOptions, scheduleFocusRefresh, schedulePeerFrameRefresh, scheduleTopRefresh, setVmStdRef, switchPanel, titlePanelUpdateId, toolModeDispatch, updateState
-
Methods inherited from class org.sakaiproject.cheftool.ToolServlet
doPost, getAlert, getAlert, getMenu, getPid, getState, getToolMode, prepState, sendToHelper, setToolMode, startHelper, startHelper
-
Methods inherited from class org.sakaiproject.vm.VmServlet
getActionURL, getVmReference, includeVm, setVmReference
-
Methods inherited from class org.sakaiproject.vm.ComponentServlet
sendParentRedirect, service, setNoCacheHeaders
-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service
-
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
-
-
-
-
Method Detail
-
getState
protected ControllerState getState(Context context, RunData rundata, Class stateClass)
Get the proper state for this instance (if portlet is not known, only context).- Parameters:
context- The Template Context (it contains a reference to the portlet).rundata- The Jetspeed (Turbine) rundata associated with the request.stateClass- The Class of the ControllerState to find / create.- Returns:
- The proper state object for this instance.
-
getState
protected ControllerState getState(VelocityPortlet portlet, RunData rundata, Class stateClass)
Get the proper state for this instance (if portlet is known).- Parameters:
portlet- The portlet being rendered.rundata- The Jetspeed (Turbine) rundata associated with the request.stateClass- The Class of the ControllerState to find / create.- Returns:
- The proper state object for this instance.
-
getState
protected ControllerState getState(String peid, RunData rundata, Class stateClass)
Get the proper state for this instance (if portlet id is known).- Parameters:
peid- The portlet id.rundata- The Jetspeed (Turbine) rundata associated with the request.stateClass- The Class of the ControllerState to find / create.- Returns:
- The proper state object for this instance.
-
releaseState
protected void releaseState(Context context, RunData rundata)
Release the proper state for this instance (if portlet is not known, only context).- Parameters:
context- The Template Context (it contains a reference to the portlet).rundata- The Jetspeed (Turbine) rundata associated with the request.
-
releaseState
protected void releaseState(VelocityPortlet portlet, RunData rundata)
Release the proper state for this instance (if portlet is known).- Parameters:
portlet- The portlet being rendered.rundata- The Jetspeed (Turbine) rundata associated with the request.
-
-