|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CountryService
CountryService interface.
Method Summary | |
---|---|
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. |
Method Detail |
---|
@Cacheable(value="http://rice.kuali.org/location/v2_0/CountryType", key="\'code=\' + #p0") Country getCountry(String code) throws RiceIllegalArgumentException
code
- the given country code
RiceIllegalArgumentException
- 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 code
RiceIllegalStateException
- if multiple Countries exist with the same passed in alternateCode
RiceIllegalArgumentException
- 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 null
RiceIllegalArgumentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |