org.jasig.portlet.courses.mvc.portlet
Class CoursesPortletController

java.lang.Object
  extended by org.jasig.portlet.courses.mvc.portlet.CoursesPortletController

@Controller
@RequestMapping(value="VIEW")
public class CoursesPortletController
extends Object


Field Summary
static String COURSE_LIST_VIEW
           
static String COURSECODE
           
static String DEFAULT_VIEW_PREFERENCE
           
static String GRADES_LIST_VIEW
           
static String TERMCODE
           
 
Constructor Summary
CoursesPortletController()
           
 
Method Summary
 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, org.springframework.ui.ModelMap model)
           
 String getGradesFragment(javax.portlet.ResourceRequest resourceRequest, org.springframework.ui.ModelMap model, String termCode)
           
protected  Term getSelectedTerm(String termCode, 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.
 void setCoursesDao(ICoursesDao coursesDao)
           
 void setUrlService(IURLService urlService)
           
 void setViewSelector(IViewSelector viewSelector)
           
 String viewCourse(javax.portlet.PortletRequest request, org.springframework.ui.ModelMap model, String termCode, String courseCode)
           
 String viewCourseList(javax.portlet.PortletRequest request, org.springframework.ui.ModelMap model, String termCode)
           
 String viewGrades(javax.portlet.PortletRequest request, org.springframework.ui.ModelMap model, String termCode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_VIEW_PREFERENCE

public static final String DEFAULT_VIEW_PREFERENCE
See Also:
Constant Field Values

COURSE_LIST_VIEW

public static final String COURSE_LIST_VIEW
See Also:
Constant Field Values

GRADES_LIST_VIEW

public static final String GRADES_LIST_VIEW
See Also:
Constant Field Values

TERMCODE

public static final String TERMCODE
See Also:
Constant Field Values

COURSECODE

public static final String COURSECODE
See Also:
Constant Field Values
Constructor Detail

CoursesPortletController

public CoursesPortletController()
Method Detail

setCoursesDao

@Autowired
public void setCoursesDao(ICoursesDao coursesDao)

setUrlService

@Autowired
public void setUrlService(IURLService urlService)

setViewSelector

@Autowired
public void setViewSelector(IViewSelector viewSelector)

defaultView

@RequestMapping
public String defaultView(javax.portlet.PortletRequest request,
                                         org.springframework.ui.ModelMap model)

viewCourseList

@RequestMapping(params="action=courseList")
public String viewCourseList(javax.portlet.PortletRequest request,
                                            org.springframework.ui.ModelMap model,
                                            @RequestParam(value="termCode",required=false)
                                            String termCode)

viewGrades

@RequestMapping(params="action=grades")
public String viewGrades(javax.portlet.PortletRequest request,
                                        org.springframework.ui.ModelMap model,
                                        @RequestParam(value="termCode",required=false)
                                        String termCode)

viewCourse

@RequestMapping(params="action=showCourse")
public String viewCourse(javax.portlet.PortletRequest request,
                                        org.springframework.ui.ModelMap model,
                                        @RequestParam(value="termCode")
                                        String termCode,
                                        @RequestParam(value="courseCode")
                                        String courseCode)

getGradesFragment

@ResourceMapping(value="gradesUpdate")
public String getGradesFragment(javax.portlet.ResourceRequest resourceRequest,
                                                org.springframework.ui.ModelMap model,
                                                @RequestParam(value="termCode")
                                                String termCode)

copyActionParameters

@ActionMapping
public void copyActionParameters(javax.portlet.ActionRequest actionRequest,
                                               javax.portlet.ActionResponse actionResponse)
Action request handler that simply copies all parameters from action to render


getSelectedTermCode

protected String getSelectedTermCode(javax.portlet.PortletRequest portletRequest,
                                     String requestTermCode)
Determine the term code to use. If a term code is specified on the request it is returned and stored in the portlet session. If no term code is specified on the request the session is checked for a stored term code.


getSelectedTerm

protected Term getSelectedTerm(String termCode,
                               TermList termList)
If termCode is null TermListWrapper.getCurrentTerm() is used, if not TermListWrapper.getTerm(String) is used



Copyright © 2012 Jasig. All Rights Reserved.