public class PostalCodeServiceImpl extends Object implements PostalCodeService
Constructor and Description |
---|
PostalCodeServiceImpl() |
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.
|
DataObjectService |
getDataObjectService() |
PostalCode |
getPostalCode(String countryCode,
String code)
Gets a
PostalCode from a postal country code and postal code value. |
void |
setDataObjectService(DataObjectService dataObjectService) |
public PostalCodeServiceImpl()
public PostalCode getPostalCode(String countryCode, String code)
PostalCodeService
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.
getPostalCode
in interface PostalCodeService
countryCode
- country code. cannot be blank.code
- postal code value. cannot be blank.PostalCode
or nullpublic List<PostalCode> findAllPostalCodesInCountry(String countryCode)
PostalCodeService
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.
findAllPostalCodesInCountry
in interface PostalCodeService
countryCode
- state code. cannot be blank.public PostalCodeQueryResults findPostalCodes(QueryByCriteria queryByCriteria) throws RiceIllegalArgumentException
PostalCodeService
findPostalCodes
in interface PostalCodeService
queryByCriteria
- the criteria. Cannot be null.RiceIllegalArgumentException
public DataObjectService getDataObjectService()
public void setDataObjectService(DataObjectService dataObjectService)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.