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

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

public class BlogPostsMacro
extends com.atlassian.renderer.v2.macro.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
 java.lang.String execute(java.util.Map params, java.lang.String string, com.atlassian.renderer.RenderContext renderContext)
           
 com.atlassian.renderer.v2.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(com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer)
           
 java.util.List toPostHtmlTuple(java.util.List blogPosts, java.lang.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 com.atlassian.renderer.v2.RenderMode getBodyRenderMode()

execute

public java.lang.String execute(java.util.Map params,
                                java.lang.String string,
                                com.atlassian.renderer.RenderContext renderContext)
                         throws com.atlassian.renderer.v2.macro.MacroException
Throws:
com.atlassian.renderer.v2.macro.MacroException

toPostHtmlTuple

public java.util.List toPostHtmlTuple(java.util.List blogPosts,
                                      java.lang.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(com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer)

setContentPropertyManager

public void setContentPropertyManager(ContentPropertyManager contentPropertyManager)

setSpaceManager

public void setSpaceManager(SpaceManager spaceManager)

setPermissionManager

public void setPermissionManager(PermissionManager permissionManager)


Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.