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
ContentSearchCriterionDefinition
for aMetadataType.CONTENT
attribute.
-
-
Field Summary
Fields Modifier and Type Field Description private static org.slf4j.Logger
__LOGGER
protected ContentTypeExtensionPoint
_cTypeEP
The extension point for content typesprotected AmetysObjectResolver
_resolver
The 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, AmetysObjectResolver resolver, ContentTypeExtensionPoint contentTypeEP)
Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Expression
getContentTypeExpression(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, getQuery, getSearchUICriterion, toJSON
-
Methods inherited from class org.ametys.web.frontoffice.search.metamodel.impl.AbstractDefaultSearchCriterionDefinition
dispose, getEnumeratedValues, getSearchable, isEnumerated
-
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, 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, AmetysObjectResolver resolver, ContentTypeExtensionPoint contentTypeEP)
Default constructor- Parameters:
id
- The idpluginName
- The plugin namesearchable
- theSearchable
criterion
- The linkedSearchUICriterion
contentType
- The content type on which this criterion definition applies. Can be empty if it applies to all types of contents.resolver
- The resolvercontentTypeEP
- The extension point for content types
-
-
Method Detail
-
getEntries
public Map<Object,I18nizableText> getEntries(String language)
Description copied from interface:FrontEnumerableSearchCriterionDefinition
Gets the enumeration entries- Specified by:
getEntries
in 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
-
-