com.atlassian.confluence.pages
Class BlogPost

java.lang.Object
  extended by com.atlassian.core.bean.EntityObject
      extended by com.atlassian.confluence.core.ConfluenceEntityObject
          extended by com.atlassian.confluence.core.AbstractVersionedEntityObject
              extended by com.atlassian.confluence.core.ContentEntityObject
                  extended by com.atlassian.confluence.core.SpaceContentEntityObject
                      extended by com.atlassian.confluence.pages.AbstractPage
                          extended by com.atlassian.confluence.pages.BlogPost
All Implemented Interfaces:
com.atlassian.bonnie.Searchable, Addressable, ContentTypeAware, Versioned, Labelable, Spaced, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable

public class BlogPost
extends AbstractPage

See Also:
Serialized Form

Field Summary
static java.lang.String CONTENT_TYPE
           
static java.lang.String POSTING_DAY_FORMAT
           
 
Fields inherited from class com.atlassian.confluence.core.ContentEntityObject
CREATED, CURRENT, DELETED, MODIFIED
 
Fields inherited from class com.atlassian.confluence.core.AbstractVersionedEntityObject
INITIAL_VERSION
 
Constructor Summary
BlogPost()
           
 
Method Summary
 java.lang.String getAttachmentsUrlPath()
           
 java.lang.String getDatePath()
           
 java.lang.String getLinkPart()
           
 java.lang.String getPostingDayOfMonth()
           
 java.lang.String getPostingMonth()
           
 java.lang.String getPostingMonthNumeric()
           
 java.lang.String getPostingYear()
           
 java.lang.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 java.util.Calendar toCalendar(java.util.Date date)
           
static java.lang.String toDatePath(java.util.Date date)
           
 
Methods inherited from class com.atlassian.confluence.pages.AbstractPage
addComment, convertToHistoricalVersion, getComments, getOriginalVersionPage, getPreviousVersion, getSearchableDependants, getTopLevelComments, getUrlPath, hasInvalidTitleCharacters, isValidPageTitle, isValidPageTitleCharacter, isValidTitleLength, remove, removeComment, setComments, setOriginalVersionPage, setTitle
 
Methods inherited from class com.atlassian.confluence.core.SpaceContentEntityObject
addTrackbackLink, getNameForComparison, getSpace, getSpaceKey, hashCode, isIndexable, isInSpace, setSpace
 
Methods inherited from class com.atlassian.confluence.core.ContentEntityObject
addAttachment, addLabelling, addOutgoingLink, addPermission, addReferralLink, clone, compareTo, equals, getAttachmentNamed, getAttachments, getBodyContents, getContent, getContentPermission, getContentPermissionSet, getContentStatus, getDisplayTitle, getExcerpt, getGlobalLabels, getIdAsString, getLabelCount, getLabellings, getLabels, getLabelsForDisplay, getLabelUtil, getLatestVersionsOfAttachments, getOutgoingLinks, getPermissions, getPersonalLabels, getRealTitle, getReferralLinks, getRenderedVersionComment, getTitle, getTrackbackLinks, getUserAccessor, getVersionComment, getVisibleLabels, hasContentPermissions, hasPermissions, isCurrent, isDeleted, isFavourite, isRecentlyUpdatedFor, isVersionCommentAvailable, removeAttachment, removeContentPermissionSet, removeLabelling, removeOutgoingLink, removeReferralLink, removeTrackbackLink, setAttachments, setBodyContents, setContent, setContentStatus, setOutgoingLinks, setReferralLinks, setTrackbackLinks, setUserAccessor, setVersionComment, toPageContext, toString, trash
 
Methods inherited from class com.atlassian.confluence.core.AbstractVersionedEntityObject
getLatestVersion, getOriginalVersion, getVersion, isLatestVersion, isNew, setOriginalVersion, setVersion
 
Methods inherited from class com.atlassian.confluence.core.ConfluenceEntityObject
getCreatorName, getLastModifierName, getRealClass, isPersistent, setCreatorName, setLastModifierName
 
Methods inherited from class com.atlassian.core.bean.EntityObject
getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDate
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.atlassian.bonnie.Searchable
getId
 
Methods inherited from interface com.atlassian.confluence.core.Addressable
getId
 

Field Detail

CONTENT_TYPE

public static final java.lang.String CONTENT_TYPE
See Also:
Constant Field Values

POSTING_DAY_FORMAT

public static final java.lang.String POSTING_DAY_FORMAT
See Also:
Constant Field Values
Constructor Detail

BlogPost

public BlogPost()
Method Detail

getType

public java.lang.String getType()
Description copied from class: ContentEntityObject
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.

Specified by:
getType in interface ContentTypeAware
Specified by:
getType in class ContentEntityObject
Returns:
the content type

toCalendar

public static java.util.Calendar toCalendar(java.util.Date date)

getLinkPart

public java.lang.String getLinkPart()

getDatePath

public java.lang.String getDatePath()

toDatePath

public static java.lang.String toDatePath(java.util.Date date)

getAttachmentsUrlPath

public java.lang.String getAttachmentsUrlPath()
Overrides:
getAttachmentsUrlPath in class AbstractPage

getPostingYear

public java.lang.String getPostingYear()

getPostingMonth

public java.lang.String getPostingMonth()

getPostingMonthNumeric

public java.lang.String getPostingMonthNumeric()

getPostingDayOfMonth

public java.lang.String getPostingDayOfMonth()


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