Class SearchServiceCriterionDefinitionHelper
java.lang.Object
org.ametys.web.frontoffice.search.metamodel.SearchServiceCriterionDefinitionHelper
- All Implemented Interfaces:
Component
Helper for
SearchServiceCriterionDefinition-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateReferencingSearchServiceCriterionDefinition(String criterionDefinitionName, ElementDefinition reference, String referencePath, Searchable searchable, String pluginName) Retrieves aSearchServiceCriterionDefinitionreferencing the given definitioncreateReferencingSearchServiceCriterionDefinition(String criterionDefinitionName, ElementDefinition reference, String referencePath, Searchable searchable, ContentType contentType, String pluginName) Retrieves aSearchServiceCriterionDefinitionreferencing the given definitiongetDefaultSearchServiceCriterionDefinitionJSON(SearchServiceCriterionDefinition<T> criterionDefinition, boolean isTooBigForStaticEnumerator) Retrieves the default values to put in a Criterion definition JSON
-
Field Details
-
ROLE
The component role.
-
-
Constructor Details
-
SearchServiceCriterionDefinitionHelper
-
-
Method Details
-
createReferencingSearchServiceCriterionDefinition
public SearchServiceCriterionDefinition createReferencingSearchServiceCriterionDefinition(String criterionDefinitionName, ElementDefinition reference, String referencePath, Searchable searchable, String pluginName) Retrieves aSearchServiceCriterionDefinitionreferencing the given definition- Parameters:
criterionDefinitionName- the name of the criterion definition to createreference- the definition of the element to referencereferencePath- the path of the reference from the model containing the referencesearchable- the (Searchable) the criterion belongs topluginName- the name of the plugin declaring the criterion definition- Returns:
- the
SearchServiceCriterionDefinition
-
createReferencingSearchServiceCriterionDefinition
public SearchServiceCriterionDefinition createReferencingSearchServiceCriterionDefinition(String criterionDefinitionName, ElementDefinition reference, String referencePath, Searchable searchable, ContentType contentType, String pluginName) Retrieves aSearchServiceCriterionDefinitionreferencing the given definition- Parameters:
criterionDefinitionName- the name of the criterion definition to createreference- the definition of the element to referencereferencePath- the path of the reference from the model containing the referencesearchable- the (Searchable) the criterion belongs tocontentType- the content type defining the referencepluginName- the name of the plugin declaring the criterion definition- Returns:
- the
SearchServiceCriterionDefinition
-
getDefaultSearchServiceCriterionDefinitionJSON
public <T> Map<String,Object> getDefaultSearchServiceCriterionDefinitionJSON(SearchServiceCriterionDefinition<T> criterionDefinition, boolean isTooBigForStaticEnumerator) Retrieves the default values to put in a Criterion definition JSON- Type Parameters:
T- Type of the criterion definition- Parameters:
criterionDefinition- the criterion definitionisTooBigForStaticEnumerator-trueif the criterion definition can contain too much data- Returns:
- the default values to put in a Criterion definition JSON
-