Class AbstractCountryValuesFinderBase
java.lang.Object
org.kuali.rice.krad.keyvalues.KeyValuesBase
org.kuali.rice.location.framework.country.AbstractCountryValuesFinderBase
- All Implemented Interfaces:
Serializable,org.kuali.rice.krad.keyvalues.KeyValuesFinder
- Direct Known Subclasses:
CountryNotRestrictedValuesFinder,CountryValuesFinder
public abstract class AbstractCountryValuesFinderBase
extends org.kuali.rice.krad.keyvalues.KeyValuesBase
An abstract KeyValuesBase for defining a values finder which produces a list of Countries. Sub-classes should
extend this class and override
retrieveCountriesForValuesFinder() in order to produce a list of
countries to include.- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CountryReturns the default country to use for this values finder.List<org.kuali.rice.core.api.util.KeyValue> Returns a list of countries that will be added to the result ofgetKeyValues().Methods inherited from class org.kuali.rice.krad.keyvalues.KeyValuesBase
clearInternalCache, getKeyLabel, getKeyLabelMap, getKeyValues, getOptionLabels, getOptionValues
-
Constructor Details
-
AbstractCountryValuesFinderBase
public AbstractCountryValuesFinderBase()
-
-
Method Details
-
getKeyValues
-
retrieveCountriesForValuesFinder
Returns a list of countries that will be added to the result ofgetKeyValues(). Note that the result may be filtered by active status- Returns:
- a List of countries to include in the values returned by this finder
-
getDefaultCountry
Returns the default country to use for this values finder. If no default country is returned, none will be used. The default implementation of this method will defer toCountryService.getDefaultCountry().- Returns:
- the default country to use for this values finder, or null if no default country should be used
-