org.jasig.schedassist.web.profiles
Class TaggedPublicProfileController

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

@Controller
public class TaggedPublicProfileController
extends Object

Controller that is backed by PublicProfileDao.getPublicProfileIdsWithTag(String). The tag argument is a PathVariable.

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

Constructor Summary
TaggedPublicProfileController()
           
 
Method Summary
protected  String buildPageTitleSuffix(String tag, int startIndex, int endIndex)
          Create a string appended to the document title, e.g.: "Public Profiles tagged with 'tag' - 1 - 10".
 String displayProfileIdsByTag(org.springframework.ui.ModelMap model, String tag, 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

TaggedPublicProfileController

public TaggedPublicProfileController()
Method Detail

setPublicProfileDao

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

displayProfileIdsByTag

@RequestMapping(value="/public/tags/{tag}",
                method=GET)
public String displayProfileIdsByTag(org.springframework.ui.ModelMap model,
                                                    @PathVariable(value="tag")
                                                    String tag,
                                                    @RequestParam(value="startIndex",required=false,defaultValue="0")
                                                    int startIndex)

buildPageTitleSuffix

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

Parameters:
startIndex -
endIndex -
Returns:


Copyright © 2011 Jasig. All Rights Reserved.