|
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 | |||||||||
public interface BlogService
A web service interface for managing blogs.
| Method Summary | |
|---|---|
void |
addAttachmentToBlogPost(long blogPostID,
java.lang.String name,
java.lang.String contentType,
byte[] source)
Adds an attachment to the blog post with the specified ID. |
void |
addImageToBlogPost(long blogPostID,
java.lang.String name,
java.lang.String contentType,
byte[] source)
Adds an image to the blog post with the specified ID. |
WSBlog |
createBlog(long userID,
java.lang.String blogName,
java.lang.String displayName)
Creates a new blog. |
WSBlogPost |
createBlogPost(java.lang.String subject,
java.lang.String body,
long blogID,
long userID)
Creates a new blog post. |
void |
deleteBlog(long blogID)
Permanently deletes a blog and all of the blog postings and comments associated with the blog. |
void |
deleteBlogPost(long blogPostID)
Permanently deletes a blog post and all of the comments associated with the it. |
WSAttachment[] |
getAttachmentsByBlogPostID(long blogPostID)
Returns an array of attachments that are attached to the specified blog post. |
WSBlog |
getBlog(long blogID)
Returns a blog by blog ID. |
WSBlog |
getBlog(java.lang.String blogName)
Returns a blog by blog blogName. |
int |
getBlogCount()
Returns the total number of blogs on this system. |
WSBlog[] |
getBlogCount(WSBlogResultFilter filter)
Returns the total number of blogs on this system that match the criteria specified by the ResultFilter. |
int |
getBlogCountForUser(long userID)
Returns the count of all blogs which are associated with the given user. |
WSBlogPost |
getBlogPost(long blogPostID)
Returns a blog by blog ID. |
int |
getBlogPostCount()
Returns the number of blog posts on the system, by default only includes blog posts where status = WSBlogPost.STATUS_PUBLISH and publish date less than now(). |
int |
getBlogPostCount(WSBlogPostResultFilter filter)
Returns the number of blog posts on the system. |
WSBlogPost[] |
getBlogPosts(WSBlogPostResultFilter filter)
Returns all the blog posts that match the criteria specified by the BlogPostResultFilter on the entire system. |
WSBlog[] |
getBlogsByDisplayName(java.lang.String query,
int startIndex,
int endIndex,
int numResults)
Returns all the blogs on this system whose display name is LIKE the given query. |
WSBlog[] |
getBlogsForUser(long userID)
Returns all blogs which are associated with the given user. |
int |
getCommentCount()
Returns the number of comments on blog posts in the system. |
int |
getCommentCount(WSFeedbackResultFilter filter)
Returns the number of comments on blog posts that match the criteria specified by the FeedbackResultFilter in the entire system. |
WSComment[] |
getComments(WSFeedbackResultFilter filter)
Returns all the comments on blog posts that match the criteria specified by the FeedbackResultFilter in the entire system. |
WSImage[] |
getImagesByBlogPostID(long blogPostID)
Returns an array of images that are attached to the specified blog post. |
java.lang.String |
getPingServices()
Returns a comma delimited list of available ping services for the system. |
WSBlog[] |
getRecentBlogs()
Returns (at most) the ten most recent blogs created on this system. |
WSTagCount[] |
getTags()
Returns all tags for blogs in the system. |
WSTagCount[] |
getTags(WSBlogTagResultFilter filter)
Returns all tags for blogs in the system filtered by the BlogTagResultFilter. |
boolean |
isBlogsEnabled()
Returns true if the blogs feature is turned on. |
boolean |
isCommentsEnabled()
Returns true if the comments feature is turned on. |
boolean |
isPingsEnabled()
Returns true if the pings feature is turned on. |
boolean |
isPingsOverrideEnabled()
Returns true if the system has been configured to allow users to override the ping URIs configured for the system. |
boolean |
isTrackbacksEnabled()
Returns true if the trackbacks feature is turned on. |
WSBlogPost |
publishBlogPost(java.lang.String subject,
java.lang.String body,
long blogID,
long userID)
|
void |
setBlogsEnabled(boolean blogsEnabled)
Enables or disables the blogs feature. |
void |
setCommentsEnabled(boolean commentsEnabled)
Enables or disables the comments feature system wide. |
void |
setPingsEnabled(boolean pingsEnabled)
Enables or disables the pings feature system wide. |
void |
setPingServices(java.lang.String services)
Sets the comma delimited list of available ping services for the system. |
void |
setPingsOverrideEnabled(boolean pingsOverrideEnabled)
Configures the system to allow users to override the ping URIs configured for all blogs. |
void |
setTrackbacksEnabled(boolean trackbacksEnabled)
Enables or disables the trackbacks feature system wide. |
void |
updateBlogPost(WSBlogPost blogPost)
|
boolean |
userHasBlogs(long userID)
Returns true if the given user has one or more blogs, false if the user does not have a blog. |
| Method Detail |
|---|
boolean isBlogsEnabled()
void setBlogsEnabled(boolean blogsEnabled)
blogsEnabled - true to enable the blogs feature, false to disableboolean isCommentsEnabled()
void setCommentsEnabled(boolean commentsEnabled)
commentsEnabled - true to enable the comments feature, false to disableboolean isTrackbacksEnabled()
void setTrackbacksEnabled(boolean trackbacksEnabled)
trackbacksEnabled - true to enable the trackback feature, false to disableboolean isPingsEnabled()
void setPingsEnabled(boolean pingsEnabled)
pingsEnabled - true to enable the ping feature, false to disableboolean isPingsOverrideEnabled()
void setPingsOverrideEnabled(boolean pingsOverrideEnabled)
pingsOverrideEnabled - true to enable users to override the system settings, false to use system settings.java.lang.String getPingServices()
void setPingServices(java.lang.String services)
services - comma delimited list of available ping services for the system.
WSBlog createBlog(long userID,
java.lang.String blogName,
java.lang.String displayName)
throws UserNotFoundException
userID - the user ID creating the blog.blogName - the name of the blog.displayName - the display name of the blog.
UserNotFoundException - if the userID does not exist.
WSBlogPost createBlogPost(java.lang.String subject,
java.lang.String body,
long blogID,
long userID)
throws UserNotFoundException,
com.jivesoftware.community.BlogNotFoundException,
RejectedException
subject - the subject of the blog post.body - the body content of the blog post.blogID - the id of the blog to post to.userID - the user ID creating the blog post.
UserNotFoundException - if the userID does not exist.
BlogNotFoundException - if the blogID does not exist.
RejectedException - if the post submission is rejected.
WSBlogPost publishBlogPost(java.lang.String subject,
java.lang.String body,
long blogID,
long userID)
throws UserNotFoundException,
com.jivesoftware.community.BlogNotFoundException,
RejectedException
UserNotFoundException
com.jivesoftware.community.BlogNotFoundException
RejectedException
void updateBlogPost(WSBlogPost blogPost)
throws com.jivesoftware.community.BlogPostNotFoundException
com.jivesoftware.community.BlogPostNotFoundException
void deleteBlog(long blogID)
throws com.jivesoftware.community.BlogNotFoundException
blogID - the ID of the blog to delete.
com.jivesoftware.community.BlogNotFoundException - if the blog could not be loaded or does not exist.
void deleteBlogPost(long blogPostID)
throws com.jivesoftware.community.BlogPostNotFoundException
blogPostID - the ID of the blog post to delete.
com.jivesoftware.community.BlogPostNotFoundException - if the blog postcould not be loaded or does not
exist.
WSBlog getBlog(long blogID)
throws com.jivesoftware.community.BlogNotFoundException
blogID - the ID of the blog to return.
com.jivesoftware.community.BlogNotFoundException - if the blog could not be loaded or does not exist.
WSBlog getBlog(java.lang.String blogName)
throws com.jivesoftware.community.BlogNotFoundException
blogName - the displayName of the blog to return.
com.jivesoftware.community.BlogNotFoundException - if the blog could not be loaded or does not exist.
WSBlogPost getBlogPost(long blogPostID)
throws com.jivesoftware.community.BlogPostNotFoundException
blogPostID - the ID of the blog to return.
com.jivesoftware.community.BlogPostNotFoundException - if the blog post could not be loaded or does not
exist.int getBlogCount()
WSBlog[] getRecentBlogs()
int getBlogPostCount()
WSBlogPost.STATUS_PUBLISH and publish date less than now().
WSTagCount[] getTags()
WSTagCount[] getTags(WSBlogTagResultFilter filter)
filter - the filter to use to restrict tag results
int getCommentCount()
boolean userHasBlogs(long userID)
throws UserNotFoundException
userID - the user to check to see if they have a blog
UserNotFoundException - If the user with the specified id does not exist.
WSBlog[] getBlogsForUser(long userID)
throws UserNotFoundException
userID - the ID of the user to find blogs for
UserNotFoundException - If the user with the specified id does not exist.
int getBlogCountForUser(long userID)
throws UserNotFoundException
userID - the ID of the user to find blogs for
UserNotFoundException - If the user with the specified id does not exist.
WSBlog[] getBlogsByDisplayName(java.lang.String query,
int startIndex,
int endIndex,
int numResults)
query - a string to search blog display names bystartIndex - Starting index to grab blogs.endIndex - Ending index to grab blogs.numResults - Total number of results to grab.
WSBlog[] getBlogCount(WSBlogResultFilter filter)
filter - the besult filter holding the criteria to filter the blog count
int getBlogPostCount(WSBlogPostResultFilter filter)
com.jivesoftware.community.BlogPostResultFilter#createDefaultFilter) only includes blog posts where status =
com.jivesoftware.community.BlogPost#STATUS_PUBLISH and publish date less than now().
filter - the besult filter holding the criteria to filter the blogposts
WSBlogPost[] getBlogPosts(WSBlogPostResultFilter filter)
filter - a BlogPostResultFilter object to perform filtering and sorting with.
int getCommentCount(WSFeedbackResultFilter filter)
filter - a FeedbackResultFilter object to perform filtering and sorting with.
WSComment[] getComments(WSFeedbackResultFilter filter)
filter - a FeedbackResultFilter object to perform filtering and sorting with.
WSAttachment[] getAttachmentsByBlogPostID(long blogPostID)
throws com.jivesoftware.community.BlogPostNotFoundException
blogPostID - The ID of the blog post to acquire attachments for.
com.jivesoftware.community.BlogPostNotFoundException - Thrown if the specified blog post does not exist.
void addAttachmentToBlogPost(long blogPostID,
java.lang.String name,
java.lang.String contentType,
byte[] source)
throws AttachmentException,
com.jivesoftware.community.BlogPostNotFoundException,
java.io.IOException
blogPostID - The ID of the blog post.name - The name of the attachment.contentType - the content type of the attachment.source - The content for the attachment.
java.io.IOException - Thrown if there are issues adding the blog post.
AttachmentException - Thrown if the attachment cannot be created.
com.jivesoftware.community.BlogPostNotFoundException - Thrown if the specified blog post does not exist.
WSImage[] getImagesByBlogPostID(long blogPostID)
throws com.jivesoftware.community.BlogPostNotFoundException
blogPostID - The ID of the blog post to acquire images for.
com.jivesoftware.community.BlogPostNotFoundException - Thrown if the specified blog post does not exist.
void addImageToBlogPost(long blogPostID,
java.lang.String name,
java.lang.String contentType,
byte[] source)
throws com.jivesoftware.community.ImageException,
com.jivesoftware.community.BlogPostNotFoundException,
java.io.IOException
blogPostID - The ID of the blog post.name - The name of the image.contentType - the content type of the image.source - The content for the image.
java.io.IOException - Thrown if there are issues adding the blog post.
com.jivesoftware.community.ImageException - Thrown if the image cannot be created.
com.jivesoftware.community.BlogPostNotFoundException - Thrown if the specified blog post does not exist.
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||