|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PostalCodeService
Service for interacting with PostalCodes
.
Method Summary | |
---|---|
List<PostalCode> |
findAllPostalCodesInCountry(String countryCode)
Gets all the PostalCode for postal country code. |
PostalCode |
getPostalCode(String countryCode,
String code)
Gets a PostalCode from a postal country code and postal code value. |
Method Detail |
---|
@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 null
IllegalArgumentException
- country code or postal code value is blank
RiceIllegalArgumentException
@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.
IllegalArgumentException
- country code is blank
RiceIllegalArgumentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |