|
Clearspace API (2.0.15) 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.WSJiveObject
com.jivesoftware.community.webservices.WSBlog
public class WSBlog
A container for a list of blog postings by a user or group of users. Every blog is associated with one or more users and contains a name and a short description. Each blog can have an arbitrary number of extended properties, which allow extra data about the blog to be stored.
| Field Summary | |
|---|---|
static int |
COMMENT_AUTH_DEFAULT
The default comment authentication value. |
static int |
COMMENT_AUTH_OPTIONAL
Value for comment authentication which indicates that users need not register with the system nor do they have to provide an email address as part of a comment. |
static int |
COMMENT_AUTH_OPTIONAL_WITH_EMAIL
Value for comment authentication which indicates that users must either register and authenticate with the system or provide an email address as part of an anonymous comment before submitting a comment. |
static int |
COMMENT_AUTH_REQUIRED
Value for comment authentication which indicates that users must register and authenticate with the system before adding a comment. |
static int |
SORT_ACTIVITY
|
static int |
SORT_BLOGID
|
static int |
SORT_DISPLAYNAME
|
static int |
SORT_NAME
|
| Fields inherited from class com.jivesoftware.community.webservices.WSJiveObject |
|---|
id, objectType |
| Constructor Summary | |
|---|---|
WSBlog()
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
java.lang.Long[] |
getAllBlogPostIDs()
Returns all the blog post IDs for this blog. |
int |
getBlogPostCount()
Returns the number of blog posts on this blog, by default only includes blog posts where status = WSBlogPost.STATUS_PUBLISH
and publish date less than now(). |
int |
getCommentAuthenticationStrategy()
Returns the comment authentication strategy of this blog which may be any one of the following: COMMENT_AUTH_REQUIRED -- must register and login to comment
COMMENT_AUTH_OPTIONAL_WITH_EMAIL -- must either register and login or
provide an email address in the comment form. |
int |
getCommentCount()
Returns the total number of comments on this blog. |
java.util.Date |
getCreationDate()
Returns the date that this blog was created. |
java.lang.String |
getDescription()
Returns the description of the blog. |
java.lang.String |
getDisplayName()
Gets the display name of a blog. |
long |
getFirstPostID()
Returns the first blog post ID on this blog. |
long |
getLastPostID()
Returns the last blog post ID on this blog. |
java.util.Date |
getModificationDate()
Returns the date that the blog name, display name or description was last modified. |
java.lang.String |
getName()
Returns the name of the blog. |
java.lang.String |
getPingServices()
Returns a line break separated list of services that the user has chosen to ping. |
WSTagCount[] |
getPopularTags()
Returns the 20 most popular tags for a given blog in a Map where the key is the
name of tag and the value is the number of times the tag has been used in this blog. |
WSProperty[] |
getProperties()
Returns the properties associated with this blog. |
java.lang.Long[] |
getRecentBlogPostIDs()
Returns (at most) the ten most recent blog postsIDs on this blog. |
java.lang.Long[] |
getRecentCommentIDs()
Returns (at most) the ten most recent comment IDs on this blog. |
WSTagCount[] |
getTags()
Returns all tags for a given blog in a Map where the key is the
name of tag and the value is the number of times the tag has been used in this blog. |
int |
getTrackbackCount()
Returns the total number of trackbacks on this blog. |
int |
getUserCount()
Returns the number of users associated with this blog. |
java.lang.Long[] |
getUserIDs()
Return all the user IDs given permission to post to this blog. |
int |
hashCode()
|
boolean |
isCommentModerationEnabled()
Returns true if comment moderation is enabled for this blog, false if not. |
boolean |
isCommentNotificationEnabled()
Returns true if comment notification is enabled for this blog, false if not. |
boolean |
isContainerBlog()
Returns true if this blog is a container blog, false if not. |
boolean |
isFeedEnabled()
Returns true if feeds are enabled for this blog, false if not. |
boolean |
isFeedFullContent()
Returns true if the full blog post should be published in feeds, false to instead include an excerpt of the blog post. |
boolean |
isOverridePing()
Returns true if the blog has been configured to override the system settings, false to use the system blog ping settings. |
boolean |
isTrackbackModerationEnabled()
Returns true if trackback moderation is enabled for this blog, false if not. |
boolean |
isTrackbackNotificationEnabled()
Returns true if trackback notification is enabled for this blog, false if not. |
void |
setAllBlogPostIDs(java.lang.Long[] allBlogPostIDs)
Sets all the blog post IDs for this blog. |
void |
setBlogPostCount(int blogPostCount)
Sets the number of blog posts on this blog. |
void |
setCommentAuthenticationStrategy(int commentAuthenticationStrategy)
Set the comment authentication strategy of this blog which may be any one of the following: COMMENT_AUTH_REQUIRED -- must register and login to comment
COMMENT_AUTH_OPTIONAL_WITH_EMAIL -- must either register and login or
provide an email address in the comment form. |
void |
setCommentCount(int commentCount)
Sets the total number of comments on this blog. |
void |
setCommentModerationEnabled(boolean commentModerationEnabled)
Enables and disables comment moderation for this blog. |
void |
setCommentNotificationEnabled(boolean commentNotificationEnabled)
Enables and disables comment notification for this blog. |
void |
setContainerBlog(boolean containerBlog)
Enables and disables the container aspects of this blog. |
void |
setCreationDate(java.util.Date creationDate)
Sets the creation date of this blog. |
void |
setDescription(java.lang.String description)
Sets the description of the blog, max length of 255 characters. |
void |
setDisplayName(java.lang.String displayName)
Sets the display name of the blog that is used as the URI. |
void |
setFeedEnabled(boolean feedEnabled)
Enables and disables feeds for this blog. |
void |
setFeedFullContent(boolean feedFullContent)
Enables or disables the publishing of the full blog post in feeds. |
void |
setFirstPostID(long firstPostID)
Sets the first blog post ID on this blog. |
void |
setLastPostID(long lastPostID)
Sets the last blog post ID on this blog. |
void |
setModificationDate(java.util.Date modificationDate)
Sets the date this blog was last modified. |
void |
setName(java.lang.String name)
Sets the name of a blog. |
void |
setOverridePing(boolean overridePing)
Enables or disables the blog to override the ping settings in the system. |
void |
setPingServices(java.lang.String pingServices)
A line break separated list of services that the user has chosen to ping. |
void |
setPopularTags(WSTagCount[] popularTags)
Sets the 20 most popular tags for a given blog. |
void |
setProperties(WSProperty[] properties)
Set the properties associated with this blog. |
void |
setRecentBlogPostIDs(java.lang.Long[] recentBlogPostIDs)
Sets the the most recent blog post IDs on this blog |
void |
setRecentCommentIDs(java.lang.Long[] recentCommentIDs)
Sets the most recent comment IDs on this blog. |
void |
setTags(WSTagCount[] tags)
Sets the tags for a given blog. |
void |
setTrackbackCount(int trackbackCount)
Sets the total number of trackbacks on this blog. |
void |
setTrackbackModerationEnabled(boolean trackbackModerationEnabled)
Enables and disables trackback moderation for this blog. |
void |
setTrackbackNotificationEnabled(boolean trackbackNotificationEnabled)
Enables and disables trackback notification for this blog. |
void |
setUserCount(int userCount)
Sets the number of users associated with this blog. |
void |
setUserIDs(java.lang.Long[] userIDs)
Sets the user IDs given permission to post to this blog. |
java.lang.String |
toString()
|
| Methods inherited from class com.jivesoftware.community.webservices.WSJiveObject |
|---|
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 COMMENT_AUTH_DEFAULT
public static final int COMMENT_AUTH_REQUIRED
public static final int COMMENT_AUTH_OPTIONAL_WITH_EMAIL
public static final int COMMENT_AUTH_OPTIONAL
public static final int SORT_BLOGID
public static final int SORT_DISPLAYNAME
public static final int SORT_NAME
public static final int SORT_ACTIVITY
| Constructor Detail |
|---|
public WSBlog()
| Method Detail |
|---|
public java.lang.String getName()
public void setName(java.lang.String name)
name - the name of the blog.public java.lang.String getDisplayName()
public void setDisplayName(java.lang.String displayName)
http://jivesoftware.org/community/blogs/openfireteam
This method will throw an IllegalArgumentException if
com.jivesoftware.community.BlogManager#getBlog(String) method to find out if
a blog with the new name already exists and
com.jivesoftware.community.util.BlogUtils#isValidDisplayName(String)
to test a string for non alphanumeric characters.
displayName - the display namepublic java.util.Date getCreationDate()
public void setCreationDate(java.util.Date creationDate)
creationDate - the date this blog was created.public java.util.Date getModificationDate()
public void setModificationDate(java.util.Date modificationDate)
modificationDate - the date this blog name, display name or description was modified.public java.lang.Long[] getUserIDs()
public void setUserIDs(java.lang.Long[] userIDs)
userIDs - the user IDs given permission to post to this blog.public int getUserCount()
public void setUserCount(int userCount)
userCount - the number of users associated with this blog.public WSProperty[] getProperties()
public void setProperties(WSProperty[] properties)
properties - the properties associated with this blog.public long getFirstPostID()
public void setFirstPostID(long firstPostID)
firstPostID - the first blog post ID on this blog.public long getLastPostID()
public void setLastPostID(long lastPostID)
lastPostID - the last blog post ID on this blog.public int getBlogPostCount()
WSBlogPost.STATUS_PUBLISH
and publish date less than now().
public void setBlogPostCount(int blogPostCount)
blogPostCount - the number of blog posts on this blog.public java.lang.Long[] getRecentBlogPostIDs()
public void setRecentBlogPostIDs(java.lang.Long[] recentBlogPostIDs)
recentBlogPostIDs - the the most recent blog post IDs on this blogpublic WSTagCount[] getPopularTags()
Map where the key is the
name of tag and the value is the number of times the tag has been used in this blog.
Map where the key is the
name of tag and the value is the number of times the tag has been used in this blog.public void setPopularTags(WSTagCount[] popularTags)
popularTags - the 20 most popular tags for a given blog.public WSTagCount[] getTags()
Map where the key is the
name of tag and the value is the number of times the tag has been used in this blog.
Map where the key is the
name of tag and the value is the number of times the tag has been used in this blog.public void setTags(WSTagCount[] tags)
tags - the tags for a given blog.public int getCommentCount()
public void setCommentCount(int commentCount)
commentCount - the total number of comments on this blog.public int getTrackbackCount()
public void setTrackbackCount(int trackbackCount)
trackbackCount - the total number of trackbacks on this blog.public java.lang.Long[] getRecentCommentIDs()
public void setRecentCommentIDs(java.lang.Long[] recentCommentIDs)
recentCommentIDs - the most recent comment IDs on this blog.public boolean isTrackbackModerationEnabled()
public void setTrackbackModerationEnabled(boolean trackbackModerationEnabled)
trackbackModerationEnabled - true to enable trackback moderation, false to disable trackback moderation.public boolean isCommentModerationEnabled()
public void setCommentModerationEnabled(boolean commentModerationEnabled)
commentModerationEnabled - true to enable comment moderation, false to disable comment moderation.public int getCommentAuthenticationStrategy()
COMMENT_AUTH_REQUIRED -- must register and login to comment
COMMENT_AUTH_OPTIONAL_WITH_EMAIL -- must either register and login or
provide an email address in the comment form.
COMMENT_AUTH_OPTIONAL -- no registration / login or email address required.
COMMENT_AUTH_REQUIRED.
public void setCommentAuthenticationStrategy(int commentAuthenticationStrategy)
COMMENT_AUTH_REQUIRED -- must register and login to comment
COMMENT_AUTH_OPTIONAL_WITH_EMAIL -- must either register and login or
provide an email address in the comment form.
COMMENT_AUTH_OPTIONAL -- no registration / login or email address required.
commentAuthenticationStrategy - the comment authentication strategy for this blogpublic boolean isCommentNotificationEnabled()
public void setCommentNotificationEnabled(boolean commentNotificationEnabled)
commentNotificationEnabled - true to enable comment notification, false to disable
comment notification.public boolean isTrackbackNotificationEnabled()
public void setTrackbackNotificationEnabled(boolean trackbackNotificationEnabled)
trackbackNotificationEnabled - true to enable trackback notification, false to disable
trackback notification.public boolean isFeedEnabled()
public void setFeedEnabled(boolean feedEnabled)
feedEnabled - true to enable feeds on this blog, false to disable feeds.public boolean isFeedFullContent()
public void setFeedFullContent(boolean feedFullContent)
feedFullContent - true to enable full content on feeds in this blog, false
to show an excerpt.public boolean isOverridePing()
public void setOverridePing(boolean overridePing)
overridePing - true to override the ping settings in the system, false
to use the system settings.public java.lang.String getPingServices()
public void setPingServices(java.lang.String pingServices)
pingServices - a line break separated list of services that the user has chosen to pingpublic boolean isContainerBlog()
public void setContainerBlog(boolean containerBlog)
containerBlog - true to enable container blog functionality, false to disable
container blog functionality.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - the description of the blog.
java.lang.IllegalArgumentException - if description is null or greater than
255 characters in length.public java.lang.Long[] getAllBlogPostIDs()
public void setAllBlogPostIDs(java.lang.Long[] allBlogPostIDs)
allBlogPostIDs - all the blog post IDs for this blog.public boolean equals(java.lang.Object o)
equals in class WSJiveObjectpublic int hashCode()
hashCode in class WSJiveObjectpublic java.lang.String toString()
toString in class WSJiveObject
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||