org.jasig.schedassist.web.profiles
Class PublicProfilesBrowseController

java.lang.Object
  extended by org.jasig.schedassist.web.profiles.PublicProfilesBrowseController

@Controller
public class PublicProfilesBrowseController
extends Object

Controller for browsing lists of s.

Version:
$Id: PublicProfilesBrowseController.java $
Author:
Nicholas Blair

Constructor Summary
PublicProfilesBrowseController()
           
 
Method Summary
protected  String buildPageTitleSuffix(int startIndex, int endIndex)
          Create a string appended to the document title, e.g.: "Public Profiles 1 - 10".
 PublicProfileDao getPublicProfileDao()
           
protected  void populateModel(org.springframework.ui.ModelMap model, List<PublicProfileId> profileIds, int startIndex)
          Populate the ModelMap with the appropriate information.
 String retrieveAdvisorProfiles(org.springframework.ui.ModelMap model, int startIndex)
           
 String retrieveAllProfiles(org.springframework.ui.ModelMap model, int startIndex)
          Retrieve profiles between startIndex and (startIndex + resultsPerPage).
 String retrieveInstructorProfiles(org.springframework.ui.ModelMap model, int startIndex)
           
 void setPublicProfileDao(PublicProfileDao publicProfileDao)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PublicProfilesBrowseController

public PublicProfilesBrowseController()
Method Detail

setPublicProfileDao

public void setPublicProfileDao(PublicProfileDao publicProfileDao)
Parameters:
publicProfileDao - the publicProfileDao to set

getPublicProfileDao

public PublicProfileDao getPublicProfileDao()
Returns:
the publicProfileDao

retrieveAllProfiles

@RequestMapping(value="/public/browse.html",
                method=GET)
public String retrieveAllProfiles(org.springframework.ui.ModelMap model,
                                                 @RequestParam(value="startIndex",required=false,defaultValue="0")
                                                 int startIndex)
Retrieve profiles between startIndex and (startIndex + resultsPerPage).

Parameters:
startIndex -
resultsPerPage -
Returns:
the view name to display links to each PublicProfile

retrieveAdvisorProfiles

@RequestMapping(value="/public/advisors.html",
                method=GET)
public String retrieveAdvisorProfiles(org.springframework.ui.ModelMap model,
                                                     @RequestParam(value="startIndex",required=false,defaultValue="0")
                                                     int startIndex)
Parameters:
model -
Returns:
the view name for the listing of advisors with PublicProfiles

retrieveInstructorProfiles

@RequestMapping(value="/public/instructors.html",
                method=GET)
public String retrieveInstructorProfiles(org.springframework.ui.ModelMap model,
                                                        @RequestParam(value="startIndex",required=false,defaultValue="0")
                                                        int startIndex)
Parameters:
model -
Returns:
the view name for the listing of instructors with PublicProfiles

populateModel

protected void populateModel(org.springframework.ui.ModelMap model,
                             List<PublicProfileId> profileIds,
                             int startIndex)
Populate the ModelMap with the appropriate information.

Parameters:
model -
profileIds -
startIndex -

buildPageTitleSuffix

protected String buildPageTitleSuffix(int startIndex,
                                      int endIndex)
Create a string appended to the document title, e.g.: "Public Profiles 1 - 10".

Parameters:
startIndex -
endIndex -
Returns:


Copyright © 2012 Jasig. All Rights Reserved.