/** * primarily to sort attendance for every action. * * @see * org.kuali.rice.kns.web.struts.action.KualiAction#execute(org.apache.struts.action.ActionMapping, * org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, * javax.servlet.http.HttpServletResponse) */ @Override public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { ActionForward forward = super.execute(mapping, form, request, response); ((MeetingFormBase) form).getMeetingHelper().sortAttendances(); // if view protocol is using popup, then need following code String command = request.getParameter("command"); if (StringUtils.isNotBlank(command) && "viewProtocolSubmission".equals(command)) { forward = viewProtocolSubmission(mapping, form, request, response); } ((MeetingFormBase) form) .getMeetingHelper() .setHideReviewerName( getReviewerCommentsService() .setHideReviewerName( ((MeetingFormBase) form) .getMeetingHelper() .getCommitteeSchedule() .getCommitteeScheduleMinutes())); // use the entry type comparator to sort the minutes Collections.sort( ((MeetingFormBase) form) .getMeetingHelper() .getCommitteeSchedule() .getCommitteeScheduleMinutes(), CommitteeScheduleMinuteBase.entryTypeComparator); return forward; }