org.jasig.schedassist.web.owner.preferences
Class AdvancedPreferencesFormController

java.lang.Object
  extended by org.jasig.schedassist.web.owner.preferences.AdvancedPreferencesFormController

@Controller
@RequestMapping(value={"/owner/advanced.html","/delegate/advanced.html"})
@SessionAttributes(value="command")
public class AdvancedPreferencesFormController
extends Object

Controller to execute the changes listed in the "advanced sharing form".

Version:
$Id: AdvancedPreferencesFormController.java 2827 2010-11-01 14:18:42Z npblair $
Author:
Nicholas Blair, nblair@doit.wisc.edu

Constructor Summary
AdvancedPreferencesFormController()
           
 
Method Summary
protected  List<String> commaSeparatedToList(String tags)
           
protected  void initBinder(org.springframework.web.bind.WebDataBinder binder)
           
 void setAffiliationSource(IAffiliationSource affiliationSource)
           
 void setOwnerDao(OwnerDao ownerDao)
           
 void setPublicProfileDao(PublicProfileDao publicProfileDao)
           
protected  String setupForm(org.springframework.ui.ModelMap model)
           
protected  String tagsAsString(List<PublicProfileTag> tags)
           
protected  String updateAdvancedPreferences(AdvancedPreferencesFormBackingObject fbo, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.ModelMap model)
          Update preferences that reflect changes to existing values for the current authenticated IScheduleOwner.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdvancedPreferencesFormController

public AdvancedPreferencesFormController()
Method Detail

setOwnerDao

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

setPublicProfileDao

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

setAffiliationSource

public void setAffiliationSource(IAffiliationSource affiliationSource)
Parameters:
affiliationSource - the affiliationSource to set

initBinder

@InitBinder(value="command")
protected void initBinder(org.springframework.web.bind.WebDataBinder binder)
Parameters:
binder -

setupForm

@RequestMapping(method=GET)
protected String setupForm(org.springframework.ui.ModelMap model)
                    throws NotRegisteredException
Parameters:
model -
Returns:
the form view name
Throws:
NotRegisteredException

updateAdvancedPreferences

@RequestMapping(method=POST)
protected String updateAdvancedPreferences(@ModelAttribute(value="command")
                                                          AdvancedPreferencesFormBackingObject fbo,
                                                          org.springframework.validation.BindingResult bindingResult,
                                                          org.springframework.ui.ModelMap model)
                                    throws NotRegisteredException,
                                           PublicProfileAlreadyExistsException
Update preferences that reflect changes to existing values for the current authenticated IScheduleOwner.

Parameters:
fbo -
bindingResult -
model -
Returns:
the form view name if binding errors exist, otherwise the success view name
Throws:
NotRegisteredException
PublicProfileAlreadyExistsException

tagsAsString

protected String tagsAsString(List<PublicProfileTag> tags)
Parameters:
tags -
Returns:

commaSeparatedToList

protected List<String> commaSeparatedToList(String tags)
Parameters:
tags -
Returns:


Copyright © 2011 Jasig. All Rights Reserved.