Class AbstractResultDisplayer

  • All Implemented Interfaces:
    ResultDisplayer

    public abstract class AbstractResultDisplayer
    extends Object
    implements ResultDisplayer
    This class shares common method to implement ResultDisplayer interface.
    • Constructor Detail

      • AbstractResultDisplayer

        public AbstractResultDisplayer()
    • Method Detail

      • setCommonAttributes

        protected SilverpeasTemplate setCommonAttributes​(SearchResultContentVO searchResult,
                                                         SilverpeasTemplate componentTemplate)
        Parameters:
        searchResult - the SearchResultContentVO which encapsulates result data
        componentTemplate - the silverpeas template where we set attributes
        Returns:
        a SilverpeasTemplate with additional common attributes.
      • getUserPreferences

        protected UserPreferences getUserPreferences​(String userId)
        Returns:
        a UserPreferences object from Personalization service.