public class

BlogPost

extends AbstractPage
java.lang.Object
   ↳ com.atlassian.core.bean.EntityObject
     ↳ com.atlassian.confluence.core.ConfluenceEntityObject
       ↳ com.atlassian.confluence.core.AbstractVersionedEntityObject
         ↳ com.atlassian.confluence.core.AbstractLabelableEntityObject
           ↳ com.atlassian.confluence.core.ContentEntityObject
             ↳ com.atlassian.confluence.core.SpaceContentEntityObject
               ↳ com.atlassian.confluence.pages.AbstractPage
                 ↳ com.atlassian.confluence.pages.BlogPost

Summary

Constants
String CONTENT_TYPE
String POSTING_DAY_FORMAT
[Expand]
Inherited Constants
From class com.atlassian.confluence.core.ContentEntityObject
From class com.atlassian.confluence.core.AbstractVersionedEntityObject
Public Constructors
BlogPost()
Public Methods
static Calendar getCalendarFromDatePath(String datePath)
BEFORE USING THIS - consider if BlogPostReference better suits your needs.
String getDatePath()
String getLinkPart()
String getLinkWikiMarkup()
Calendar getPostingCalendarDate()
Date getPostingDate()
String getPostingDayOfMonth()
String getPostingMonth(DateFormatter formatter)
String getPostingMonth()
String getPostingMonthNumeric()
String getPostingYear()
static String getTitleFromDatePath(String datePath)
BEFORE USING THIS - consider if BlogPostReference better suits your needs.
String getType()
An easy name for the type of this content: makes it easy for things like the #contentLink macro to work out what to draw.
static Calendar toCalendar(Date date)
static String toDatePath(Date date)
[Expand]
Inherited Methods
From class com.atlassian.confluence.pages.AbstractPage
From class com.atlassian.confluence.core.SpaceContentEntityObject
From class com.atlassian.confluence.core.ContentEntityObject
From class com.atlassian.confluence.core.AbstractLabelableEntityObject
From class com.atlassian.confluence.core.AbstractVersionedEntityObject
From class com.atlassian.confluence.core.ConfluenceEntityObject
From class com.atlassian.core.bean.EntityObject
From class java.lang.Object
From interface com.atlassian.bonnie.Searchable
From interface com.atlassian.confluence.content.Content
From interface com.atlassian.confluence.core.Addressable
From interface com.atlassian.confluence.core.ContentTypeAware
From interface com.atlassian.confluence.core.HasLinkWikiMarkup
From interface com.atlassian.confluence.core.Versioned
From interface com.atlassian.confluence.labels.EditableLabelable
From interface com.atlassian.confluence.labels.Labelable
From interface com.atlassian.confluence.spaces.Spaced
From interface java.lang.Comparable

Constants

public static final String CONTENT_TYPE

Constant Value: "blogpost"

public static final String POSTING_DAY_FORMAT

Constant Value: "yyyy/MM/dd"

Public Constructors

public BlogPost ()

Public Methods

public static Calendar getCalendarFromDatePath (String datePath)

BEFORE USING THIS - consider if BlogPostReference better suits your needs.

Parameters
datePath - should resemble /2005/11/12/aBlogTitle
Returns
  • Calendar representing the date of the blog, useful for a call to pageManager.getBlogPost(spaceKey, title, calendarDay)

public String getDatePath ()

public String getLinkPart ()

public String getLinkWikiMarkup ()

public Calendar getPostingCalendarDate ()

public Date getPostingDate ()

Returns
  • the posting date

public String getPostingDayOfMonth ()

public String getPostingMonth (DateFormatter formatter)

public String getPostingMonth ()

public String getPostingMonthNumeric ()

public String getPostingYear ()

public static String getTitleFromDatePath (String datePath)

BEFORE USING THIS - consider if BlogPostReference better suits your needs.

Parameters
datePath - should resemble /2010/11/12/aBlogTitle
Returns
  • the title of the blog, if supplied with correct input, otherwise a null

public String getType ()

An easy name for the type of this content: makes it easy for things like the #contentLink macro to work out what to draw.

This is a bit of a hack, but it saves heaps of code elsewhere, especially since we tend to get back these objects wrapped in all sorts of Hibernate CGLIB stuff.

public static Calendar toCalendar (Date date)

public static String toDatePath (Date date)