org.kuali.rice.kns.service.impl
Class CountyServiceImpl

java.lang.Object
  extended by org.kuali.rice.kns.service.impl.CountyServiceImpl
All Implemented Interfaces:
CountyService

public class CountyServiceImpl
extends Object
implements CountyService

This class...


Field Summary
private  CountryService countryService
           
private  KualiModuleService kualiModuleService
           
private static org.apache.log4j.Logger LOG
           
 
Constructor Summary
CountyServiceImpl()
           
 
Method Summary
 County getByPrimaryId(String postalStateCode, String countyCode)
          get a county object based on the given county code, state code and default country code.
 County getByPrimaryId(String postalCountryCode, String postalStateCode, String countyCode)
          get a county object based on the given county code, state code and country code.
 County getByPrimaryIdIfNecessary(String postalStateCode, String countyCode, County existingCounty)
          get a county object based on the given county code, state code and default country code.
 County getByPrimaryIdIfNecessary(String postalCountryCode, String postalStateCode, String countyCode, County existingCounty)
          get a county object based on the given county code, state code and default country code.
 void setCountryService(CountryService countryService)
          Sets the countryService attribute value.
 void setKualiModuleService(KualiModuleService kualiModuleService)
          Sets the kualiModuleService attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static org.apache.log4j.Logger LOG

countryService

private CountryService countryService

kualiModuleService

private KualiModuleService kualiModuleService
Constructor Detail

CountyServiceImpl

public CountyServiceImpl()
Method Detail

getByPrimaryId

public County getByPrimaryId(String postalStateCode,
                             String countyCode)
Description copied from interface: CountyService
get a county object based on the given county code, state code and default country code. The default country code is set up in the system.

Specified by:
getByPrimaryId in interface CountyService
Parameters:
postalStateCode - the given state code
countyCode - the given state code
Returns:
a county object based on the given county code, state code and default country code
See Also:
org.kuali.kfs.sys.service.CountyService#getByPrimaryId(java.lang.String, java.lang.String)

getByPrimaryId

public County getByPrimaryId(String postalCountryCode,
                             String postalStateCode,
                             String countyCode)
Description copied from interface: CountyService
get a county object based on the given county code, state code and country code.

Specified by:
getByPrimaryId in interface CountyService
Parameters:
postalCountryCode - the given country code
postalStateCode - the given state code
countyCode - the given state code
Returns:
a county object based on the given county code, state code and country code
See Also:
org.kuali.kfs.sys.service.CountyService#getByPrimaryId(java.lang.String, java.lang.String, java.lang.String)

getByPrimaryIdIfNecessary

public County getByPrimaryIdIfNecessary(String postalStateCode,
                                        String countyCode,
                                        County existingCounty)
Description copied from interface: CountyService
get a county object based on the given county code, state code and default country code. The default country code is set up in the system. If the given postal state code and county code are same as those of the given existing county, return the existing county; otherwise, retrieve a county object.

Specified by:
getByPrimaryIdIfNecessary in interface CountyService
Parameters:
postalStateCode - the given state code
countyCode - the given state code
existingCounty - the given existing county
Returns:
a county object based on the given county code, state code and default country code if necessary

getByPrimaryIdIfNecessary

public County getByPrimaryIdIfNecessary(String postalCountryCode,
                                        String postalStateCode,
                                        String countyCode,
                                        County existingCounty)
Description copied from interface: CountyService
get a county object based on the given county code, state code and default country code. The default country code is set up in the system. If the given postal country code, state code and county code are same as those of the given existing county, return the existing county; otherwise, retrieve a county object.

Specified by:
getByPrimaryIdIfNecessary in interface CountyService
Parameters:
postalCountryCode - the given country code
postalStateCode - the given state code
countyCode - the given state code
existingCounty - the given existing county
Returns:
a county object based on the given county code, state code and country code if necessary

setKualiModuleService

public void setKualiModuleService(KualiModuleService kualiModuleService)
Sets the kualiModuleService attribute value.

Parameters:
kualiModuleService - The kualiModuleService to set.

setCountryService

public void setCountryService(CountryService countryService)
Sets the countryService attribute value.

Parameters:
countryService - The countryService to set.


Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.