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
 
Fields inherited from class com.atlassian.confluence.it.AbstractContentEntity
content, id, lastModificationDate, lastModifier, version
 
Constructor Summary
BlogPost(BlogPost blogPost)
           
BlogPost(Space space, java.lang.String title, java.lang.String content)
           
BlogPost(Space space, java.lang.String title, java.lang.String content, java.util.Date publishDate)
           
 
Method Summary
 java.lang.String getAddCommentUrl(java.util.Date blogPostDate)
           
 java.lang.String getDateString()
           
 java.lang.String getDateString(java.util.Date blogPostDate)
           
 java.lang.String getEditUrl()
           
 java.util.Date getPublishDate()
           
 Space getSpace()
           
 java.lang.String getTitle()
           
 java.lang.String getUrl()
           
 java.lang.String getUrl(java.util.Date blogPostDate)
           
 java.lang.String getUrlWithDate()
           
 void setPublishDate(java.util.Date date)
           
 void setTitle(java.lang.String title)
          Edit the title of this object.
 
Methods inherited from class com.atlassian.confluence.it.AbstractContentEntity
getContent, getId, 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
 

Constructor Detail

BlogPost

public BlogPost(Space space,
                java.lang.String title,
                java.lang.String content)

BlogPost

public BlogPost(Space space,
                java.lang.String title,
                java.lang.String content,
                java.util.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 java.lang.String getTitle()
Specified by:
getTitle in interface ContentEntity
Specified by:
getTitle in interface TitledContent
Returns:
the title of this entity

getEditUrl

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

getUrl

public java.lang.String getUrl()
Specified by:
getUrl in interface LinkableContent

getUrlWithDate

public java.lang.String getUrlWithDate()

getUrl

public java.lang.String getUrl(java.util.Date blogPostDate)

getAddCommentUrl

public java.lang.String getAddCommentUrl(java.util.Date blogPostDate)

getDateString

public java.lang.String getDateString(java.util.Date blogPostDate)

getDateString

public java.lang.String getDateString()

setPublishDate

public void setPublishDate(java.util.Date date)

getPublishDate

public java.util.Date getPublishDate()

setTitle

public void setTitle(java.lang.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-2011 Atlassian. All Rights Reserved.