com.atlassian.confluence.renderer.v2.macros
Class BlogPostsMacro

java.lang.Object
  extended bycom.atlassian.renderer.v2.macro.BaseMacro
      extended bycom.atlassian.confluence.renderer.v2.macros.BlogPostsMacro
All Implemented Interfaces:
Macro

public class BlogPostsMacro
extends BaseMacro

Show a list of blog posts in a page.


Nested Class Summary
static class BlogPostsMacro.PostHtmlTuple
           
 
Field Summary
 
Fields inherited from interface com.atlassian.renderer.v2.macro.Macro
RAW_PARAMS_KEY
 
Constructor Summary
BlogPostsMacro()
           
 
Method Summary
 String execute(Map params, String string, RenderContext renderContext)
           
 RenderMode getBodyRenderMode()
           
 boolean hasBody()
           
 boolean isInline()
           
 void setContentPropertyManager(ContentPropertyManager contentPropertyManager)
           
 void setLabelManager(LabelManager labelManager)
           
 void setPermissionManager(PermissionManager permissionManager)
           
 void setSmartListManager(SmartListManager smartListManager)
           
 void setSpaceManager(SpaceManager spaceManager)
           
 void setWikiStyleRenderer(WikiStyleRenderer wikiStyleRenderer)
           
 List toPostHtmlTuple(List blogPosts, String contentType)
          Renders each of the blog posts, skipping the current page if it is included
 
Methods inherited from class com.atlassian.renderer.v2.macro.BaseMacro
suppressMacroRenderingDuringWysiwyg, suppressSurroundingTagDuringWysiwygRendering
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlogPostsMacro

public BlogPostsMacro()
Method Detail

isInline

public boolean isInline()

hasBody

public boolean hasBody()

getBodyRenderMode

public RenderMode getBodyRenderMode()

execute

public String execute(Map params,
                      String string,
                      RenderContext renderContext)
               throws MacroException
Throws:
MacroException

toPostHtmlTuple

public List toPostHtmlTuple(List blogPosts,
                            String contentType)
Renders each of the blog posts, skipping the current page if it is included

Parameters:
blogPosts - the List of BlogPost objects
contentType - the type of content to include (titles or excerpts)
Returns:
List of PostHtmlTuples

setSmartListManager

public void setSmartListManager(SmartListManager smartListManager)

setLabelManager

public void setLabelManager(LabelManager labelManager)

setWikiStyleRenderer

public void setWikiStyleRenderer(WikiStyleRenderer wikiStyleRenderer)

setContentPropertyManager

public void setContentPropertyManager(ContentPropertyManager contentPropertyManager)

setSpaceManager

public void setSpaceManager(SpaceManager spaceManager)

setPermissionManager

public void setPermissionManager(PermissionManager permissionManager)


Confluence is developed by Atlassian.