Package org.ametys.cms.search.content
Interface ContentValuesExtractorFactory.ContentValuesExtractor
-
- All Known Implementing Classes:
ContentValuesExtractorFactory.SearchModelContentValuesExtractor
,ContentValuesExtractorFactory.SimpleContentValuesExtractor
- Enclosing class:
- ContentValuesExtractorFactory
public static interface ContentValuesExtractorFactory.ContentValuesExtractor
A ContentValuesExtractor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,Object>
getValues(Content content, Locale defaultLocale)
Get the values from the given content.Map<String,Object>
getValues(Content content, Locale defaultLocale, Map<String,Object> contextualParameters)
Get the values from the given content.ContentValuesExtractorFactory.ContentValuesExtractor
setFullValues(boolean fullValues)
Whether to return full values or not.
-
-
-
Method Detail
-
setFullValues
ContentValuesExtractorFactory.ContentValuesExtractor setFullValues(boolean fullValues)
Whether to return full values or not.- Parameters:
fullValues
- true to return full values, false otherwise.- Returns:
- The ContentValuesExtractor itself.
-
getValues
Map<String,Object> getValues(Content content, Locale defaultLocale)
Get the values from the given content.- Parameters:
content
- The content.defaultLocale
- The default locale for localized values if the content's language is null. Can be null.- Returns:
- the extracted values.
-
getValues
Map<String,Object> getValues(Content content, Locale defaultLocale, Map<String,Object> contextualParameters)
Get the values from the given content.- 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.
-
-