org.jasig.schedassist.web.visitor
Class OwnerSelectionController
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OwnerSelectionController
public OwnerSelectionController()
setRelationshipDao
public void setRelationshipDao(@Qualifier(value="composite")
RelationshipDao relationshipDao)
- Parameters:
relationshipDao - the relationshipDao to set
getRelationshipDao
public RelationshipDao getRelationshipDao()
- Returns:
- the relationshipDao
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 © 2012 Jasig. All Rights Reserved.