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 HttpContexthttpContextprotected I18NBeanFactoryi18NBeanFactory
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractTab(HttpContext httpContext, I18NBeanFactory i18NBeanFactory, LocaleManager localeManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDisplayName()StringgetNoContentMessage()StringgetUrl()Given the page URL where the macro is rendered, generates a URL to select this tab.protected com.atlassian.user.UsergetUser()-
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:
getDisplayNamein interfaceRecentlyUpdatedMacroTab- Returns:
- the internationalised name for this tab, specific to the user currently viewing the tab.
-
getNoContentMessage
public String getNoContentMessage()
- Specified by:
getNoContentMessagein interfaceRecentlyUpdatedMacroTab- Returns:
- the internationalised message to display when this tab has no content.
-
getUrl
public String getUrl()
Description copied from interface:RecentlyUpdatedMacroTabGiven the page URL where the macro is rendered, generates a URL to select this tab.- Specified by:
getUrlin interfaceRecentlyUpdatedMacroTab- Returns:
- The URL to select this tab
-
getUser
protected com.atlassian.user.User getUser()
-
-