public interface CountryService
CountryService interface.
| Modifier and Type | Method and Description |
|---|---|
List<Country> |
findAllCountries()
Returns all Countries
|
List<Country> |
findAllCountriesNotRestricted()
Returns all Countries that are not restricted.
|
CountryQueryResults |
findCountries(QueryByCriteria queryByCriteria)
This method find Countries based on a query criteria.
|
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
|
Country |
getDefaultCountry()
Returns the system default country.
|
@Cacheable(value="http://rice.kuali.org/location/v2_0/CountryType",
key="\'code=\' + #p0")
Country getCountry(String code)
throws RiceIllegalArgumentException
code - the given country codeRiceIllegalArgumentException - if the code is blank or null@Cacheable(value="http://rice.kuali.org/location/v2_0/CountryType",
key="\'alternateCode=\' + #p0")
Country getCountryByAlternateCode(String alternateCode)
throws RiceIllegalStateException,
RiceIllegalArgumentException
alternateCode - the given alternate country codeRiceIllegalStateException - if multiple Countries exist with the same passed in alternateCodeRiceIllegalArgumentException - if alternateCode is null or is a whitespace only string.@Cacheable(value="http://rice.kuali.org/location/v2_0/CountryType",
key="\'allRestricted\'")
List<Country> findAllCountriesNotRestricted()
@Cacheable(value="http://rice.kuali.org/location/v2_0/CountryType",
key="\'all\'")
List<Country> findAllCountries()
@Cacheable(value="http://rice.kuali.org/location/v2_0/CountryType",
key="\'default\'")
Country getDefaultCountry()
CountryQueryResults findCountries(QueryByCriteria queryByCriteria) throws RiceIllegalArgumentException
queryByCriteria - the criteria. Cannot be null.IllegalArgumentException - if the queryByCriteria is nullRiceIllegalArgumentExceptionCopyright © 2005-2015 The Kuali Foundation. All Rights Reserved.