Class PopularTab
- java.lang.Object
 - 
- com.atlassian.confluence.plugins.macros.dashboard.recentupdates.tabs.AbstractTab
 - 
- com.atlassian.confluence.plugins.macros.dashboard.recentupdates.tabs.PopularTab
 
 
 
- 
- All Implemented Interfaces:
 RecentlyUpdatedMacroTab
public class PopularTab extends AbstractTab
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static StringNAME- 
Fields inherited from class com.atlassian.confluence.plugins.macros.dashboard.recentupdates.tabs.AbstractTab
httpContext, i18NBeanFactory 
 - 
 
- 
Constructor Summary
Constructors Constructor Description PopularTab(HttpContext httpContext, I18NBeanFactory i18NBeanFactory, LocaleManager localeManager, com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()RecentUpdateQueryParametersgetQueryParameters(RecentlyUpdatedMacroParams macroParams, RecentlyUpdatedMacroRequestParams requestParams, com.atlassian.renderer.RenderContext renderContext)Map<String,Object>getRenderContext(RecentlyUpdatedMacroRequestParams requestParams, com.atlassian.renderer.RenderContext renderContext)Gives each tab a chance to add things to the macro's rendering contextbooleanshouldDisplay(com.atlassian.renderer.RenderContext renderContext)- 
Methods inherited from class com.atlassian.confluence.plugins.macros.dashboard.recentupdates.tabs.AbstractTab
getDisplayName, getNoContentMessage, getUrl, getUser 
 - 
 
 - 
 
- 
- 
Field Detail
- 
NAME
public static final String NAME
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Constructor Detail
- 
PopularTab
public PopularTab(HttpContext httpContext, I18NBeanFactory i18NBeanFactory, LocaleManager localeManager, com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager)
 
 - 
 
- 
Method Detail
- 
getName
public String getName()
- Returns:
 - the identifier for this tab. Should be a short, lowercase string that is unique to each tab.
 
 
- 
shouldDisplay
public boolean shouldDisplay(com.atlassian.renderer.RenderContext renderContext)
- Parameters:
 renderContext- The macro rendering context- Returns:
 - true if the tab should be visible in the provided context.
 
 
- 
getQueryParameters
public RecentUpdateQueryParameters getQueryParameters(RecentlyUpdatedMacroParams macroParams, RecentlyUpdatedMacroRequestParams requestParams, com.atlassian.renderer.RenderContext renderContext)
- Parameters:
 macroParams- Settings passed in via macro parametersrequestParams- Settings passed in via request parametersrenderContext- The macro rendering context- Returns:
 - the query parameters that are used to display search results on this tab.
 
 
- 
getRenderContext
public Map<String,Object> getRenderContext(RecentlyUpdatedMacroRequestParams requestParams, com.atlassian.renderer.RenderContext renderContext)
Description copied from interface:RecentlyUpdatedMacroTabGives each tab a chance to add things to the macro's rendering context- Parameters:
 requestParams- Settings passed in via request parametersrenderContext- Settings passed in via macro parameters- Returns:
 - A map of key/value pairs that the tab wants added to the Velocity context
 
 
 - 
 
 -