Class SpacesListMacro
- java.lang.Object
-
- com.atlassian.renderer.v2.macro.BaseMacro
-
- com.atlassian.confluence.plugins.macros.dashboard.SpacesListMacro
-
- All Implemented Interfaces:
com.atlassian.renderer.v2.macro.Macro
public class SpacesListMacro extends com.atlassian.renderer.v2.macro.BaseMacro
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SpacesListMacro.Tabs
-
Field Summary
Fields Modifier and Type Field Description static String
MACRO_NAME
-
Constructor Summary
Constructors Constructor Description SpacesListMacro()
-
Method Summary
-
-
-
Field Detail
-
MACRO_NAME
public static final String MACRO_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
hasBody
public boolean hasBody()
-
getBodyRenderMode
public com.atlassian.renderer.v2.RenderMode getBodyRenderMode()
-
execute
public String execute(Map parameters, String body, com.atlassian.renderer.RenderContext renderContext) throws com.atlassian.renderer.v2.macro.MacroException
- Throws:
com.atlassian.renderer.v2.macro.MacroException
-
getDashboardMacroSupport
protected DashboardMacroSupport getDashboardMacroSupport(boolean includeArchivedSpaces)
-
renderMacro
protected String renderMacro(Map contextMap, String velocityTemplatePath) throws IOException
- Throws:
IOException
-
getGlobalSettings
protected Settings getGlobalSettings()
-
getI18n
protected I18NBean getI18n()
-
getName
public String getName()
-
getSelectedTeam
public String getSelectedTeam(List<String> availableTeams, DashboardMacroSupport support)
-
getUserInterfaceState
public UserInterfaceState getUserInterfaceState()
-
getSpacesForLabels
public Set<Space> getSpacesForLabels(String labels, DashboardMacroSupport dashboardMacroSupport)
- Parameters:
labels
- comma delimited list of labelsdashboardMacroSupport
-- Returns:
- spaces belonging to these labels
-
getSpacesForTeam
public List<Space> getSpacesForTeam(String selectedTeam, DashboardMacroSupport dashboardMacroSupport)
-
getSortedRecentlyCreatedSpaces
public Map<String,List<Space>> getSortedRecentlyCreatedSpaces(DashboardMacroSupport support)
-
setSpaceManager
public void setSpaceManager(SpaceManager spaceManager)
-
setLabelManager
public void setLabelManager(LabelManager labelManager)
-
setSettingsManager
public void setSettingsManager(GlobalSettingsManager settingsManager)
-
setLocaleManager
public void setLocaleManager(LocaleManager localeManager)
-
setPermissionManager
public void setPermissionManager(PermissionManager permissionManager)
-
setUserAccessor
public void setUserAccessor(UserAccessor userAccessor)
-
setFormatSettingsManager
public void setFormatSettingsManager(FormatSettingsManager formatSettingsManager)
-
-