Package org.opencms.jsp.search.config
Class CmsSearchConfigurationSortOption
java.lang.Object
org.opencms.jsp.search.config.CmsSearchConfigurationSortOption
- All Implemented Interfaces:
I_CmsSearchConfigurationSortOption
public class CmsSearchConfigurationSortOption
extends Object
implements I_CmsSearchConfigurationSortOption
Configuration for a single sort option.
-
Constructor Summary
ConstructorsConstructorDescriptionCmsSearchConfigurationSortOption
(String label, String paramValue, String solrValue) Constructor setting all options. -
Method Summary
Modifier and TypeMethodDescriptiongetLabel()
Returns the label that can be used to display the sort option in the form.Returns the request parameter's value that has to be send to choose that sort option.Returns the sort value as send to Solr.
-
Constructor Details
-
CmsSearchConfigurationSortOption
Constructor setting all options.- Parameters:
label
- The label shown when the sort option is displayed.paramValue
- The value send in the request that identifies the option.solrValue
- The sort option as given to Solr.
-
-
Method Details
-
getLabel
Description copied from interface:I_CmsSearchConfigurationSortOption
Returns the label that can be used to display the sort option in the form.- Specified by:
getLabel
in interfaceI_CmsSearchConfigurationSortOption
- Returns:
- The label that can be used to display the sort option in the form.
- See Also:
-
getParamValue
Description copied from interface:I_CmsSearchConfigurationSortOption
Returns the request parameter's value that has to be send to choose that sort option.- Specified by:
getParamValue
in interfaceI_CmsSearchConfigurationSortOption
- Returns:
- The request parameter's value that has to be send to choose that sort option.
- See Also:
-
getSolrValue
Description copied from interface:I_CmsSearchConfigurationSortOption
Returns the sort value as send to Solr.- Specified by:
getSolrValue
in interfaceI_CmsSearchConfigurationSortOption
- Returns:
- The sort value as send to Solr.
- See Also:
-