Class ContentValuesExtractorFactory.SearchModelContentValuesExtractor

    • Method Detail

      • getValues

        public Map<String,​ObjectgetValues​(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

        public Map<String,​ObjectgetValues​(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.
      • putPropertyValue

        protected void putPropertyValue​(Map<String,​Object> properties,
                                        ResultField column,
                                        Object value)
        Put a result value at its right place in the properties map.
        Parameters:
        properties - the properties map to fill.
        column - the search column.
        value - the result value.