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
Modifier and TypeFieldDescriptionprotected ContentHelper
The content helperprotected ContentTypeExtensionPoint
The extension point for content typesprotected AmetysObjectResolver
The resolverFields inherited from class org.ametys.web.frontoffice.search.metamodel.impl.ContentSearchCriterionDefinition
__serviceManager, _contentType, _searchUICriterion
-
Constructor Summary
ConstructorDescriptionContentAttributeContentSearchCriterionDefinition
(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 Expression
getContentTypeExpression
(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, setServiceManager, 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 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
- 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 Details
-
getEntries
Description copied from interface:FrontEnumerableSearchCriterionDefinition
Gets the enumeration entries- Specified by:
getEntries
in 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
-