Class ContentEnumerator
java.lang.Object
org.ametys.web.frontoffice.search.metamodel.impl.ContentEnumerator
- All Implemented Interfaces:
Enumerator<ContentValue>
Enumerator for content values, based on a content criterion definition.
-
Constructor Summary
ConstructorsConstructorDescriptionContentEnumerator(ContentReferencingSearchServiceCriterionDefinition criterionDefinition, ContentTypeExtensionPoint contentTypeExtensionPoint, Map<String, Object> contextualParameters) Constructor with the referencing criterion definition -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanDetermines if a language expression should be added to the content query for retrieving enumeration of contents.Provides the enumerated values with their optional label.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.runtime.model.Enumerator
getConfiguration, getEntry
-
Constructor Details
-
ContentEnumerator
public ContentEnumerator(ContentReferencingSearchServiceCriterionDefinition criterionDefinition, ContentTypeExtensionPoint contentTypeExtensionPoint, Map<String, Object> contextualParameters) Constructor with the referencing criterion definition- Parameters:
criterionDefinition- theReferencingSearchServiceCriterionDefinitionit is based oncontentTypeExtensionPoint- the content type extension pointcontextualParameters- the contextual parameters
-
-
Method Details
-
getEntries
Description copied from interface:EnumeratorProvides the enumerated values with their optional label.- Specified by:
getEntriesin interfaceEnumerator<ContentValue>- Returns:
- the enumerated values and their label.
- Throws:
Exception- if an error occurs.
-
allowLanguageExpression
Determines if a language expression should be added to the content query for retrieving enumeration of contents.- Returns:
trueif a language expression should be added,falseotherwise
-