org.kuali.rice.shareddata.impl.country
Class CountryServiceImpl

java.lang.Object
  extended by org.kuali.rice.shareddata.impl.country.CountryServiceImpl
All Implemented Interfaces:
CountryService

public final class CountryServiceImpl
extends Object
implements CountryService


Constructor Summary
CountryServiceImpl()
           
 
Method Summary
 List<Country> findAllCountries()
          Returns all Countries
 List<Country> findAllCountriesNotRestricted()
          Returns all Countries that are not restricted.
 Country getCountry(String code)
          Lookup a country object based on the given country code.
 Country getCountryByAlternateCode(String alternateCode)
          Get a country object based on an alternate country code
 void setBusinessObjectService(BusinessObjectService businessObjectService)
          Sets the businessObjectServiceMockFor attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CountryServiceImpl

public CountryServiceImpl()
Method Detail

getCountry

public Country getCountry(String code)
Description copied from interface: CountryService
Lookup a country object based on the given country code.

Specified by:
getCountry in interface CountryService
Parameters:
code - the given country code
Returns:
a country object with the given country code. A null reference is returned if an invalid or non-existant code is supplied.

getCountryByAlternateCode

public Country getCountryByAlternateCode(String alternateCode)
Description copied from interface: CountryService
Get a country object based on an alternate country code

Specified by:
getCountryByAlternateCode in interface CountryService
Parameters:
alternateCode - the given alternate country code
Returns:
A country object with the given alternate country code if a country with that alternate country code exists. Otherwise, null is returned.

findAllCountriesNotRestricted

public List<Country> findAllCountriesNotRestricted()
Description copied from interface: CountryService
Returns all Countries that are not restricted.

Specified by:
findAllCountriesNotRestricted in interface CountryService
Returns:
all countries that are not restricted

findAllCountries

public List<Country> findAllCountries()
Description copied from interface: CountryService
Returns all Countries

Specified by:
findAllCountries in interface CountryService
Returns:
all countries

setBusinessObjectService

public void setBusinessObjectService(BusinessObjectService businessObjectService)
Sets the businessObjectServiceMockFor attribute value.

Parameters:
businessObjectService - The businessObjectServiceMockFor to set.


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