com.atlassian.confluence.plugins.macros.dashboard.recentupdates.tabs
Class AbstractTab

java.lang.Object
  extended by com.atlassian.confluence.plugins.macros.dashboard.recentupdates.tabs.AbstractTab
All Implemented Interfaces:
RecentlyUpdatedMacroTab
Direct Known Subclasses:
AllContentTab, FavouriteSpacesTab, NetworkTab, PopularTab, SpaceCategoryTab

public abstract class AbstractTab
extends Object
implements RecentlyUpdatedMacroTab

Shared tab logic.


Field Summary
protected  HttpContext httpContext
           
protected  I18NBeanFactory i18NBeanFactory
           
 
Constructor Summary
protected AbstractTab(HttpContext httpContext, I18NBeanFactory i18NBeanFactory, LocaleManager localeManager)
           
 
Method Summary
 String getDisplayName()
           
 String getNoContentMessage()
           
 String getUrl()
          Given the page URL where the macro is rendered, generates a URL to select this tab.
protected  com.atlassian.user.User getUser()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.confluence.plugins.macros.dashboard.recentupdates.tabs.RecentlyUpdatedMacroTab
getName, getQueryParameters, getRenderContext, shouldDisplay
 

Field Detail

httpContext

protected final HttpContext httpContext

i18NBeanFactory

protected final I18NBeanFactory i18NBeanFactory
Constructor Detail

AbstractTab

protected AbstractTab(HttpContext httpContext,
                      I18NBeanFactory i18NBeanFactory,
                      LocaleManager localeManager)
Method Detail

getDisplayName

public String getDisplayName()
Specified by:
getDisplayName in interface RecentlyUpdatedMacroTab
Returns:
the internationalised name for this tab, specific to the user currently viewing the tab.

getNoContentMessage

public String getNoContentMessage()
Specified by:
getNoContentMessage in interface RecentlyUpdatedMacroTab
Returns:
the internationalised message to display when this tab has no content.

getUrl

public String getUrl()
Description copied from interface: RecentlyUpdatedMacroTab
Given the page URL where the macro is rendered, generates a URL to select this tab.

Specified by:
getUrl in interface RecentlyUpdatedMacroTab
Returns:
The URL to select this tab

getUser

protected com.atlassian.user.User getUser()


Copyright © 2003–2015 Atlassian. All rights reserved.