public class StateServiceImpl extends Object implements StateService
Constructor and Description |
---|
StateServiceImpl() |
Modifier and Type | Method and Description |
---|---|
List<State> |
findAllStatesInCountry(String countryCode)
Finds all the
States for postal country code. |
List<State> |
findAllStatesInCountryByAltCode(String alternateCode)
Finds all the
States for alternate postal country code. |
CountryService |
getCountryService() |
State |
getState(String countryCode,
String code)
Gets a
State from a postal country code and postal state code. |
void |
setBusinessObjectService(BusinessObjectService businessObjectService) |
void |
setCountryService(CountryService countryService) |
public StateServiceImpl()
public State getState(String countryCode, String code)
StateService
State
from a postal country code and postal state code.
This method will return null if the state does not exist.
This method will return active or inactive states.
getState
in interface StateService
countryCode
- country code. cannot be blank.code
- state code. cannot be blank.State
or nullpublic List<State> findAllStatesInCountry(String countryCode)
StateService
States
for postal country code.
This method will always return an immutable Collection even when no values exist.
This method will only return active states.
findAllStatesInCountry
in interface StateService
countryCode
- state code. cannot be blank.public List<State> findAllStatesInCountryByAltCode(String alternateCode)
StateService
States
for alternate postal country code.
This method will always return an immutable Collection even when no values exist.
This method will only return active states.
findAllStatesInCountryByAltCode
in interface StateService
alternateCode
- cannot be blank.public CountryService getCountryService()
public void setCountryService(CountryService countryService)
public void setBusinessObjectService(BusinessObjectService businessObjectService)
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.