org.jasig.schedassist.web.admin
Class VisibleScheduleDebugFormBackingObjectValidator

java.lang.Object
  extended by org.jasig.schedassist.web.admin.VisibleScheduleDebugFormBackingObjectValidator
All Implemented Interfaces:
org.springframework.validation.Validator

@Component
public class VisibleScheduleDebugFormBackingObjectValidator
extends Object
implements org.springframework.validation.Validator

Validator for VisibleScheduleDebugFormBackingObjects.

Version:
$Id: VisibleScheduleDebugFormBackingObjectValidator.java 2978 2011-01-25 19:20:51Z npblair $
Author:
Nicholas Blair, nblair@doit.wisc.edu

Constructor Summary
VisibleScheduleDebugFormBackingObjectValidator()
           
 
Method Summary
protected  IScheduleOwner locateOwner(AccountLookupFormBackingObject lookupObject)
           
protected  IScheduleVisitor locateVisitor(AccountLookupFormBackingObject lookupObject)
           
 void setCalendarAccountDao(ICalendarAccountDao calendarAccountDao)
           
 void setDelegateCalendarAccountDao(IDelegateCalendarAccountDao delegateCalendarAccountDao)
           
 void setOwnerDao(OwnerDao ownerDao)
           
 void setVisitorDao(VisitorDao visitorDao)
           
 boolean supports(Class<?> clazz)
           
 void validate(Object target, org.springframework.validation.Errors errors)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisibleScheduleDebugFormBackingObjectValidator

public VisibleScheduleDebugFormBackingObjectValidator()
Method Detail

setCalendarAccountDao

public void setCalendarAccountDao(@Qualifier(value="people")
                                  ICalendarAccountDao calendarAccountDao)
Parameters:
calendarAccountDao - the calendarAccountDao to set

setDelegateCalendarAccountDao

public void setDelegateCalendarAccountDao(@Qualifier(value="delegates")
                                          IDelegateCalendarAccountDao delegateCalendarAccountDao)
Parameters:
delegateCalendarAccountDao - the delegateCalendarAccountDao to set

setOwnerDao

public void setOwnerDao(OwnerDao ownerDao)
Parameters:
ownerDao - the ownerDao to set

setVisitorDao

public void setVisitorDao(VisitorDao visitorDao)
Parameters:
visitorDao - the visitorDao to set

supports

public boolean supports(Class<?> clazz)
Specified by:
supports in interface org.springframework.validation.Validator

validate

public void validate(Object target,
                     org.springframework.validation.Errors errors)
Specified by:
validate in interface org.springframework.validation.Validator

locateVisitor

protected IScheduleVisitor locateVisitor(AccountLookupFormBackingObject lookupObject)
Parameters:
lookupObject -
Returns:
the corresponding IScheduleVisitor, or null if not found

locateOwner

protected IScheduleOwner locateOwner(AccountLookupFormBackingObject lookupObject)
Parameters:
lookupObject -
Returns:
the corresponding IScheduleOwner, or null if not found


Copyright © 2011 Jasig. All Rights Reserved.