|
Clearspace API (1.10.16) Web Services Client Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.community.webservices.JiveObject
com.jivesoftware.community.webservices.BlogPost
public class BlogPost
A container for blog post data and for a hierarchy of blog comments.
| Field Summary | |
|---|---|
static int |
STATUS_DEFAULT
The default public status for a blog post. |
static int |
STATUS_DRAFT
Status value for blog posts that have been saved to the system but haven't been published and shouldn't be viewable to the public. |
static int |
STATUS_PUBLISH
Status value for blog posts that have been published to the system and should be viewable to the public. |
static int |
STATUS_SCHEDULED
Status value for blog posts that have been scheduled for publication in the future and shouldn't be viewable to the public. |
static boolean |
TRACKBACKS_DEFAULT
The default trackback status for a blog post. |
| Fields inherited from class com.jivesoftware.community.webservices.JiveObject |
|---|
id, objectType |
| Constructor Summary | |
|---|---|
BlogPost()
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
int |
getAttachmentCount()
Returns the number of attachments this blog post has. |
long |
getBlogID()
Returns the blog ID this post belongs to. |
java.lang.String |
getBody()
Returns the post body. |
int |
getCommentCount()
Returns the number of comments this blog post has. |
int |
getCommentStatus()
Returns the comment status of this blog post which may be any one of the following: NONE -- no comments allowed
OPEN -- comments are permitted
CLOSED -- comments were permitted but are not allowed now
Defaults to OPEN. |
java.util.Date |
getCreationDate()
Returns the date that this post was created. |
int |
getImageCount()
Returns the number of images this blog post has. |
java.util.Date |
getModificationDate()
Returns the date that this post was last modified. |
long |
getNextPostID()
Returns the next blogpost ID that has been published. |
java.lang.String |
getPermalink()
Returns the permalink for this post, where the permalink is a composed only of unreserved characters: unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~" as according to RFC 3986: http://www.ietf.org/rfc/rfc3986.txt Space characters and characters not in the list of unreserved characters are replaced with a hyphen character. |
java.lang.String |
getPlainBody()
Returns the plain body. |
java.lang.String |
getPlainSubject()
Returns the plain subject. |
long |
getPreviousPostID()
Returns the previous blogpost ID that has been published. |
Property[] |
getProperties()
Returns the properties associated with this blogpost. |
java.util.Date |
getPublishDate()
Returns that date that this post should be published. |
int |
getStatus()
Returns the status of this blog post which may be any one of the following: PENDING_APPROVAL -- post has status of unpublished
PUBLISH -- post has status of published. |
java.lang.String |
getSubject()
Returns the blog post subject. |
java.lang.String[] |
getTags()
Returns the tags associated with this blogpost. |
java.lang.String |
getUnfilteredBody()
Returns the unfiltered body. |
java.lang.String |
getUnfilteredSubject()
Returns the unfiltered subject. |
User |
getUser()
Returns the ID User that authored this blogpost. |
int |
hashCode()
|
boolean |
isTrackbacksEnabled()
Returns true if trackbacks are accepted on this blog post, false if not. |
void |
setAttachmentCount(int attachmentCount)
Sets the number of attachments this blog post has. |
void |
setBlogID(long blogID)
Sets the blog ID this post belongs to. |
void |
setBody(java.lang.String body)
Sets the body of this post. |
void |
setCommentCount(int commentCount)
Sets the number of comments this blog post has. |
void |
setCommentStatus(int commentStatus)
Sets the comment status of this blog post. |
void |
setCreationDate(java.util.Date creationDate)
Sets the creation date of this post. |
void |
setImageCount(int imageCount)
Sets the number of images this blog post has. |
void |
setModificationDate(java.util.Date modificationDate)
Sets the date this post was last modified. |
void |
setNextPostID(long nextPostID)
Sets the next blogpost ID that has been published. |
void |
setPermalink(java.lang.String permalink)
Sets the permalink for this blog post. |
void |
setPlainBody(java.lang.String plainBody)
Sets the plain body. |
void |
setPlainSubject(java.lang.String plainSubject)
Sets the plain subject. |
void |
setPreviousPostID(long previousPostID)
Sets the previous blogpost ID that has been published. |
void |
setProperties(Property[] properties)
Sets the properties associated with this blogpost. |
void |
setPublishDate(java.util.Date publishDate)
Sets the publish date of this post. |
void |
setStatus(int status)
Sets the publishing status of this blog post which may be any one of the following: PENDING_APPROVAL -- post has status of unpublished
PUBLISH -- post has status of published. |
void |
setSubject(java.lang.String subject)
Sets the subject of this blog post. |
void |
setTags(java.lang.String[] tags)
Sets the tags associated with this blogpost. |
void |
setTrackbacksEnabled(boolean trackbacksEnabled)
Enables and disables trackbacks for this blog post. |
void |
setUnfilteredBody(java.lang.String unfilteredBody)
Sets the unfiltered body. |
void |
setUnfilteredSubject(java.lang.String unfilteredSubject)
Sets the unfiltered subject. |
void |
setUser(User user)
Sets the id of the user. |
java.lang.String |
toString()
|
| Methods inherited from class com.jivesoftware.community.webservices.JiveObject |
|---|
getID, getObjectType, setID, setObjectType |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int STATUS_DRAFT
public static final int STATUS_PUBLISH
public static final int STATUS_SCHEDULED
public static final int STATUS_DEFAULT
public static final boolean TRACKBACKS_DEFAULT
| Constructor Detail |
|---|
public BlogPost()
| Method Detail |
|---|
public java.util.Date getCreationDate()
public void setCreationDate(java.util.Date creationDate)
creationDate - the date this post was created.public java.util.Date getPublishDate()
public void setPublishDate(java.util.Date publishDate)
publishDate - the date this post should be published.public java.util.Date getModificationDate()
public void setModificationDate(java.util.Date modificationDate)
modificationDate - the date this post was modified.public int getStatus()
PENDING_APPROVAL -- post has status of unpublished
PUBLISH -- post has status of published.
PENDING_APPROVAL.
public void setStatus(int status)
PENDING_APPROVAL -- post has status of unpublished
PUBLISH -- post has status of published.
status - the status of this blog post.public long getBlogID()
public void setBlogID(long blogID)
blogID - the blog ID this post belongs to.public User getUser()
public void setUser(User user)
user - the id of the user.public java.lang.String getSubject()
public void setSubject(java.lang.String subject)
subject - the subject of this blog post.public java.lang.String getPermalink()
unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"
as according to RFC 3986: http://www.ietf.org/rfc/rfc3986.txt
Space characters and characters not in the list of unreserved characters are replaced with a hyphen character.
If an entry is composed entirely of spaces or characters not in the list
of unreserved characters, the permalink will instead be the ID of
the blog post from JiveObject.getID().
Examples:
public void setPermalink(java.lang.String permalink)
permalink - the permalink for thispublic java.lang.String getBody()
public void setBody(java.lang.String body)
body - the body of this post.public long getPreviousPostID()
public void setPreviousPostID(long previousPostID)
previousPostID - that has been published.public long getNextPostID()
public void setNextPostID(long nextPostID)
nextPostID - the next blogpost ID that has been published.public int getCommentStatus()
NONE -- no comments allowed
OPEN -- comments are permitted
CLOSED -- comments were permitted but are not allowed now
OPEN.
public void setCommentStatus(int commentStatus)
commentStatus - the comment status of this blog post.public boolean isTrackbacksEnabled()
public void setTrackbacksEnabled(boolean trackbacksEnabled)
trackbacksEnabled - true to enable trackbacks, false to disable trackbackspublic int getAttachmentCount()
public void setAttachmentCount(int attachmentCount)
attachmentCount - the number of attachments this blog post has.public int getCommentCount()
public void setCommentCount(int commentCount)
commentCount - the number of comments this blog post has.public int getImageCount()
public void setImageCount(int imageCount)
imageCount - the number of images this blog post has.public java.lang.String getUnfilteredSubject()
public void setUnfilteredSubject(java.lang.String unfilteredSubject)
unfilteredSubject - the unfiltered subject.public Property[] getProperties()
public void setProperties(Property[] properties)
properties - the properties associated with this blogpost.public java.lang.String[] getTags()
public void setTags(java.lang.String[] tags)
tags - the tags associated with this blogpost.public java.lang.String getUnfilteredBody()
public void setUnfilteredBody(java.lang.String unfilteredBody)
unfilteredBody - the unfiltered body.public java.lang.String getPlainSubject()
public void setPlainSubject(java.lang.String plainSubject)
plainSubject - the plain subject.public java.lang.String getPlainBody()
public void setPlainBody(java.lang.String plainBody)
plainBody - the plain blody.public boolean equals(java.lang.Object o)
equals in class JiveObjectpublic int hashCode()
hashCode in class JiveObjectpublic java.lang.String toString()
toString in class JiveObject
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||