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
public class ContentAttributeContentSearchCriterionDefinition extends ContentSearchCriterionDefinition implements FrontEnumerableSearchCriterionDefinition
ContentSearchCriterionDefinitionfor aMetadataType.CONTENTattribute.
-
-
Field Summary
Fields Modifier and Type Field Description private static org.slf4j.Logger__LOGGERprotected ContentTypeExtensionPoint_cTypeEPThe extension point for content typesprotected AmetysObjectResolver_resolverThe resolver-
Fields inherited from class org.ametys.web.frontoffice.search.metamodel.impl.ContentSearchCriterionDefinition
_contentType, _searchUICriterion
-
-
Constructor Summary
Constructors Constructor Description ContentAttributeContentSearchCriterionDefinition(String id, String pluginName, Optional<Searchable> searchable, SearchUICriterion criterion, Optional<ContentType> contentType, Optional<Validator> validator, AmetysObjectResolver resolver, ContentTypeExtensionPoint contentTypeEP)Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ExpressiongetContentTypeExpression(String parentCTypeId)Gets the content type expression for retrieving enumeration of contentsMap<Object,I18nizableText>getEntries(String language)Gets the enumeration entries-
Methods inherited from class org.ametys.web.frontoffice.search.metamodel.impl.ContentSearchCriterionDefinition
getContextPrefixLabels, getEmptyValueQuery, getQuery, getSearchUICriterion, toJSON
-
Methods inherited from class org.ametys.web.frontoffice.search.metamodel.impl.AbstractDefaultSearchCriterionDefinition
dispose, getEnumeratedValues, getSearchable, isEnumerated, isTooBigForStaticEnumerator
-
Methods 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, setWidgetParameters
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods 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 Detail
-
__LOGGER
private static final org.slf4j.Logger __LOGGER
-
_resolver
protected AmetysObjectResolver _resolver
The resolver
-
_cTypeEP
protected ContentTypeExtensionPoint _cTypeEP
The extension point for content types
-
-
Constructor Detail
-
ContentAttributeContentSearchCriterionDefinition
public ContentAttributeContentSearchCriterionDefinition(String id, String pluginName, Optional<Searchable> searchable, SearchUICriterion criterion, Optional<ContentType> contentType, Optional<Validator> validator, AmetysObjectResolver resolver, ContentTypeExtensionPoint contentTypeEP)
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 types
-
-
Method Detail
-
getEntries
public Map<Object,I18nizableText> getEntries(String language)
Description copied from interface:FrontEnumerableSearchCriterionDefinitionGets the enumeration entries- Specified by:
getEntriesin interfaceFrontEnumerableSearchCriterionDefinition- Parameters:
language- The language- Returns:
- the enumeration entries
-
getContentTypeExpression
protected Expression getContentTypeExpression(String parentCTypeId)
Gets the content type expression for retrieving enumeration of contents- Parameters:
parentCTypeId- The parent content type id- Returns:
- The
Expression
-
-