com.atlassian.confluence.plugins.macros.dashboard
Class RecentlyUpdatedContentMacro

java.lang.Object
  extended by com.atlassian.renderer.v2.macro.BaseMacro
      extended by com.atlassian.confluence.macro.ContentFilteringMacro
          extended by com.atlassian.confluence.plugins.macros.dashboard.RecentlyUpdatedContentMacro
All Implemented Interfaces:
com.atlassian.renderer.v2.macro.Macro

public final class RecentlyUpdatedContentMacro
extends ContentFilteringMacro


Field Summary
static String MACRO_NAME
           
 
Fields inherited from class com.atlassian.confluence.macro.ContentFilteringMacro
authorParam, contentTypeParam, DEFAULT_MAX_RESULTS, DEFAULT_SPACE_KEY, labelParam, maxResultsParam, searchManager, sortParam, spaceKeyParam
 
Fields inherited from interface com.atlassian.renderer.v2.macro.Macro
RAW_PARAMS_KEY
 
Constructor Summary
RecentlyUpdatedContentMacro()
           
 
Method Summary
 String execute(MacroExecutionContext ctx)
          Subclasses must override macro-specific functionality in this method.
 com.atlassian.renderer.v2.RenderMode getBodyRenderMode()
           
 Long getIdFromChangeItem(SearchResultWithExcerpt changeItem)
           
protected  Map<String,Object> getMacroVelocityContext()
           
 String getName()
           
 String getSelectedTeam(List<String> availableTeams, DashboardMacroSupport support)
           
protected  String getUpdatesSelectedTab(DashboardMacroSupport dashboardSupport)
           
 UserAccessor getUserAccessor()
           
protected  com.atlassian.core.user.preferences.UserPreferences getUserPreferences()
           
 boolean hasBody()
           
 void setAnyTypeDao(AnyTypeDao anyTypeDao)
           
 void setFormatSettingsManager(FormatSettingsManager formatSettingsManager)
           
 void setLabelManager(LabelManager labelManager)
           
 void setLocaleManager(LocaleManager localeManager)
           
protected  void setSelectedTeam(String team)
           
 void setSettingsManager(SettingsManager settingsManager)
           
 void setSmartListManager(SmartListManager smartListManager)
           
 void setSpaceManager(SpaceManager spaceManager)
           
 void setStatusTextRenderer(StatusTextRenderer statusTextRenderer)
           
 void setThumbnailManager(ThumbnailManager thumbnailInfoFactory)
           
protected  void setUpdatesSelectedTab(String tab)
           
 void setUserAccessor(UserAccessor userAccessor)
           
 
Methods inherited from class com.atlassian.confluence.macro.ContentFilteringMacro
execute, setSearchManager
 
Methods inherited from class com.atlassian.renderer.v2.macro.BaseMacro
getTokenType, getWysiwygBodyType, isInline, suppressMacroRenderingDuringWysiwyg, suppressSurroundingTagDuringWysiwygRendering
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MACRO_NAME

public static final String MACRO_NAME
See Also:
Constant Field Values
Constructor Detail

RecentlyUpdatedContentMacro

public RecentlyUpdatedContentMacro()
Method Detail

hasBody

public boolean hasBody()

getBodyRenderMode

public com.atlassian.renderer.v2.RenderMode getBodyRenderMode()

execute

public String execute(MacroExecutionContext ctx)
               throws com.atlassian.renderer.v2.macro.MacroException
Description copied from class: ContentFilteringMacro
Subclasses must override macro-specific functionality in this method.

Specified by:
execute in class ContentFilteringMacro
Parameters:
ctx - the MacroExecutionContext for this invocation
Returns:
the processed wiki or HTML for displaying
Throws:
com.atlassian.renderer.v2.macro.MacroException - if the macro fails to execute

getUserPreferences

protected com.atlassian.core.user.preferences.UserPreferences getUserPreferences()

setUpdatesSelectedTab

protected void setUpdatesSelectedTab(String tab)

getUpdatesSelectedTab

protected String getUpdatesSelectedTab(DashboardMacroSupport dashboardSupport)

setSelectedTeam

protected void setSelectedTeam(String team)

getSelectedTeam

public String getSelectedTeam(List<String> availableTeams,
                              DashboardMacroSupport support)

getMacroVelocityContext

protected Map<String,Object> getMacroVelocityContext()

getName

public String getName()

setSpaceManager

public void setSpaceManager(SpaceManager spaceManager)

setSmartListManager

public void setSmartListManager(SmartListManager smartListManager)

setLabelManager

public void setLabelManager(LabelManager labelManager)

setUserAccessor

public void setUserAccessor(UserAccessor userAccessor)

getUserAccessor

public UserAccessor getUserAccessor()

setSettingsManager

public void setSettingsManager(SettingsManager settingsManager)

setAnyTypeDao

public void setAnyTypeDao(AnyTypeDao anyTypeDao)

setThumbnailManager

public void setThumbnailManager(ThumbnailManager thumbnailInfoFactory)

setFormatSettingsManager

public void setFormatSettingsManager(FormatSettingsManager formatSettingsManager)

setLocaleManager

public void setLocaleManager(LocaleManager localeManager)

setStatusTextRenderer

public void setStatusTextRenderer(StatusTextRenderer statusTextRenderer)

getIdFromChangeItem

public Long getIdFromChangeItem(SearchResultWithExcerpt changeItem)


Copyright © 2003-2011 Atlassian. All Rights Reserved.