org.sakaiproject.tool.discussion
Class ThreadedDiscussionIIAction

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byorg.sakaiproject.vm.ComponentServlet
              extended byorg.sakaiproject.vm.VmServlet
                  extended byorg.sakaiproject.cheftool.VmServlet
                      extended byorg.sakaiproject.cheftool.ToolServlet
                          extended byorg.sakaiproject.cheftool.VelocityPortletPaneledAction
                              extended byorg.sakaiproject.tool.discussion.ThreadedDiscussionIIAction
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class ThreadedDiscussionIIAction
extends VelocityPortletPaneledAction

DiscussionAction is the action class for the dicussion tool.

Version:
$Revision: 6116 $
Author:
University of Michigan, CHEF Software Development Team
See Also:
Serialized Form

Nested Class Summary
 class ThreadedDiscussionIIAction.DisplayMessage
          the class which is using by one of the iFrames to show the content of selected message
 
Nested classes inherited from class org.sakaiproject.cheftool.VelocityPortletPaneledAction
VelocityPortletPaneledAction.MyLogger
 
Field Summary
protected static String FORM_SEARCH
          Form fields.
 
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, LAYOUT_MAIN, Log, MODE_OPTIONS, STATE_ACTION, STATE_FLOAT, STATE_HELPER, STATE_MESSAGE, STATE_OBSERVER, STATE_OBSERVER2, STATE_PRESENCE_OBSERVER, STATE_TOOL
 
Fields inherited from class org.sakaiproject.cheftool.ToolServlet
ALERT_ATTR, ALERT_STATE_INITED, 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
ThreadedDiscussionIIAction()
           
 
Method Summary
 String buildContentContext(VelocityPortlet portlet, Context context, RunData rundata, SessionState state)
          build the context for showing topic content (has a send field)
 String buildControlPanelContext(VelocityPortlet portlet, Context context, RunData rundata, SessionState state)
          build the context for the Control panel (has a send field)
 String buildDeleteCategoryConfirmContext(VelocityPortlet portlet, Context context, RunData rundata, SessionState state)
          build the context for confirming the delete of category (has a send field)
 String buildDeleteMessageConfirmContext(VelocityPortlet portlet, Context context, RunData rundata, SessionState state)
          build the context for confirming the delete of message (has a send field)
 String buildListPanelContext(VelocityPortlet portlet, Context context, RunData rundata, SessionState state)
          build the context for the List panel
 String buildMainPanelContext(VelocityPortlet portlet, Context context, RunData rundata, SessionState state)
          build the context for the Layout panel
 String buildNewCategoryContext(VelocityPortlet portlet, Context context, RunData rundata, SessionState state)
          build the context for creating new category (has a send field)
 String buildNewTopicContext(VelocityPortlet portlet, Context context, RunData rundata, SessionState state)
          build the context for creating new topic (has a send field)
 String buildOptionsPanelContext(VelocityPortlet portlet, Context context, RunData rundata, SessionState state)
          Setup for options. %%% Note: not sure this and doUpdate are correct, not currently invoked (no menu entry) -ggolden
 String buildReplyContext(VelocityPortlet portlet, Context context, RunData rundata, SessionState state)
          build the context for the reply form (has a send field)
 String buildReplyPreviewContext(VelocityPortlet portlet, Context context, RunData rundata, SessionState state)
          build the context for the reply preview (has a send field)
 String buildToolbarPanelContext(VelocityPortlet portlet, Context context, RunData data, SessionState state)
          build the context for the menu panel
 void doAttachments(RunData data, Context context)
          Action is to use when doAttachment when "add attachments" is clicked
 void doCancel_delete_category(RunData data, Context context)
          cancel the deletion of category
 void doCancel_delete_message(RunData data, Context context)
          cancel the deletion of message
 void doCancel_draft(RunData data)
          Handle the eventSubmit_doCancel_draft to stop showing the draft message
 void doCancel_new_category(RunData data)
          Handle the eventSubmit_doCancel_new_category to stop showing the new category page
 void doCancel_new_topic(RunData data)
          Handle the eventSubmit_doCancel_new_topic to stop showing the new topic page
 void doCancel_reply_preview(RunData data, Context context)
          Cancel from the reply preview page
 void doCancel_reply(RunData data, Context context)
          Cancel from the reply page
 void doCancel_show_topic_content(RunData data)
          Handle the eventSubmit_doCancel_show_topic_content command to abort the show topic content page.
 void doCollapse_all(RunData data, Context context)
          Hide the whole message hireachy
 void doCollapse_category(RunData data, Context context)
          doCollapsecategory hides all the topics inside the category
 void doCollapse_message(RunData data, Context context)
          doCollapsemessage hides all the messages inside the category
 void doDelete_category_confirm(RunData data, Context context)
          confirm the deletion of category
 void doDelete_category(RunData data, Context context)
          delete the category
 void doDelete_message_confirm(RunData data, Context context)
          confirm the deletion of message
 void doDelete_message(RunData data, Context context)
           
 void doExpand_all(RunData data, Context context)
          Show the whole message hireachy
 void doExpand_category(RunData data, Context context)
          doExpandcategory shows all the topics inside the category
 void doExpand_message(RunData data, Context context)
          doExpandmessage expand the message with the content and replies
 void doNew_category(RunData data, Context context)
          Start a new category
 void doNew_topic(RunData data, Context context)
          Start a new topic
 void doNext_message(RunData data, Context context)
          Navigate to next message in the category
 void doNext_topic_content(RunData data, Context context)
          Responding to the request of going to next topic within the current category
 void doPermissions(RunData data, Context context)
          Fire up the permissions editor
 void doPost(RunData data, Context context)
          Post the draft message
 void doPre_message(RunData data, Context context)
          navigate to previous message in the category
 void doPrev_topic_content(RunData data, Context context)
          Responding to the request of going to previous topic within the current category
 void doPreview(RunData data, Context context)
          Preview the response
 void doRespond_draft(RunData runData, Context context)
          Handle a user posting a drafted respond message
 void doRespond(RunData runData, Context context)
          Handle a user posting a respond message
 void doSave(RunData data, Context context)
          Save the draft message
 void doSearch_clear(RunData runData, Context context)
          Handle a Search Clear request.
 void doSearch(RunData runData, Context context)
          Handle a \ request.
 void doSet_new_category(RunData data, Context context)
          get the control pannel ready for input new category
 void doSet_new_topic(RunData data, Context context)
          get the control pannel ready for input new topic
 void doSet_reply_msg(RunData data, Context context)
          set the form for replying message only
 void doSet_reply_topic(RunData data, Context context)
          set the form for replying
 void doSet_reply(RunData data, Context context)
          set the form for replying
 void doShow_topic_content(RunData data, Context context)
          To show the topic content when "add attachments" is clicked
 void doShow(RunData data, Context context)
          Show the discussion message
 void doUpdate(RunData data, Context context)
          doUpdate called for form input tags type="submit" named="eventSubmit_doUpdate"
 void doView(RunData data, Context context)
           
 void enableObserver(SessionState state)
          Enable the observer, unless we are in search mode, where we want it disabled.
protected  void initState(SessionState state, VelocityPortlet portlet, JetspeedRunData rundata)
          Populate the state object, if needed.
 
Methods inherited from class org.sakaiproject.cheftool.VelocityPortletPaneledAction
actionDispatch, addAlert, addOptionsMenu, cancelOptions, clientWindowId, disableObservers, doGet, doOptions, doReset, enableObservers, getContext, helperActionDispatch, initState, justDelivered, mainPanelUpdateId, processAction, resetTool, saveOptions, scheduleFocusRefresh, schedulePeerFrameRefresh, scheduleTopRefresh, setVmCourier, setVmStdRef, titlePanelUpdateId, toolModeDispatch, updateState
 
Methods inherited from class org.sakaiproject.cheftool.ToolServlet
doPost, getAlert, getAlert, getMenu, getPid, getState, getToolMode, prepState, setToolMode
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FORM_SEARCH

protected static final String FORM_SEARCH
Form fields.

See Also:
Constant Field Values
Constructor Detail

ThreadedDiscussionIIAction

public ThreadedDiscussionIIAction()
Method Detail

initState

protected void initState(SessionState state,
                         VelocityPortlet portlet,
                         JetspeedRunData rundata)
Populate the state object, if needed.

Overrides:
initState in class VelocityPortletPaneledAction

doAttachments

public void doAttachments(RunData data,
                          Context context)
Action is to use when doAttachment when "add attachments" is clicked


buildMainPanelContext

public String buildMainPanelContext(VelocityPortlet portlet,
                                    Context context,
                                    RunData rundata,
                                    SessionState state)
build the context for the Layout panel

Returns:
(optional) template name for this panel

buildToolbarPanelContext

public String buildToolbarPanelContext(VelocityPortlet portlet,
                                       Context context,
                                       RunData data,
                                       SessionState state)
build the context for the menu panel

Returns:
(optional) template name for this panel

buildListPanelContext

public String buildListPanelContext(VelocityPortlet portlet,
                                    Context context,
                                    RunData rundata,
                                    SessionState state)
build the context for the List panel

Returns:
(optional) template name for this panel

buildControlPanelContext

public String buildControlPanelContext(VelocityPortlet portlet,
                                       Context context,
                                       RunData rundata,
                                       SessionState state)
build the context for the Control panel (has a send field)

Returns:
(optional) template name for this panel

buildContentContext

public String buildContentContext(VelocityPortlet portlet,
                                  Context context,
                                  RunData rundata,
                                  SessionState state)
build the context for showing topic content (has a send field)

Returns:
(optional) template name for this panel

doNext_topic_content

public void doNext_topic_content(RunData data,
                                 Context context)
Responding to the request of going to next topic within the current category


doPrev_topic_content

public void doPrev_topic_content(RunData data,
                                 Context context)
Responding to the request of going to previous topic within the current category


buildNewTopicContext

public String buildNewTopicContext(VelocityPortlet portlet,
                                   Context context,
                                   RunData rundata,
                                   SessionState state)
build the context for creating new topic (has a send field)

Returns:
(optional) template name for this panel

buildNewCategoryContext

public String buildNewCategoryContext(VelocityPortlet portlet,
                                      Context context,
                                      RunData rundata,
                                      SessionState state)
build the context for creating new category (has a send field)

Returns:
(optional) template name for this panel

buildDeleteMessageConfirmContext

public String buildDeleteMessageConfirmContext(VelocityPortlet portlet,
                                               Context context,
                                               RunData rundata,
                                               SessionState state)
build the context for confirming the delete of message (has a send field)

Returns:
(optional) template name for this panel

buildDeleteCategoryConfirmContext

public String buildDeleteCategoryConfirmContext(VelocityPortlet portlet,
                                                Context context,
                                                RunData rundata,
                                                SessionState state)
build the context for confirming the delete of category (has a send field)

Returns:
(optional) template name for this panel

buildReplyContext

public String buildReplyContext(VelocityPortlet portlet,
                                Context context,
                                RunData rundata,
                                SessionState state)
build the context for the reply form (has a send field)

Returns:
(optional) template name for this panel

buildReplyPreviewContext

public String buildReplyPreviewContext(VelocityPortlet portlet,
                                       Context context,
                                       RunData rundata,
                                       SessionState state)
build the context for the reply preview (has a send field)

Returns:
(optional) template name for this panel

doPost

public void doPost(RunData data,
                   Context context)
Post the draft message


doSave

public void doSave(RunData data,
                   Context context)
Save the draft message


doNew_category

public void doNew_category(RunData data,
                           Context context)
Start a new category


doNew_topic

public void doNew_topic(RunData data,
                        Context context)
Start a new topic


doRespond

public void doRespond(RunData runData,
                      Context context)
Handle a user posting a respond message


doRespond_draft

public void doRespond_draft(RunData runData,
                            Context context)
Handle a user posting a drafted respond message


doCancel_reply

public void doCancel_reply(RunData data,
                           Context context)
Cancel from the reply page


doCancel_reply_preview

public void doCancel_reply_preview(RunData data,
                                   Context context)
Cancel from the reply preview page


doDelete_category_confirm

public void doDelete_category_confirm(RunData data,
                                      Context context)
confirm the deletion of category


doCancel_delete_category

public void doCancel_delete_category(RunData data,
                                     Context context)
cancel the deletion of category


doDelete_category

public void doDelete_category(RunData data,
                              Context context)
delete the category


doDelete_message_confirm

public void doDelete_message_confirm(RunData data,
                                     Context context)
confirm the deletion of message


doDelete_message

public void doDelete_message(RunData data,
                             Context context)

doCancel_delete_message

public void doCancel_delete_message(RunData data,
                                    Context context)
cancel the deletion of message


doCancel_show_topic_content

public void doCancel_show_topic_content(RunData data)
Handle the eventSubmit_doCancel_show_topic_content command to abort the show topic content page.


doCancel_draft

public void doCancel_draft(RunData data)
Handle the eventSubmit_doCancel_draft to stop showing the draft message


doCancel_new_topic

public void doCancel_new_topic(RunData data)
Handle the eventSubmit_doCancel_new_topic to stop showing the new topic page


doCancel_new_category

public void doCancel_new_category(RunData data)
Handle the eventSubmit_doCancel_new_category to stop showing the new category page


doShow_topic_content

public void doShow_topic_content(RunData data,
                                 Context context)
To show the topic content when "add attachments" is clicked


doShow

public void doShow(RunData data,
                   Context context)
Show the discussion message


doPreview

public void doPreview(RunData data,
                      Context context)
Preview the response


doSet_reply

public void doSet_reply(RunData data,
                        Context context)
set the form for replying


doSet_reply_msg

public void doSet_reply_msg(RunData data,
                            Context context)
set the form for replying message only


doSet_reply_topic

public void doSet_reply_topic(RunData data,
                              Context context)
set the form for replying


doSet_new_topic

public void doSet_new_topic(RunData data,
                            Context context)
get the control pannel ready for input new topic


doSet_new_category

public void doSet_new_category(RunData data,
                               Context context)
get the control pannel ready for input new category


buildOptionsPanelContext

public String buildOptionsPanelContext(VelocityPortlet portlet,
                                       Context context,
                                       RunData rundata,
                                       SessionState state)
Setup for options. %%% Note: not sure this and doUpdate are correct, not currently invoked (no menu entry) -ggolden


doUpdate

public void doUpdate(RunData data,
                     Context context)
doUpdate called for form input tags type="submit" named="eventSubmit_doUpdate"


doExpand_all

public void doExpand_all(RunData data,
                         Context context)
Show the whole message hireachy


doCollapse_all

public void doCollapse_all(RunData data,
                           Context context)
Hide the whole message hireachy


doExpand_message

public void doExpand_message(RunData data,
                             Context context)
doExpandmessage expand the message with the content and replies


doCollapse_message

public void doCollapse_message(RunData data,
                               Context context)
doCollapsemessage hides all the messages inside the category


doExpand_category

public void doExpand_category(RunData data,
                              Context context)
doExpandcategory shows all the topics inside the category


doCollapse_category

public void doCollapse_category(RunData data,
                                Context context)
doCollapsecategory hides all the topics inside the category


doPermissions

public void doPermissions(RunData data,
                          Context context)
Fire up the permissions editor


doSearch

public void doSearch(RunData runData,
                     Context context)
Handle a \ request.


doSearch_clear

public void doSearch_clear(RunData runData,
                           Context context)
Handle a Search Clear request.


enableObserver

public void enableObserver(SessionState state)
Enable the observer, unless we are in search mode, where we want it disabled.


doView

public void doView(RunData data,
                   Context context)

doPre_message

public void doPre_message(RunData data,
                          Context context)
navigate to previous message in the category


doNext_message

public void doNext_message(RunData data,
                           Context context)
Navigate to next message in the category