com.atlassian.confluence.it
Class BlogPost
java.lang.Object
com.atlassian.confluence.it.AbstractContentEntity
com.atlassian.confluence.it.AbstractPageEntity
com.atlassian.confluence.it.BlogPost
- All Implemented Interfaces:
- ContentEntity, LinkableContent, TitledContent, VersionedContent, ContentConvertible
public class BlogPost
- extends AbstractPageEntity
Methods inherited from class com.atlassian.confluence.it.AbstractContentEntity |
getContent, getContentId, getContentTypeObject, getId, getIdAsString, getLastModificationDate, getLastModifier, getVersion, isMinorEdit, setContent, setId, setId, setLastModificationDate, setLastModifier, setVersion |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TEST
public static BlogPost TEST
BlogPost
public BlogPost(Space space,
String title,
String content)
BlogPost
public BlogPost(Space space,
String title,
String content,
Date publishDate)
BlogPost
public BlogPost(BlogPost blogPost)
getSpace
public Space getSpace()
- Returns:
- the space this content belongs to.
getTitle
public String getTitle()
- Returns:
- the title of this entity
getEditUrl
public String getEditUrl()
- Returns:
- the url where this entity can be edited.
getUrl
public String getUrl()
getUrlWithDate
public String getUrlWithDate()
getUrl
public String getUrl(Date blogPostDate)
getBlogSourceUrl
public String getBlogSourceUrl()
getViewAttachmentsUrl
public String getViewAttachmentsUrl()
getAddCommentUrl
public UrlBuilder getAddCommentUrl()
- Specified by:
getAddCommentUrl
in class AbstractPageEntity
getDateString
public String getDateString(Date blogPostDate)
getDateString
public String getDateString()
setPublishDate
public void setPublishDate(Date date)
getPublishDate
public Date getPublishDate()
setTitle
public void setTitle(String title)
- Edit the title of this object. WARNING: changing this field will not update the system by itself, and operations
that try to look up this blog post by the new title will fail until the system is actually updated.
- Parameters:
title
- the new title for the page.
getContentType
public ContentType getContentType()
- Specified by:
getContentType
in interface ContentEntity
- Overrides:
getContentType
in class AbstractContentEntity
- Returns:
- the ContentType of this entity
shouldConvertToContent
public boolean shouldConvertToContent()
- Returns:
- true if the implementer wants to be part of the core API (default value), false otherwise
Copyright © 2003–2015 Atlassian. All rights reserved.