Class ContentAttributeContentSearchCriterionDefinition
java.lang.Object
org.ametys.runtime.parameter.Parameter<MetadataType>
org.ametys.web.frontoffice.search.metamodel.impl.AbstractDefaultSearchCriterionDefinition
org.ametys.web.frontoffice.search.metamodel.impl.ContentSearchCriterionDefinition
org.ametys.web.frontoffice.search.metamodel.impl.ContentAttributeContentSearchCriterionDefinition
- All Implemented Interfaces:
FrontEnumerableSearchCriterionDefinition,SearchCriterionDefinition
- Direct Known Subclasses:
DegreeUniversityAttributeContentSearchCriterionDefinition
public class ContentAttributeContentSearchCriterionDefinition
extends ContentSearchCriterionDefinition
implements FrontEnumerableSearchCriterionDefinition
ContentSearchCriterionDefinition for a MetadataType.CONTENT attribute.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ContentHelperThe content helperprotected ContentTypeExtensionPointThe extension point for content typesprotected AmetysObjectResolverThe resolverFields inherited from class org.ametys.web.frontoffice.search.metamodel.impl.ContentSearchCriterionDefinition
_contentType, _searchUICriterion -
Constructor Summary
ConstructorsConstructorDescriptionContentAttributeContentSearchCriterionDefinition(String id, String pluginName, Optional<Searchable> searchable, SearchUICriterion criterion, Optional<ContentType> contentType, Optional<Validator> validator, AmetysObjectResolver resolver, ContentTypeExtensionPoint contentTypeEP, ContentHelper contentHelper) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected ExpressiongetContentTypeExpression(String parentCTypeId) Gets the content type expression for retrieving enumeration of contentsgetEntries(String language) Gets the enumeration entriesGet the order of the content id value for a content attribute search criterionMethods inherited from class org.ametys.web.frontoffice.search.metamodel.impl.ContentSearchCriterionDefinition
getContextPrefixLabels, getEmptyValueQuery, getFacetLabel, getQuery, getSearchUICriterion, toJSONMethods inherited from class org.ametys.web.frontoffice.search.metamodel.impl.AbstractDefaultSearchCriterionDefinition
dispose, getEnumeratedValues, getSearchable, isEnumerated, isTooBigForStaticEnumeratorMethods inherited from class org.ametys.runtime.parameter.Parameter
getDefaultValue, getDescription, getEnumerator, getId, getLabel, getPluginName, getType, getValidator, getWidget, getWidgetParameters, setDefaultValue, setDescription, setEnumerator, setId, setLabel, setPluginName, setType, setValidator, setWidget, setWidgetParametersMethods 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.SearchCriterionDefinition
getContextPrefixLabels, getEmptyValueQuery, getEnumeratedValues, getId, getLabel, getQuery, getSearchable, getType, getValidator, getWidget, getWidgetParameters, isEnumerated, isTooBigForStaticEnumerator, toJSON
-
Field Details
-
_resolver
The resolver -
_cTypeEP
The extension point for content types -
_contentHelper
The content helper
-
-
Constructor Details
-
ContentAttributeContentSearchCriterionDefinition
public ContentAttributeContentSearchCriterionDefinition(String id, String pluginName, Optional<Searchable> searchable, SearchUICriterion criterion, Optional<ContentType> contentType, Optional<Validator> validator, AmetysObjectResolver resolver, ContentTypeExtensionPoint contentTypeEP, ContentHelper contentHelper) Default constructor- Parameters:
id- The idpluginName- The plugin namesearchable- theSearchablecriterion- The linkedSearchUICriterioncontentType- The content type on which this criterion definition applies. Can be empty if it applies to all types of contents.validator- the validatorresolver- The resolvercontentTypeEP- The extension point for content typescontentHelper- the content helper
-
-
Method Details
-
getEntries
Description copied from interface:FrontEnumerableSearchCriterionDefinitionGets the enumeration entries- Specified by:
getEntriesin interfaceFrontEnumerableSearchCriterionDefinition- Parameters:
language- The language- Returns:
- the enumeration entries
-
getContentTypeExpression
Gets the content type expression for retrieving enumeration of contents- Parameters:
parentCTypeId- The parent content type id- Returns:
- The
Expression
-
getOrder
Get the order of the content id value for a content attribute search criterion- Parameters:
contentId- the content id- Returns:
- the order or null if there is no order
-