org.jasig.schedassist.web.visitor
Class OwnerSelectionController

java.lang.Object
  extended by org.jasig.schedassist.web.visitor.OwnerSelectionController

@Controller
public class OwnerSelectionController
extends Object

Controller implementation tied closely to the RelationshipDao. When requested, it calls RelationshipDao.forVisitor(IScheduleVisitor) for the authenticated visitor. If more than 1 result is returned, a view containing links for each IScheduleOwner is displayed. If only 1 result is returned, the visitor is sent a redirect to the display of that owners visible schedule.

Version:
$Id: OwnerSelectionController.java 2046 2010-04-30 15:57:09Z npblair $
Author:
Nicholas Blair, nblair@doit.wisc.edu

Constructor Summary
OwnerSelectionController()
           
 
Method Summary
protected  String getRelationships(org.springframework.ui.ModelMap model)
          Locate relationships for the authenticated visitor and add them to the model.
 void setRelationshipDao(RelationshipDao relationshipDao)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwnerSelectionController

public OwnerSelectionController()
Method Detail

setRelationshipDao

public void setRelationshipDao(@Qualifier(value="composite")
                               RelationshipDao relationshipDao)
Parameters:
relationshipDao - the relationshipDao to set

getRelationships

@RequestMapping(value="/visitor.html",
                method=GET)
protected String getRelationships(org.springframework.ui.ModelMap model)
                           throws NotAVisitorException
Locate relationships for the authenticated visitor and add them to the model.

Returns:
the view name for the owner select form
Throws:
NotAVisitorException


Copyright © 2011 Jasig. All Rights Reserved.