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 aMetadataType.CONTENT
attribute.
-
-
Field Summary
Fields Modifier and Type Field Description protected ContentHelper
_contentHelper
The content helperprotected 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, Optional<Validator> validator, AmetysObjectResolver resolver, ContentTypeExtensionPoint contentTypeEP, ContentHelper contentHelper)
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 entriesLong
getOrder(String contentId)
Get the order of the content id value for a content attribute search criterion-
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
-
_resolver
protected AmetysObjectResolver _resolver
The resolver
-
_cTypeEP
protected ContentTypeExtensionPoint _cTypeEP
The extension point for content types
-
_contentHelper
protected ContentHelper _contentHelper
The content helper
-
-
Constructor Detail
-
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
- 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.validator
- the validatorresolver
- The resolvercontentTypeEP
- The extension point for content typescontentHelper
- the content helper
-
-
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
-
-