org.springframework.ldap.samples.person.options
Class CompanyOption

java.lang.Object
  extended by net.sf.chainedoptions.AbstractChainedOption
      extended by org.springframework.ldap.samples.person.options.CompanyOption
All Implemented Interfaces:
net.sf.chainedoptions.ChainedOption, InitializingBean

public class CompanyOption
extends net.sf.chainedoptions.AbstractChainedOption

Responsible for retrieving available companies for a given country, sorting them, and adjusting the command object if necessary. Collaborates with ChainedOptionStrategy, BeanConverter, CompanyDao.

Author:
Ulrik Sandberg

Constructor Summary
CompanyOption()
           
 
Method Summary
protected  void initChainedOption()
           
 List retrieveOptions(Object command, Object context)
           
 void setCompanyDao(CompanyDao companyDao)
           
 void setCountryProperty(String countryProperty)
           
 
Methods inherited from class net.sf.chainedoptions.AbstractChainedOption
afterPropertiesSet, getCommandProperty, getConverter, getOptionsKey, getProperty, getStrategy, matches, setCommandProperty, setConverter, setDefaultStrategy, setOptionsKey, setProperty, updateValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompanyOption

public CompanyOption()
Method Detail

retrieveOptions

public List retrieveOptions(Object command,
                            Object context)
Specified by:
retrieveOptions in interface net.sf.chainedoptions.ChainedOption
Specified by:
retrieveOptions in class net.sf.chainedoptions.AbstractChainedOption

initChainedOption

protected void initChainedOption()
Overrides:
initChainedOption in class net.sf.chainedoptions.AbstractChainedOption

setCompanyDao

public void setCompanyDao(CompanyDao companyDao)

setCountryProperty

public void setCountryProperty(String countryProperty)


Copyright © 2006-2011 Spring Framework. All Rights Reserved.