public class GlobalHelper extends Object implements ThemeHelper
| Constructor and Description |
|---|
GlobalHelper() |
GlobalHelper(ConfluenceActionSupport action) |
| Modifier and Type | Method and Description |
|---|---|
ConfluenceActionSupport |
getAction() |
List<Breadcrumb> |
getBreadcrumbs()
Returns a list of breadcrumbs ending with the current action.
|
String |
getDomainName() |
List<Breadcrumb> |
getEllipsisCrumbs(List<Breadcrumb> trail)
Returns the subset of the breadcrumbs which should be hidden under an ellipsis:
The first crumb (e.g.
|
DisplayableLabel |
getLabel() |
AbstractPage |
getPage() |
String |
getSiteTitle() |
Space |
getSpace() |
String |
getSpaceKey() |
String |
getSpaceName() |
String |
getSpaceType() |
String |
getText(String property) |
String |
getText(String property,
Object[] args) |
com.atlassian.renderer.WikiStyleRenderer |
getWikiStyleRenderer() |
String |
renderConfluenceMacro(String wikiCall) |
String |
renderConfluenceMacro(String messageFormatString,
String... args) |
public GlobalHelper()
public GlobalHelper(ConfluenceActionSupport action)
public String getText(String property)
getText in interface ThemeHelperpublic ConfluenceActionSupport getAction()
getAction in interface ThemeHelperpublic String getDomainName()
getDomainName in interface ThemeHelperpublic String getSiteTitle()
public Space getSpace()
public String getSpaceKey()
getSpaceKey in interface ThemeHelperpublic String getSpaceName()
getSpaceName in interface ThemeHelperpublic String getSpaceType()
public AbstractPage getPage()
public com.atlassian.renderer.WikiStyleRenderer getWikiStyleRenderer()
public String renderConfluenceMacro(String wikiCall)
renderConfluenceMacro in interface ThemeHelperpublic String renderConfluenceMacro(String messageFormatString, String... args)
public DisplayableLabel getLabel()
public List<Breadcrumb> getBreadcrumbs()
The current action is usually the last breadcrumb, represented by text (rather than a link) which is an i18n version of the action name. The action's parent is determined in one of the following ways (given that there is no other convention for the determination of an action's place in the hierachy) :
This method is currently a hack due to our ugly action hierarchy. The logic for all this were in the velocity templates and have been centralized in one location, here. It should be cleaned up later on (no dependency on request URL or package name).
public List<Breadcrumb> getEllipsisCrumbs(List<Breadcrumb> trail)
Copyright © 2003–2018 Atlassian. All rights reserved.