org.kuali.rice.location.impl.state
Class StateServiceImpl

java.lang.Object
  extended by org.kuali.rice.location.impl.state.StateServiceImpl
All Implemented Interfaces:
StateService

public class StateServiceImpl
extends Object
implements StateService


Constructor Summary
StateServiceImpl()
           
 
Method Summary
 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.
 StateQueryResults findStates(QueryByCriteria queryByCriteria)
          This method find States based on a query criteria.
 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)
           
 void setCriteriaLookupService(CriteriaLookupService criteriaLookupService)
          Sets the criteriaLookupService attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StateServiceImpl

public StateServiceImpl()
Method Detail

getState

public State getState(String countryCode,
                      String code)
Description copied from interface: StateService
Gets a 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.

Specified by:
getState in interface StateService
Parameters:
countryCode - country code. cannot be blank.
code - state code. cannot be blank.
Returns:
a State or null

findAllStatesInCountry

public List<State> findAllStatesInCountry(String countryCode)
Description copied from interface: StateService
Finds all the 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.

Specified by:
findAllStatesInCountry in interface StateService
Parameters:
countryCode - state code. cannot be blank.
Returns:
an immutable collection of states

findAllStatesInCountryByAltCode

public List<State> findAllStatesInCountryByAltCode(String alternateCode)
Description copied from interface: StateService
Finds all the 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.

Specified by:
findAllStatesInCountryByAltCode in interface StateService
Parameters:
alternateCode - cannot be blank.
Returns:
an immutable collection of states

findStates

public StateQueryResults findStates(QueryByCriteria queryByCriteria)
                             throws RiceIllegalArgumentException
Description copied from interface: StateService
This method find States based on a query criteria. The criteria cannot be null.

Specified by:
findStates in interface StateService
Parameters:
queryByCriteria - the criteria. Cannot be null.
Returns:
query results. will never return null.
Throws:
RiceIllegalArgumentException

getCountryService

public CountryService getCountryService()

setCountryService

public void setCountryService(CountryService countryService)

setBusinessObjectService

public void setBusinessObjectService(BusinessObjectService businessObjectService)

setCriteriaLookupService

public void setCriteriaLookupService(CriteriaLookupService criteriaLookupService)
Sets the criteriaLookupService attribute value.

Parameters:
criteriaLookupService - The criteriaLookupService to set.


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.