com.silverpeas.search
Class AbstractResultDisplayer

java.lang.Object
  extended by com.silverpeas.search.AbstractResultDisplayer
All Implemented Interfaces:
ResultDisplayer

public abstract class AbstractResultDisplayer
extends Object
implements ResultDisplayer

This class shares common method to implement ResultDisplayer interface.


Constructor Summary
AbstractResultDisplayer()
           
 
Method Summary
protected  UserPreferences getUserPreferences(String userId)
           
protected  SilverpeasTemplate setCommonAttributes(SearchResultContentVO searchResult, SilverpeasTemplate componentTemplate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.silverpeas.search.ResultDisplayer
getResultContent
 

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.
Throws:
javax.servlet.jsp.JspTagException


Copyright © 2016 Silverpeas. All Rights Reserved.