Class AbstractTab
- java.lang.Object
-
- 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
Fields Modifier and Type Field Description protected HttpContext
httpContext
protected I18NBeanFactory
i18NBeanFactory
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractTab(HttpContext httpContext, I18NBeanFactory i18NBeanFactory, LocaleManager localeManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 interfaceRecentlyUpdatedMacroTab
- Returns:
- the internationalised name for this tab, specific to the user currently viewing the tab.
-
getNoContentMessage
public String getNoContentMessage()
- Specified by:
getNoContentMessage
in interfaceRecentlyUpdatedMacroTab
- 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 interfaceRecentlyUpdatedMacroTab
- Returns:
- The URL to select this tab
-
getUser
protected com.atlassian.user.User getUser()
-
-