Class SpacesListMacro

  • All Implemented Interfaces:
    com.atlassian.renderer.v2.macro.Macro

    public class SpacesListMacro
    extends com.atlassian.renderer.v2.macro.BaseMacro
    • Constructor Detail

      • SpacesListMacro

        public SpacesListMacro()
    • 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)
      • getGlobalSettings

        protected Settings getGlobalSettings()
      • getI18n

        protected I18NBean getI18n()
      • getMacroVelocityContext

        protected Map<String,​Object> getMacroVelocityContext()
      • getName

        public String getName()
      • getSpacesForLabels

        public Set<Space> getSpacesForLabels​(String labels,
                                             DashboardMacroSupport dashboardMacroSupport)
        Parameters:
        labels - comma delimited list of labels
        dashboardMacroSupport -
        Returns:
        spaces belonging to these labels
      • setSpaceManager

        public void setSpaceManager​(SpaceManager spaceManager)
      • setLabelManager

        public void setLabelManager​(LabelManager labelManager)
      • setLocaleManager

        public void setLocaleManager​(LocaleManager localeManager)
      • setPermissionManager

        public void setPermissionManager​(PermissionManager permissionManager)
      • setUserAccessor

        public void setUserAccessor​(UserAccessor userAccessor)
      • setFormatSettingsManager

        public void setFormatSettingsManager​(FormatSettingsManager formatSettingsManager)