@Controller @RequestMapping(value="VIEW") public class UWCoursesPortletController extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CATALOGNBR |
static String |
CLASS_SCHEDULE_VIEW |
static String |
CLASSNBR |
static String |
COURSE_LIST_VIEW |
static String |
COURSECODE |
static String |
COURSEID |
static String |
DEFAULT_VIEW_PREFERENCE |
static String |
FINALGRADESFIXEDPARAM_PREF |
static String |
FINALGRADESFNAME_PREF |
static String |
FINALGRADESWINDOWSTATE_PREF |
static String |
GRADES_LIST_VIEW |
protected org.slf4j.Logger |
logger |
static String |
PRINTVIEW |
static String |
STANDALONE_SCHEDULE_PREFERENCE |
static String |
SUBJECTCODE |
static String |
TERMCODE |
static String |
VIEW |
| Constructor and Description |
|---|
UWCoursesPortletController() |
| Modifier and Type | Method and Description |
|---|---|
void |
copyActionParameters(javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse)
Action request handler that simply copies all parameters from action to render
|
String |
defaultView(javax.portlet.PortletRequest request,
javax.portlet.MimeResponse mimeResponse,
org.springframework.ui.ModelMap model) |
Boolean |
getDisplayCourseBooks(javax.portlet.PortletRequest req) |
Boolean |
getDisplayCourseUpdates(javax.portlet.PortletRequest req) |
protected org.jasig.portlet.courses.model.xml.Term |
getSelectedTerm(String termCode,
org.jasig.portlet.courses.model.xml.TermList termList)
If termCode is null
TermListWrapper.getCurrentTerm() is used, if not TermListWrapper.getTerm(String) is used |
protected String |
getSelectedTermCode(javax.portlet.PortletRequest portletRequest,
String requestTermCode)
Determine the term code to use.
|
String |
jsonClassSchedule(javax.portlet.PortletRequest request,
javax.portlet.MimeResponse response,
org.springframework.ui.ModelMap model,
String termCode) |
String |
jsonCurrentClassSchedule(javax.portlet.PortletRequest request,
javax.portlet.MimeResponse response,
org.springframework.ui.ModelMap model) |
void |
setCoursesSectionDao(ICoursesSectionDao coursesSectionDao) |
void |
setUrlService(IURLService urlService) |
void |
setViewSelector(org.jasig.portlet.utils.mvc.IViewSelector viewSelector) |
String |
viewClassSchedule(javax.portlet.PortletRequest request,
javax.portlet.MimeResponse response,
org.springframework.ui.ModelMap model,
String termCode,
String view,
Boolean printView) |
String |
viewCourse(javax.portlet.PortletRequest request,
org.springframework.ui.ModelMap model,
String termCode,
String catalogNbr,
String subjectCode,
String classNbr,
String courseId) |
String |
viewCourseList(javax.portlet.PortletRequest request,
org.springframework.ui.ModelMap model,
String termCode) |
String |
viewExam(javax.portlet.PortletRequest request,
javax.portlet.MimeResponse response,
org.springframework.ui.ModelMap model,
String termCode,
String view,
Boolean printView) |
public static final String DEFAULT_VIEW_PREFERENCE
public static final String COURSE_LIST_VIEW
public static final String CLASS_SCHEDULE_VIEW
public static final String GRADES_LIST_VIEW
public static final String TERMCODE
public static final String VIEW
public static final String PRINTVIEW
public static final String COURSECODE
public static final String CATALOGNBR
public static final String SUBJECTCODE
public static final String CLASSNBR
public static final String COURSEID
public static final String STANDALONE_SCHEDULE_PREFERENCE
public static final String FINALGRADESFNAME_PREF
public static final String FINALGRADESWINDOWSTATE_PREF
public static final String FINALGRADESFIXEDPARAM_PREF
protected final org.slf4j.Logger logger
@Autowired @Qualifier(value="coursesSectionDao") public void setCoursesSectionDao(ICoursesSectionDao coursesSectionDao)
@Autowired public void setUrlService(IURLService urlService)
@Autowired public void setViewSelector(org.jasig.portlet.utils.mvc.IViewSelector viewSelector)
@RequestMapping public String defaultView(javax.portlet.PortletRequest request, javax.portlet.MimeResponse mimeResponse, org.springframework.ui.ModelMap model)
@RequestMapping(params="action=courseList") public String viewCourseList(javax.portlet.PortletRequest request, org.springframework.ui.ModelMap model, @RequestParam(value="termCode",required=false) String termCode)
@RequestMapping(params="action=showCourse") public String viewCourse(javax.portlet.PortletRequest request, org.springframework.ui.ModelMap model, @RequestParam(value="termCode") String termCode, @RequestParam(value="catalogNbr") String catalogNbr, @RequestParam(value="subjectCode") String subjectCode, @RequestParam(value="classNbr") String classNbr, @RequestParam(value="courseId") String courseId)
@RequestMapping(params="action=showExams") public String viewExam(javax.portlet.PortletRequest request, javax.portlet.MimeResponse response, org.springframework.ui.ModelMap model, @RequestParam(value="termCode") String termCode, @RequestParam(value="view") String view, @RequestParam(value="printView",required=false,defaultValue="false") Boolean printView)
@ResourceMapping(value="jsonClassSchedule") public String jsonClassSchedule(javax.portlet.PortletRequest request, javax.portlet.MimeResponse response, org.springframework.ui.ModelMap model, @RequestParam(value="termCode") String termCode)
@ResourceMapping(value="jsonCurrentClassSchedule") public String jsonCurrentClassSchedule(javax.portlet.PortletRequest request, javax.portlet.MimeResponse response, org.springframework.ui.ModelMap model)
@RequestMapping(params="action=showClassSchedule") public String viewClassSchedule(javax.portlet.PortletRequest request, javax.portlet.MimeResponse response, org.springframework.ui.ModelMap model, @RequestParam(value="termCode") String termCode, @RequestParam(value="view") String view, @RequestParam(value="printView",required=false,defaultValue="false") Boolean printView)
@ActionMapping
public void copyActionParameters(javax.portlet.ActionRequest actionRequest,
javax.portlet.ActionResponse actionResponse)
@ModelAttribute(value="displayCourseUpdates") public Boolean getDisplayCourseUpdates(javax.portlet.PortletRequest req)
@ModelAttribute(value="displayCourseBooks") public Boolean getDisplayCourseBooks(javax.portlet.PortletRequest req)
protected String getSelectedTermCode(javax.portlet.PortletRequest portletRequest, String requestTermCode)
protected org.jasig.portlet.courses.model.xml.Term getSelectedTerm(String termCode, org.jasig.portlet.courses.model.xml.TermList termList)
TermListWrapper.getCurrentTerm() is used, if not TermListWrapper.getTerm(String) is usedCopyright © 2023 Jasig. All rights reserved.