com.atlassian.confluence.plugins.macros.dashboard.recentupdates.tabs
Class NetworkTab
java.lang.Object
com.atlassian.confluence.plugins.macros.dashboard.recentupdates.tabs.AbstractTab
com.atlassian.confluence.plugins.macros.dashboard.recentupdates.tabs.NetworkTab
- All Implemented Interfaces:
- RecentlyUpdatedMacroTab
public class NetworkTab
- extends AbstractTab
Implements the "Network" tab, which displays updates from users that the current user follows
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NetworkTab
public NetworkTab(HttpContext httpContext,
I18NBeanFactory i18NBeanFactory,
FollowManager followManager,
LocaleManager localeManager)
getName
public String getName()
- Returns:
- the identifier for this tab. Should be a short, lowercase string that is unique to each tab.
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.
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.
getRenderContext
public Map<String,Object> getRenderContext(RecentlyUpdatedMacroRequestParams requestParams,
com.atlassian.renderer.RenderContext renderContext)
- Description copied from interface:
RecentlyUpdatedMacroTab
- Gives 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
Copyright © 2003-2013 Atlassian. All Rights Reserved.