Package org.ametys.cms.search.content
Class ContentValuesExtractorFactory.SimpleContentValuesExtractor
java.lang.Object
org.ametys.cms.search.content.ContentValuesExtractorFactory.AbstractContentValuesExtractor
org.ametys.cms.search.content.ContentValuesExtractorFactory.SimpleContentValuesExtractor
- All Implemented Interfaces:
ContentValuesExtractorFactory.ContentValuesExtractor
- Enclosing class:
- ContentValuesExtractorFactory
public class ContentValuesExtractorFactory.SimpleContentValuesExtractor
extends ContentValuesExtractorFactory.AbstractContentValuesExtractor
A simple ContentValuesExtractor on a list of content types.
-
Constructor Summary
ConstructorDescriptionSimpleContentValuesExtractor
(ViewItemContainer resultItems) Build a simpleContentValuesExtractorFactory.ContentValuesExtractor
from the given result items -
Method Summary
Modifier and TypeMethodDescriptionprotected ViewItemContainer
_getResultItems
(Collection<? extends Model> model, Map<String, Object> contextualParameters) Retrieves the view to use to extract valuesMethods inherited from class org.ametys.cms.search.content.ContentValuesExtractorFactory.AbstractContentValuesExtractor
getValues
-
Constructor Details
-
SimpleContentValuesExtractor
Build a simpleContentValuesExtractorFactory.ContentValuesExtractor
from the given result items- Parameters:
resultItems
- The result items- Throws:
IllegalArgumentException
- if the given result items contain a composite as leaf, or aSystemProperty
that is not displayable
-
-
Method Details
-
_getResultItems
protected ViewItemContainer _getResultItems(Collection<? extends Model> model, Map<String, Object> contextualParameters) Description copied from class:ContentValuesExtractorFactory.AbstractContentValuesExtractor
Retrieves the view to use to extract values- Specified by:
_getResultItems
in classContentValuesExtractorFactory.AbstractContentValuesExtractor
- Parameters:
model
- the modelcontextualParameters
- The search contextual parameters.- Returns:
- the
View
to use to extract values
-