com.atlassian.confluence.it
Class BlogPost

java.lang.Object
  extended by com.atlassian.confluence.it.AbstractContentEntity
      extended by com.atlassian.confluence.it.BlogPost
All Implemented Interfaces:
ContentEntity, LinkableContent, TitledContent

public class BlogPost
extends AbstractContentEntity
implements LinkableContent


Field Summary
static BlogPost TEST
           
 
Fields inherited from class com.atlassian.confluence.it.AbstractContentEntity
content, id, lastModificationDate, lastModifier, version
 
Constructor Summary
BlogPost(BlogPost blogPost)
           
BlogPost(Space space, String title, String content)
           
BlogPost(Space space, String title, String content, Date publishDate)
           
 
Method Summary
 String getAddCommentUrl()
           
 String getDateString()
           
 String getDateString(Date blogPostDate)
           
 String getEditUrl()
           
 Date getPublishDate()
           
 Space getSpace()
           
 String getTitle()
           
 String getUrl()
           
 String getUrl(Date blogPostDate)
           
 String getUrlWithDate()
           
 String getViewAttachmentsUrl()
           
 void setPublishDate(Date date)
           
 void setTitle(String title)
          Edit the title of this object.
 
Methods inherited from class com.atlassian.confluence.it.AbstractContentEntity
getContent, getId, getIdAsString, getLastModificationDate, getLastModifier, getVersion, setContent, setId, setLastModificationDate, setLastModifier, setVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEST

public static BlogPost TEST
Constructor Detail

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)
Method Detail

getSpace

public Space getSpace()
Specified by:
getSpace in interface ContentEntity
Returns:
the space this content belongs to.

getTitle

public String getTitle()
Specified by:
getTitle in interface ContentEntity
Specified by:
getTitle in interface TitledContent
Returns:
the title of this entity

getEditUrl

public String getEditUrl()
Specified by:
getEditUrl in interface ContentEntity
Returns:
the url where this entity can be edited.

getUrl

public String getUrl()
Specified by:
getUrl in interface LinkableContent

getUrlWithDate

public String getUrlWithDate()

getUrl

public String getUrl(Date blogPostDate)

getViewAttachmentsUrl

public String getViewAttachmentsUrl()

getAddCommentUrl

public String getAddCommentUrl()

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.


Copyright © 2003-2012 Atlassian. All Rights Reserved.