public class BlogPost extends AbstractPage implements ContentConvertible
Modifier and Type | Field and Description |
---|---|
static String |
CONTENT_TYPE |
static String |
POSTING_DAY_FORMAT |
CREATED, CURRENT, DELETED, MODIFIED
INITIAL_VERSION
Constructor and Description |
---|
BlogPost() |
Modifier and Type | Method and Description |
---|---|
static Calendar |
getCalendarFromDatePath(String datePath)
BEFORE USING THIS - consider if
BlogPostReference better suits your needs. |
ContentId |
getContentId()
Returns the
ContentId for this Blog post. |
String |
getDatePath() |
String |
getLinkPart() |
String |
getLinkWikiMarkup() |
Calendar |
getPostingCalendarDate() |
Date |
getPostingDate()
Alias for
EntityObject.getCreationDate() |
String |
getPostingDayOfMonth() |
String |
getPostingMonth() |
String |
getPostingMonth(DateFormatter formatter) |
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.
|
boolean |
shouldConvertToContent() |
static Calendar |
toCalendar(Date date) |
static String |
toDatePath(Date date) |
convertToHistoricalVersion, getAttachmentsUrlPath, getAttachmentUrlPath, getContentEntityObject, getLatestVersion, getOriginalVersionPage, getPageLevelComments, getPreviousVersion, getSearchableDependants, getTopLevelComments, getUrlPath, hasInvalidTitleCharacters, isValidPageTitle, isValidPageTitleCharacter, isValidTitleLength, remove, setContentPropertiesFromDraft, setOriginalVersionPage, setTitle
addTrackbackLink, getNameForComparison, getSpace, getSpaceKey, hashCode, isIndexable, isInSpace, setSpace
addAttachment, addComment, addCustomContent, addOutgoingLink, addPermission, addReferralLink, clone, compareTo, ensureAttachmentBelongsToContent, equals, getAttachmentNamed, getAttachments, getBodyAsString, getBodyAsStringWithoutMarkup, getBodyContent, getBodyContent, getBodyContents, getComments, getContentPermission, getContentPermissionSet, getContentStatus, getDefaultBodyType, getDisplayTitle, getEntity, getExcerpt, getIdAsString, getLatestVersionsOfAttachments, getOutgoingLinks, getPermissions, getProperties, getReferralLinks, getRenderedVersionComment, getTitle, getTrackbackLinks, getTypeEnum, getUserAccessor, getVersionComment, hasContentPermissions, hasPermissions, isCurrent, isDeleted, isRecentlyUpdatedFor, isVersionCommentAvailable, removeAttachment, removeComment, removeContentPermissionSet, removeCustomContent, removeOutgoingLink, removeReferralLink, removeTrackbackLink, replaceContentProperties, restore, restoreDependents, setAttachments, setBodyAsString, setBodyContent, setBodyContents, setComments, setContent, setContentStatus, setOutgoingLinks, setReferralLinks, setTrackbackLinks, setUserAccessor, setVersionComment, toPageContext, toString, trash, trashDependents
addLabelling, getGlobalLabels, getLabelCount, getLabellings, getLabels, getLabelsForDisplay, getLabelUtil, getPersonalLabels, getTeamLabels, getVisibleLabels, isFavourite, isFavourite, removeLabelling, setLabellings
getOriginalVersion, getVersion, isLatestVersion, isNew, setOriginalVersion, 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 String getType()
ContentEntityObject
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 ContentId getContentId()
ContentId
for this Blog post.getContentId
in interface ContentConvertible
getContentId
in class ContentEntityObject
public boolean shouldConvertToContent()
shouldConvertToContent
in interface ContentConvertible