|
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 | |||||||||
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. |
Blog |
createBlog(long userID,
java.lang.String blogName,
java.lang.String displayName)
Creates a new blog. |
BlogPost |
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. |
Attachment[] |
getAttachmentsByBlogPostID(long blogPostID)
Returns an array of attachments that are attached to the specified blog post. |
Blog |
getBlog(long blogID)
Returns a blog by blog ID. |
Blog |
getBlog(java.lang.String name)
Returns a blog by blog name. |
int |
getBlogCount()
Returns the total number of blogs on this system. |
Blog[] |
getBlogCount(BlogResultFilter 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. |
BlogPost |
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 = BlogPost.STATUS_PUBLISH
and publish date less than now(). |
int |
getBlogPostCount(BlogPostResultFilter filter)
Returns the number of blog posts on the system. |
BlogPost[] |
getBlogPosts(BlogPostResultFilter filter)
Returns all the blog posts that match the criteria specified by the BlogPostResultFilter on the entire system. |
Blog[] |
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. |
Blog[] |
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(FeedbackResultFilter filter)
Returns the number of comments on blog posts that match the criteria specified by the FeedbackResultFilter in the entire system. |
Comment[] |
getComments(FeedbackResultFilter filter)
Returns all the comments on blog posts that match the criteria specified by the FeedbackResultFilter in the entire system. |
Image[] |
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. |
Blog[] |
getRecentBlogs()
Returns (at most) the ten most recent blogs created on this system. |
TagCount[] |
getTags()
Returns all tags for blogs in the system. |
TagCount[] |
getTags(BlogTagResultFilter 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. |
BlogPost |
publishBlogPost(java.lang.String subject,
java.lang.String body,
long blogID,
long userID)
|
void |
setBlogsEnabled(boolean enabled)
Enables or disables the blogs feature. |
void |
setCommentsEnabled(boolean enabled)
Enables or disables the comments feature system wide. |
void |
setPingsEnabled(boolean enabled)
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 enabled)
Configures the system to allow users to override the ping URIs configured for all blogs. |
void |
setTrackbacksEnabled(boolean enabled)
Enables or disables the trackbacks feature system wide. |
void |
updateBlogPost(BlogPost 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 enabled)
enabled - true to enable the blogs feature, false to disableboolean isCommentsEnabled()
void setCommentsEnabled(boolean enabled)
enabled - true to enable the comments feature, false to disableboolean isTrackbacksEnabled()
void setTrackbacksEnabled(boolean enabled)
enabled - true to enable the trackback feature, false to disableboolean isPingsEnabled()
void setPingsEnabled(boolean enabled)
enabled - true to enable the ping feature, false to disableboolean isPingsOverrideEnabled()
void setPingsOverrideEnabled(boolean enabled)
enabled - 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.
Blog 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.
BlogPost 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.
com.jivesoftware.community.BlogNotFoundException - if the blogID does not exist.
RejectedException - if the post submission is rejected.
BlogPost 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(BlogPost 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.
Blog 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.
Blog getBlog(java.lang.String name)
throws com.jivesoftware.community.BlogNotFoundException
name - the displayName of the blog to return.
com.jivesoftware.community.BlogNotFoundException - if the blog could not be loaded
or does not exist.
BlogPost 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()
Blog[] getRecentBlogs()
int getBlogPostCount()
BlogPost.STATUS_PUBLISH
and publish date less than now().
TagCount[] getTags()
TagCount[] getTags(BlogTagResultFilter 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.
Blog[] 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.
Blog[] 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.
Blog[] getBlogCount(BlogResultFilter filter)
filter - the besult filter holding the criteria to filter the blog count
int getBlogPostCount(BlogPostResultFilter filter)
BlogPostResultFilter.createDefaultFilter())
only includes blog posts where status =
BlogPost.STATUS_PUBLISH and publish date less than now().
filter - the besult filter holding the criteria to filter the blogposts
BlogPost[] getBlogPosts(BlogPostResultFilter filter)
filter - a BlogPostResultFilter object to perform filtering and sorting with.
int getCommentCount(FeedbackResultFilter filter)
filter - a FeedbackResultFilter object to perform filtering and sorting with.
Comment[] getComments(FeedbackResultFilter filter)
filter - a FeedbackResultFilter object to perform filtering and sorting with.
Attachment[] 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.
Image[] 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 | |||||||||