org.sakaiproject.tool.assignment
Class AssignmentAction

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.cheftool.PagedResourceActionII
                                  extended byorg.sakaiproject.tool.assignment.AssignmentAction
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class AssignmentAction
extends PagedResourceActionII

AssignmentAction is the action class for the dicussion tool.

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

Nested Class Summary
 
Nested classes inherited from class org.sakaiproject.cheftool.VelocityPortletPaneledAction
VelocityPortletPaneledAction.MyLogger
 
Field Summary
 
Fields inherited from class org.sakaiproject.cheftool.PagedResourceActionII
DEFAULT_PAGE_SIZE, FORM_PAGE_NUMBER, FORM_SEARCH, PAGESIZES, PARAM_PAGESIZE, rb_praII, STATE_CURRENT_PAGE, STATE_FIRST_PAGE_EXISTS, STATE_GO_FIRST_PAGE, STATE_GO_LAST_PAGE, STATE_GO_NEXT, STATE_GO_NEXT_PAGE, STATE_GO_PREV, STATE_GO_PREV_PAGE, STATE_GOTO_PAGE, STATE_LAST_PAGE_EXISTS, STATE_MANUAL_REFRESH, STATE_NEXT_EXISTS, STATE_NEXT_PAGE_EXISTS, STATE_NUM_MESSAGES, STATE_PAGESIZE, STATE_PREV_EXISTS, STATE_PREV_PAGE_EXISTS, STATE_SEARCH, STATE_TOP_PAGE_MESSAGE, STATE_TOTAL_PAGENUMBER, STATE_VIEW_ID
 
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
AssignmentAction()
           
 
Method Summary
protected  String build_instructor_delete_assignment_context(VelocityPortlet portlet, Context context, RunData data, SessionState state)
          build the instructor view to delete an assignment
protected  String build_instructor_edit_assignment_context(VelocityPortlet portlet, Context context, RunData data, SessionState state)
          build the instructor view to edit an new assignment
protected  String build_instructor_grade_assignment_context(VelocityPortlet portlet, Context context, RunData data, SessionState state)
          build the instructor view to grade an assignment
protected  String build_instructor_grade_submission_context(VelocityPortlet portlet, Context context, RunData data, SessionState state)
          build the instructor view to grade an submission
protected  String build_instructor_new_assignment_context(VelocityPortlet portlet, Context context, RunData data, SessionState state)
          build the instructor view of create a new assignment
protected  String build_instructor_preview_assignment_context(VelocityPortlet portlet, Context context, RunData data, SessionState state)
          build the instructor view of create a new assignment
protected  String build_instructor_preview_grade_submission_context(VelocityPortlet portlet, Context context, RunData data, SessionState state)
          build the instructor preview of grading submission
protected  String build_instructor_report_submissions(VelocityPortlet portlet, Context context, RunData data, SessionState state)
          build the instructor view to report the submissions
protected  String build_instructor_view_assignment_context(VelocityPortlet portlet, Context context, RunData data, SessionState state)
          build the instructor view of an assignment
protected  String build_instructor_view_students_assignment_context(VelocityPortlet portlet, Context context, RunData data, SessionState state)
          build the instructor view to view the list of students for an assignment
protected  String build_list_assignments_context(VelocityPortlet portlet, Context context, RunData data, SessionState state)
          build the view of assignments list
protected  String build_student_preview_submission_context(VelocityPortlet portlet, Context context, RunData data, SessionState state)
          build the student preview of showing an assignment submission
protected  String build_student_view_assignment_context(VelocityPortlet portlet, Context context, RunData data, SessionState state)
          build the student view of assignment
protected  String build_student_view_grade_context(VelocityPortlet portlet, Context context, RunData data, SessionState state)
          build the student view of showing a graded submission
protected  String build_student_view_submission_context(VelocityPortlet portlet, Context context, RunData data, SessionState state)
          build the student view of showing an assignment submission
 String buildMainPanelContext(VelocityPortlet portlet, Context context, RunData data, SessionState state)
          central place for dispatching the build routines based on the state name
 void doAssignment_form(RunData data)
           
 void doAttachments(RunData data)
          Action is to use when doAattchmentsadding requested, corresponding to chef_Assignments-new "eventSubmit_doAattchmentsadding" when "add attachments" is clicked
 void doCancel_delete_assignment(RunData data)
          Action is to cancel the delete assignment process
 void doCancel_edit_assignment(RunData data)
          Action is to end the show submission process
 void doCancel_grade_submission(RunData data)
          Action is to cancel the grade submission process
 void doCancel_new_assignment(RunData data)
          Action is to end the show submission process
 void doCancel_preview_grade_submission(RunData data)
          Action is to cancel the preview grade process
 void doCancel_show_submission(RunData data)
          Action is to end the show submission process
 void doCancel_student_view_assignment(RunData data)
          Action is to end the user view assignment process and redirect him to the assignment list view
 void doCancel_view_grade(RunData data)
          Action is to cancel the student view grade process
 void doCollapse_grade_assignment(RunData data)
          Action is to hide the assignment in grading page
 void doCollapse_grade_submission(RunData data)
          Action is to hide the submissions in grading page
 void doDeep_delete_assignment(RunData data)
          Action is to delete the assignment and also the related AssignmentSubmission
 void doDelete_assignment(RunData data)
          Action is to delete the confirmed assignments
 void doDelete_confirm_assignment(RunData data)
          Action is to show the delete assigment confirmation screen
 void doDone_preview_edit_assignment(RunData data)
          Action is to end the preview edit assignment process
 void doDone_preview_new_assignment(RunData data)
          Action is to end the preview new assignment process
 void doDone_preview_submission(RunData data)
          Action is to end the preview submission process
 void doDone_view_assignment(RunData data)
          Action is to end the view assignment process
 void doDuplicate_assignment(RunData data)
          Action is to show the duplicate assignment screen
 void doEdit_assignment(RunData data)
          Action is to show the edit assignment screen
 void doExpand_grade_assignment(RunData data)
          Action is to show the assignment in grading page
 void doExpand_grade_submission(RunData data)
          Action is to show the submissions in grading page
 void doGrade_assignment_from(RunData data)
          Action is to show the grade assignment
 void doGrade_assignment(RunData data)
          Action is to show the grade assignment
 void doGrade_submission(RunData data)
          Action is to show the grade submission screen
 void doHide_assignment_option(RunData data)
          Action is to hide the assignment option
 void doHide_preview_assignment_assignment(RunData data)
          Action is to hide the preview assignment assignment infos
 void doHide_preview_assignment_student_view(RunData data)
          Action is to hide the preview assignment student view
 void doHide_student_submission(RunData data)
          Action is to hide the student submissions
 void doHide_submission_assignment_instruction(RunData data)
          Action is to hide the preview assignment student view
 void doHide_view_assignment(RunData data)
          Action is to hide the assignment content in the view assignment page
 void doHide_view_student_view(RunData data)
          Action is to hide the student view in the view assignment page
 void doList_assignments(RunData data)
          Action is to return to the view of list assignments
 void doNew_assignment(RunData data, Context context)
          Action is to show the new assignment screen
 void doPermissions(RunData data)
          Fire up the permissions editor
 void doPost_assignment(RunData data)
          Action is to post assignment
 void doPost_submission(RunData data)
          Action is to post the submission
 void doPreview_assignment(RunData data)
          Action is to preview the selected assignment
 void doPreview_grade_submission(RunData data)
          Preview of the grading of submission
 void doPreview_submission(RunData data)
          Preview of the submission
 void doRead_add_submission_form(RunData data)
          Dispatch function inside add submission page
 void doRelease_grade_submission(RunData data)
          Action is to release the grade to submission
 void doRelease_grades(RunData data)
          Action is to release all the grades of the submission
 void doReport_submissions(RunData data)
          Action is to show the student submissions
 void doReturn_grade_submission(RunData data)
          Action is to return submission with or without grade
 void doSave_assignment(RunData data)
          Action is to post new assignment
 void doSave_grade_submission(RunData data)
          Action is to save the grade to submission
 void doSave_submission(RunData data)
          Action is to save the submission as a draft
 void doShow_assignment_option(RunData data)
          Action is to show the assignment option
 void doShow_preview_assignment_assignment(RunData data)
          Action is to show the preview assignment assignment info
 void doShow_preview_assignment_student_view(RunData data)
          Action is to show the preview assignment student view
 void doShow_student_submission(RunData data)
          Action is to show the student submissions
 void doShow_submission_assignment_instruction(RunData data)
          Action is to show the preview assignment student view
 void doShow_view_assignment(RunData data)
          Action is to show the assignment content in the view assignment page
 void doShow_view_student_view(RunData data)
          Action is to show the student view in the view assignment page
 void doSort_submission(RunData data)
          Sort submission based on the given property
 void doSort(RunData data)
          Sort based on the given property
 void doView_assignment_as_student(RunData data)
          Action is for student to view one assignment content
 void doView_assignment(RunData data)
          Action is to view the selected assignment
 void doView_grade(RunData data)
          Action is to show the graded assignment submission
 void doView_instructor(RunData data)
          Go to the instructor view
 void doView_student(RunData data)
          Go to the student view
 void doView_students_assignment(RunData data)
          Action is to show the View Students assignment screen
 void doView_submission(RunData data)
          Action is to view the content of one specific assignment submission
 void doView(RunData data)
           
static String escapeAssignmentFeedback(String value)
          Called to deal with old Chef-style assignment feedback annotation, {{like this}}.
static String escapeAssignmentFeedbackTextarea(String value)
          Escapes the given assignment feedback text, to be edited as formatted text (perhaps using the formatted text widget)
protected  void initState(SessionState state, VelocityPortlet portlet, JetspeedRunData data)
          Populate the state object, if needed - override to do something!
protected  void integrateGradebook(SessionState state, String assignmentRef, String addUpdateRemoveAssignment, String newAssignment_title, int newAssignment_maxPoints, Time newAssignment_dueTime, String submissionRef, String updateRemoveSubmission)
          integration with gradebook
protected  boolean isGradebookDefined()
           
 void readGradeForm(RunData data, SessionState state)
          readGradeForm
protected  List readResourcesPage(SessionState state, int first, int last)
          Implement this to return alist of all the resources that there are to page.
protected  void setAssignmentFormContext(SessionState state, Context context)
           
protected  void setNewAssignmentParameters(RunData data, boolean validify)
          Action is to save the input infos for assignment fields
static String showPrevFeedback(String value)
          Apply the fix to pre 1.1.05 assignments submissions feedback.
protected  int sizeResources(SessionState state)
          Implement this to return the number of records that are currently selected.
 
Methods inherited from class org.sakaiproject.cheftool.PagedResourceActionII
addListPagingMenus, addRefreshMenus, addSearchMenus, addViewPagingMenus, cleanStatePaging, doAuto, doChange_pagesize, doList_first, doList_last, doList_next, doList_prev, doRefresh, doSearch_clear, doSearch, doView_next, doView_page, doView_prev, enableObserver, pagingInfoToContext, prepPage, resetPaging, totalPageNumber
 
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
 

Constructor Detail

AssignmentAction

public AssignmentAction()
Method Detail

buildMainPanelContext

public String buildMainPanelContext(VelocityPortlet portlet,
                                    Context context,
                                    RunData data,
                                    SessionState state)
central place for dispatching the build routines based on the state name


build_student_view_submission_context

protected String build_student_view_submission_context(VelocityPortlet portlet,
                                                       Context context,
                                                       RunData data,
                                                       SessionState state)
build the student view of showing an assignment submission


build_student_view_assignment_context

protected String build_student_view_assignment_context(VelocityPortlet portlet,
                                                       Context context,
                                                       RunData data,
                                                       SessionState state)
build the student view of assignment


build_student_preview_submission_context

protected String build_student_preview_submission_context(VelocityPortlet portlet,
                                                          Context context,
                                                          RunData data,
                                                          SessionState state)
build the student preview of showing an assignment submission


build_student_view_grade_context

protected String build_student_view_grade_context(VelocityPortlet portlet,
                                                  Context context,
                                                  RunData data,
                                                  SessionState state)
build the student view of showing a graded submission


build_list_assignments_context

protected String build_list_assignments_context(VelocityPortlet portlet,
                                                Context context,
                                                RunData data,
                                                SessionState state)
build the view of assignments list


build_instructor_new_assignment_context

protected String build_instructor_new_assignment_context(VelocityPortlet portlet,
                                                         Context context,
                                                         RunData data,
                                                         SessionState state)
build the instructor view of create a new assignment


setAssignmentFormContext

protected void setAssignmentFormContext(SessionState state,
                                        Context context)

build_instructor_preview_assignment_context

protected String build_instructor_preview_assignment_context(VelocityPortlet portlet,
                                                             Context context,
                                                             RunData data,
                                                             SessionState state)
build the instructor view of create a new assignment


build_instructor_edit_assignment_context

protected String build_instructor_edit_assignment_context(VelocityPortlet portlet,
                                                          Context context,
                                                          RunData data,
                                                          SessionState state)
build the instructor view to edit an new assignment


build_instructor_delete_assignment_context

protected String build_instructor_delete_assignment_context(VelocityPortlet portlet,
                                                            Context context,
                                                            RunData data,
                                                            SessionState state)
build the instructor view to delete an assignment


build_instructor_grade_submission_context

protected String build_instructor_grade_submission_context(VelocityPortlet portlet,
                                                           Context context,
                                                           RunData data,
                                                           SessionState state)
build the instructor view to grade an submission


build_instructor_preview_grade_submission_context

protected String build_instructor_preview_grade_submission_context(VelocityPortlet portlet,
                                                                   Context context,
                                                                   RunData data,
                                                                   SessionState state)
build the instructor preview of grading submission


build_instructor_grade_assignment_context

protected String build_instructor_grade_assignment_context(VelocityPortlet portlet,
                                                           Context context,
                                                           RunData data,
                                                           SessionState state)
build the instructor view to grade an assignment


build_instructor_view_assignment_context

protected String build_instructor_view_assignment_context(VelocityPortlet portlet,
                                                          Context context,
                                                          RunData data,
                                                          SessionState state)
build the instructor view of an assignment


build_instructor_view_students_assignment_context

protected String build_instructor_view_students_assignment_context(VelocityPortlet portlet,
                                                                   Context context,
                                                                   RunData data,
                                                                   SessionState state)
build the instructor view to view the list of students for an assignment


build_instructor_report_submissions

protected String build_instructor_report_submissions(VelocityPortlet portlet,
                                                     Context context,
                                                     RunData data,
                                                     SessionState state)
build the instructor view to report the submissions


isGradebookDefined

protected boolean isGradebookDefined()

integrateGradebook

protected void integrateGradebook(SessionState state,
                                  String assignmentRef,
                                  String addUpdateRemoveAssignment,
                                  String newAssignment_title,
                                  int newAssignment_maxPoints,
                                  Time newAssignment_dueTime,
                                  String submissionRef,
                                  String updateRemoveSubmission)
integration with gradebook

Parameters:
state -
assignmentRef - Assignment reference
submissionRef - Any submission need to be update?

doView_instructor

public void doView_instructor(RunData data)
Go to the instructor view


doView_student

public void doView_student(RunData data)
Go to the student view


doView_submission

public void doView_submission(RunData data)
Action is to view the content of one specific assignment submission


doPreview_submission

public void doPreview_submission(RunData data)
Preview of the submission


doPreview_grade_submission

public void doPreview_grade_submission(RunData data)
Preview of the grading of submission


doDone_preview_submission

public void doDone_preview_submission(RunData data)
Action is to end the preview submission process


doDone_view_assignment

public void doDone_view_assignment(RunData data)
Action is to end the view assignment process


doDone_preview_new_assignment

public void doDone_preview_new_assignment(RunData data)
Action is to end the preview new assignment process


doDone_preview_edit_assignment

public void doDone_preview_edit_assignment(RunData data)
Action is to end the preview edit assignment process


doCancel_student_view_assignment

public void doCancel_student_view_assignment(RunData data)
Action is to end the user view assignment process and redirect him to the assignment list view


doCancel_show_submission

public void doCancel_show_submission(RunData data)
Action is to end the show submission process


doCancel_delete_assignment

public void doCancel_delete_assignment(RunData data)
Action is to cancel the delete assignment process


doCancel_edit_assignment

public void doCancel_edit_assignment(RunData data)
Action is to end the show submission process


doCancel_new_assignment

public void doCancel_new_assignment(RunData data)
Action is to end the show submission process


doCancel_grade_submission

public void doCancel_grade_submission(RunData data)
Action is to cancel the grade submission process


doCancel_preview_grade_submission

public void doCancel_preview_grade_submission(RunData data)
Action is to cancel the preview grade process


doList_assignments

public void doList_assignments(RunData data)
Action is to return to the view of list assignments


doCancel_view_grade

public void doCancel_view_grade(RunData data)
Action is to cancel the student view grade process


doSave_grade_submission

public void doSave_grade_submission(RunData data)
Action is to save the grade to submission


doRelease_grade_submission

public void doRelease_grade_submission(RunData data)
Action is to release the grade to submission


doReturn_grade_submission

public void doReturn_grade_submission(RunData data)
Action is to return submission with or without grade


doSave_submission

public void doSave_submission(RunData data)
Action is to save the submission as a draft


doPost_submission

public void doPost_submission(RunData data)
Action is to post the submission


doNew_assignment

public void doNew_assignment(RunData data,
                             Context context)
Action is to show the new assignment screen


setNewAssignmentParameters

protected void setNewAssignmentParameters(RunData data,
                                          boolean validify)
Action is to save the input infos for assignment fields

Parameters:
validify - Need to validify the inputs or not

doHide_submission_assignment_instruction

public void doHide_submission_assignment_instruction(RunData data)
Action is to hide the preview assignment student view


doShow_submission_assignment_instruction

public void doShow_submission_assignment_instruction(RunData data)
Action is to show the preview assignment student view


doHide_preview_assignment_student_view

public void doHide_preview_assignment_student_view(RunData data)
Action is to hide the preview assignment student view


doShow_preview_assignment_student_view

public void doShow_preview_assignment_student_view(RunData data)
Action is to show the preview assignment student view


doHide_preview_assignment_assignment

public void doHide_preview_assignment_assignment(RunData data)
Action is to hide the preview assignment assignment infos


doShow_preview_assignment_assignment

public void doShow_preview_assignment_assignment(RunData data)
Action is to show the preview assignment assignment info


doHide_assignment_option

public void doHide_assignment_option(RunData data)
Action is to hide the assignment option


doShow_assignment_option

public void doShow_assignment_option(RunData data)
Action is to show the assignment option


doHide_view_assignment

public void doHide_view_assignment(RunData data)
Action is to hide the assignment content in the view assignment page


doShow_view_assignment

public void doShow_view_assignment(RunData data)
Action is to show the assignment content in the view assignment page


doHide_view_student_view

public void doHide_view_student_view(RunData data)
Action is to hide the student view in the view assignment page


doShow_view_student_view

public void doShow_view_student_view(RunData data)
Action is to show the student view in the view assignment page


doPost_assignment

public void doPost_assignment(RunData data)
Action is to post assignment


doSave_assignment

public void doSave_assignment(RunData data)
Action is to post new assignment


doPreview_assignment

public void doPreview_assignment(RunData data)
Action is to preview the selected assignment


doView_assignment

public void doView_assignment(RunData data)
Action is to view the selected assignment


doView_assignment_as_student

public void doView_assignment_as_student(RunData data)
Action is for student to view one assignment content


doEdit_assignment

public void doEdit_assignment(RunData data)
Action is to show the edit assignment screen


doDelete_confirm_assignment

public void doDelete_confirm_assignment(RunData data)
Action is to show the delete assigment confirmation screen


doDelete_assignment

public void doDelete_assignment(RunData data)
Action is to delete the confirmed assignments


doDeep_delete_assignment

public void doDeep_delete_assignment(RunData data)
Action is to delete the assignment and also the related AssignmentSubmission


doDuplicate_assignment

public void doDuplicate_assignment(RunData data)
Action is to show the duplicate assignment screen


doGrade_submission

public void doGrade_submission(RunData data)
Action is to show the grade submission screen


doRelease_grades

public void doRelease_grades(RunData data)
Action is to release all the grades of the submission


doExpand_grade_assignment

public void doExpand_grade_assignment(RunData data)
Action is to show the assignment in grading page


doCollapse_grade_assignment

public void doCollapse_grade_assignment(RunData data)
Action is to hide the assignment in grading page


doExpand_grade_submission

public void doExpand_grade_submission(RunData data)
Action is to show the submissions in grading page


doCollapse_grade_submission

public void doCollapse_grade_submission(RunData data)
Action is to hide the submissions in grading page


doGrade_assignment

public void doGrade_assignment(RunData data)
Action is to show the grade assignment


doGrade_assignment_from

public void doGrade_assignment_from(RunData data)
Action is to show the grade assignment


doView_students_assignment

public void doView_students_assignment(RunData data)
Action is to show the View Students assignment screen


doShow_student_submission

public void doShow_student_submission(RunData data)
Action is to show the student submissions


doHide_student_submission

public void doHide_student_submission(RunData data)
Action is to hide the student submissions


doView_grade

public void doView_grade(RunData data)
Action is to show the graded assignment submission


doReport_submissions

public void doReport_submissions(RunData data)
Action is to show the student submissions


doAssignment_form

public void doAssignment_form(RunData data)

doAttachments

public void doAttachments(RunData data)
Action is to use when doAattchmentsadding requested, corresponding to chef_Assignments-new "eventSubmit_doAattchmentsadding" when "add attachments" is clicked


readGradeForm

public void readGradeForm(RunData data,
                          SessionState state)
readGradeForm


initState

protected void initState(SessionState state,
                         VelocityPortlet portlet,
                         JetspeedRunData data)
Populate the state object, if needed - override to do something!

Overrides:
initState in class PagedResourceActionII

doSort

public void doSort(RunData data)
Sort based on the given property


doSort_submission

public void doSort_submission(RunData data)
Sort submission based on the given property


doPermissions

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


readResourcesPage

protected List readResourcesPage(SessionState state,
                                 int first,
                                 int last)
Implement this to return alist of all the resources that there are to page. Sort them as appropriate.

Specified by:
readResourcesPage in class PagedResourceActionII
Parameters:
first - The first record to include (1 based).
last - The last record to include (inclusive, 1 based).

sizeResources

protected int sizeResources(SessionState state)
Description copied from class: PagedResourceActionII
Implement this to return the number of records that are currently selected.

Specified by:
sizeResources in class PagedResourceActionII

doView

public void doView(RunData data)

escapeAssignmentFeedback

public static String escapeAssignmentFeedback(String value)
Called to deal with old Chef-style assignment feedback annotation, {{like this}}.

Parameters:
value - A formatted text string that may contain {{}} style markup
Returns:
HTML ready to for display on a browser

escapeAssignmentFeedbackTextarea

public static String escapeAssignmentFeedbackTextarea(String value)
Escapes the given assignment feedback text, to be edited as formatted text (perhaps using the formatted text widget)


showPrevFeedback

public static String showPrevFeedback(String value)
Apply the fix to pre 1.1.05 assignments submissions feedback.


doRead_add_submission_form

public void doRead_add_submission_form(RunData data)
Dispatch function inside add submission page