public interface PostalCodeService
PostalCodes
.Modifier and Type | Method and Description |
---|---|
List<PostalCode> |
findAllPostalCodesInCountry(String countryCode)
Gets all the
PostalCode for postal country code. |
PostalCodeQueryResults |
findPostalCodes(QueryByCriteria queryByCriteria)
This method find PostalCodes based on a query criteria.
|
PostalCode |
getPostalCode(String countryCode,
String code)
Gets a
PostalCode from a postal country code and postal code value. |
@Cacheable(value="http://rice.kuali.org/location/v2_0/PostalCodeType", key="\'countryCode=\' + #p0 + \'|\' + \'code=\' + #p1") PostalCode getPostalCode(String countryCode, String code) throws RiceIllegalArgumentException
PostalCode
from a postal country code and postal code value.
This method will return null if the state does not exist.
This method will return active or inactive postal codes.
countryCode
- country code. cannot be blank.code
- postal code value. cannot be blank.PostalCode
or nullRiceIllegalArgumentException
- country code or postal code value is blank@Cacheable(value="http://rice.kuali.org/location/v2_0/PostalCodeType", key="\'countryCode=\' + #p0") List<PostalCode> findAllPostalCodesInCountry(String countryCode) throws RiceIllegalArgumentException
PostalCode
for postal country code.
This method will always return an immutable Collection even when no values exist.
This method will only return active postal codes.
countryCode
- state code. cannot be blank.RiceIllegalArgumentException
- country code is blankPostalCodeQueryResults findPostalCodes(QueryByCriteria queryByCriteria) throws RiceIllegalArgumentException
queryByCriteria
- the criteria. Cannot be null.IllegalArgumentException
- if the queryByCriteria is nullRiceIllegalArgumentException
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.