Package org.ametys.cms.search.content
Class ContentValuesExtractorFactory.AbstractContentValuesExtractor
java.lang.Object
org.ametys.cms.search.content.ContentValuesExtractorFactory.AbstractContentValuesExtractor
- All Implemented Interfaces:
ContentValuesExtractorFactory.ContentValuesExtractor
- Direct Known Subclasses:
ContentValuesExtractorFactory.SearchModelContentValuesExtractor
,ContentValuesExtractorFactory.SimpleContentValuesExtractor
- Enclosing class:
- ContentValuesExtractorFactory
public abstract class ContentValuesExtractorFactory.AbstractContentValuesExtractor
extends Object
implements ContentValuesExtractorFactory.ContentValuesExtractor
An abstract implementation of ContentValuesExtractor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ViewItemContainer
_getResultItems
(Collection<? extends Model> model, Map<String, Object> contextualParameters) Retrieves the view to use to extract valuesGet the values from the given content.
-
Constructor Details
-
AbstractContentValuesExtractor
public AbstractContentValuesExtractor()
-
-
Method Details
-
getValues
public Map<String,Object> getValues(Content content, Locale defaultLocale, Map<String, Object> contextualParameters) Description copied from interface:ContentValuesExtractorFactory.ContentValuesExtractor
Get the values from the given content.- Specified by:
getValues
in interfaceContentValuesExtractorFactory.ContentValuesExtractor
- Parameters:
content
- The content.defaultLocale
- The default locale for localized values if the content's language is null. Can be null.contextualParameters
- The search contextual parameters.- Returns:
- the extracted values.
-
_getResultItems
protected abstract ViewItemContainer _getResultItems(Collection<? extends Model> model, Map<String, Object> contextualParameters) Retrieves the view to use to extract values- Parameters:
model
- the modelcontextualParameters
- The search contextual parameters.- Returns:
- the
View
to use to extract values
-