Class FormEntryFacetDefinition
java.lang.Object
org.ametys.plugins.forms.search.facet.FormEntryFacetDefinition
- All Implemented Interfaces:
Labelable,SearchServiceFacetDefinition
Facet definition for a form entry
-
Constructor Summary
ConstructorsConstructorDescriptionFormEntryFacetDefinition(AbstractFormEntrySearchCriterionDefinition criterionDefinition) The constructor of the facet definition for a form question -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the description.Retrieves the facet definitiongetFacetLabel(String value, Map<String, Object> contextualParameters) Gets the label of a facet valuegetLabel()Retrieves the label.getName()Get the name.Gets the (Returnable) the facet belongs to.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.web.frontoffice.search.metamodel.SearchServiceFacetDefinition
getContextPrefixLabel
-
Constructor Details
-
FormEntryFacetDefinition
The constructor of the facet definition for a form question- Parameters:
criterionDefinition- the criterion definition associated to the form entry
-
-
Method Details
-
getName
Description copied from interface:LabelableGet the name. -
getLabel
Description copied from interface:LabelableRetrieves the label. -
getDescription
Description copied from interface:LabelableRetrieves the description.- Specified by:
getDescriptionin interfaceLabelable- Returns:
- the description.
-
getFacetDefinition
Description copied from interface:SearchServiceFacetDefinitionRetrieves the facet definition- Specified by:
getFacetDefinitionin interfaceSearchServiceFacetDefinition- Returns:
- the facet definition
-
getFacetLabel
public Optional<I18nizableText> getFacetLabel(String value, Map<String, Object> contextualParameters) Description copied from interface:SearchServiceFacetDefinitionGets the label of a facet value- Specified by:
getFacetLabelin interfaceSearchServiceFacetDefinition- Parameters:
value- the facet valuecontextualParameters- the contextual parameters- Returns:
- the label of a facet value
-
getReturnable
Description copied from interface:SearchServiceFacetDefinitionGets the (Returnable) the facet belongs to.- Specified by:
getReturnablein interfaceSearchServiceFacetDefinition- Returns:
- the (
Returnable) the facet belongs to.
-