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
Modifier and TypeMethodDescriptionGet the values from the given content.Get the values from the given content.setFullValues
(boolean fullValues) Whether to return full values or not.
-
Method Details
-
setFullValues
Whether to return full values or not.- Parameters:
fullValues
- true to return full values, false otherwise.- Returns:
- The ContentValuesExtractor itself.
-
getValues
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.
-