public class BlogPost extends AbstractPage implements ContentConvertible
Modifier and Type | Field and Description |
---|---|
static String |
CONTENT_TYPE |
static String |
POSTING_DATE
Name of the form field used to store the posting date of the blog post
|
static String |
POSTING_DAY_FORMAT |
CREATED, CURRENT, DELETED, DRAFT, MODIFIED, SHARE_ID, SYNC_REV
INITIAL_VERSION
Constructor and Description |
---|
BlogPost() |
convertToHistoricalVersion, getAttachmentsUrlPath, getAttachmentUrlPath, getLatestVersion, getOriginalVersionPage, getPageLevelComments, getPreviousVersion, getSearchableDependants, getTopLevelComments, getUrlPath, hasInvalidTitleCharacters, isValidPageTitle, isValidPageTitleCharacter, isValidTitleLength, remove, setContentPropertiesFromDraft, setOriginalVersionPage, setTitle
getNameForComparison, getSpace, getSpaceKey, hashCode, isIndexable, isInSpace, setSpace
addAttachment, addComment, addCustomContent, addOutgoingLink, addPermission, addReferralLink, addTrackbackLink, applyChildVersioningPolicy, clone, compareTo, ensureAttachmentBelongsToContent, equals, getAttachmentNamed, getAttachments, getBodyAsString, getBodyAsStringWithoutMarkup, getBodyContent, getBodyContent, getBodyContents, getComments, getContainerContent, getContentEntityObject, getContentPermission, getContentPermissionSet, getContentStatus, getContentStatusObject, getDefaultBodyType, getDisplayTitle, getEntity, getExcerpt, getIdAsString, getLatestVersionId, getLatestVersionsOfAttachments, getOriginalVersionId, getOutgoingLinks, getPermissions, getProperties, getReferralLinks, getRenderedVersionComment, getShareId, getTitle, getTrackbackLinks, getTypeEnum, getUserAccessor, getVersionComment, hasContentPermissions, hasPermissions, isCurrent, isDeleted, isDraft, isRecentlyUpdatedFor, isUnpublished, isVersionCommentAvailable, removeAttachment, removeComment, removeContentPermissionSet, removeCustomContent, removeOutgoingLink, removeReferralLink, removeTrackbackLink, replaceContentProperties, restore, restoreDependents, setAttachments, setBodyAsString, setBodyContent, setBodyContents, setComments, setContainerContent, setContentPropertiesFrom, setContentStatus, setOriginalVersion, setOriginalVersionId, setOutgoingLinks, setReferralLinks, setTrackbackLinks, setUserAccessor, setVersionComment, sharedAccessAllowed, toPageContext, toString, trash, trashDependents, wasCreatedBy
addLabelling, getGlobalLabels, getLabelCount, getLabellings, getLabels, getLabelsForDisplay, getLabelUtil, getPersonalLabels, getTeamLabels, getVisibleLabels, isFavourite, isFavourite, removeLabelling, setLabellings
getOriginalVersion, getVersion, getVersionChildPolicy, isLatestVersion, isNew, setVersion
getCreator, getCreatorName, getLastModifier, getLastModifierName, getRealClass, isPersistent, setCreator, setCreatorName, setLastModifier, setLastModifierName
getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDate
finalize, getClass, notify, notifyAll, wait, wait, wait
getId
getId, isPersistent
public static final String CONTENT_TYPE
public static final String POSTING_DAY_FORMAT
public static final String POSTING_DATE
public String getType()
ContentEntityObject
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.
getType
in interface ContentTypeAware
getType
in class ContentEntityObject
public static Calendar getCalendarFromDatePath(String datePath)
BlogPostReference
better suits your needs.datePath
- - should resemble /2005/11/12/aBlogTitlepublic static String getTitleFromDatePath(String datePath)
BlogPostReference
better suits your needs.datePath
- - should resemble /2010/11/12/aBlogTitlepublic String getLinkPart()
public String getDatePath()
public String getLinkWikiMarkup()
getLinkWikiMarkup
in interface HasLinkWikiMarkup
public String getPostingYear()
public String getPostingMonth()
public String getPostingMonth(DateFormatter formatter)
public String getPostingMonthNumeric()
public String getPostingDayOfMonth()
public Date getPostingDate()
EntityObject.getCreationDate()
public Calendar getPostingCalendarDate()
public ContentType getContentTypeObject()
getContentTypeObject
in interface ContentConvertible
public ContentId getContentId()
ContentId
for this Blog post.getContentId
in interface ContentConvertible
getContentId
in class ContentEntityObject
public boolean shouldConvertToContent()
shouldConvertToContent
in interface ContentConvertible
Copyright © 2003–2016 Atlassian. All rights reserved.