Clearspace API (2.5.18) Core Javadocs

com.jivesoftware.community
Interface BlogManager

All Superinterfaces:
JiveManager

public interface BlogManager
extends JiveManager

Manages blogs, including viewing, creating, and deleting them.

If you wish to use a custom implementation, you must set the Jive property BlogManager.className with the name of your BlogManager class. Your class must have a public, no-argument constructor. The class must also create and return Blog object implementations as necessary. As of 2.1, blogs are no-longer represented as a system construct. Rather, they are now first-class content-types belonging to JiveContainers (similar to documents or threads). As a result, this API changed slightly to require creation of the blog with a container rather than a user.

See Also:
Blog

Method Summary
 void addBlog(Blog blog)
          Adds a blog to the database.
 Blog createBlog(JiveContainer container)
          Creates a new blog.
 Blog createBlog(User user)
          Creates a blog for a user.
 void deleteBlog(Blog blog)
          Permanently deletes a blog and all of the blog postings and comments associated with the blog.
 void deleteUserBlogs(User user)
          Delete all blog related content by the given user. is deleted, which means any posts, comments, trackbacks and tags this blog contains will be removed.
 Blog getBlog(JiveContainer container)
          Returns the blog for the given container.
 Blog getBlog(long blogID)
          Returns a blog by blog ID.
 Blog getBlog(String displayName)
          Returns a blog by blog display name.
 int getBlogCount()
          Returns the total number of blogs on this system.
 int getBlogCount(BlogResultFilter resultFilter)
          Returns the total number of blogs on this system that match the criteria specified by the ResultFilter.
 BlogPost getBlogPost(long blogPostID)
          Returns the BlogPost specified by the blog post 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 resultFilter)
          Returns the number of blog posts on the system.
 int getBlogPostCount(JiveContainer container)
          Returns the number of blog posts associated with this container.
 int getBlogPostCount(JiveContainer container, BlogPostResultFilter resultFilter)
          Returns the number of blog posts in all blogs associated with the container based on the specified ResultFilter.
 int getBlogPostCount(TagSet tagSet)
          Returns the number of blog posts associated with this tag set.
 int getBlogPostCount(TagSet tagSet, BlogPostResultFilter resultFilter)
          Returns the number of blog posts in all blogs associated with the tag set based on the specified ResultFilter.
 JiveIterator<BlogPost> getBlogPosts(BlogPostResultFilter resultFilter)
          Returns all the blog posts that match the criteria specified by the BlogPostResultFilter on the entire system.
 JiveIterator<BlogPost> getBlogPosts(JiveContainer container)
          Returns the blog posts associated with this container.
 JiveIterator<BlogPost> getBlogPosts(JiveContainer container, BlogPostResultFilter resultFilter)
          Returns the blog posts in all blogs associated with the container based on the specified ResultFilter.
 JiveIterator<BlogPost> getBlogPosts(TagSet tagSet)
          Returns the blog posts associated with this tag set based on the specified ResultFilter.
 JiveIterator<BlogPost> getBlogPosts(TagSet tagSet, BlogPostResultFilter resultFilter)
          Returns the blog posts associated with this container.
 JiveIterator<Blog> getBlogs(BlogResultFilter resultFilter)
          Returns all the blogs on this system that match the criteria specified by the ResultFilter.
 JiveIterator<Blog> getBlogsByDisplayName(String query, int startIndex, int endIndex, int numResults)
          Returns all the blogs on this system whose display name is LIKE the given query.
 int getCommentCount()
          Returns the number of comments on blog posts in the system.
 int getCommentCount(FeedbackResultFilter resultFilter)
          Returns the number of comments on blog posts that match the criteria specified by the FeedbackResultFilter in the entire system.
 JiveIterator<Comment> getComments(FeedbackResultFilter resultFilter)
          Returns all the comments on blog posts that match the criteria specified by the FeedbackResultFilter in the entire system.
 InterceptorManager getInterceptorManager()
          Returns an interceptor manager that can be used to manage interceptors for all the blogs in the system.
 String getPingServices()
          Returns a comma delimited list of available ping services for the system.
 JiveIterator<BlogPost> getPopularBlogPosts()
          Returns the top x blog posts according to blog post views, number of comments & time passed since the blog post was created.
 JiveIterator<Blog> getRecentBlogs()
          Returns (at most) the ten most recent blogs created on this system.
 Map<String,Integer> getTags()
          Returns all tags for blogs in the system 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 system.
 Map<String,Integer> getTags(BlogTagResultFilter resultFilter)
          Returns all tags for blogs in the system 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 system filtered by the BlogTagResultFilter.
 int getTrackbackCount()
          Returns the number of trackbacks on blog posts in the system.
 int getTrackbackCount(FeedbackResultFilter resultFilter)
          Returns the number of trackbacks on blog posts that match the criteria specified by the FeedbackResultFilter in the entire system.
 JiveIterator<Trackback> getTrackbacks(FeedbackResultFilter resultFilter)
          Returns all the trackbacks on blog posts that match the criteria specified by the FeedbackResultFilter in the entire system.
 boolean hasBlog(User user)
          Returns true if the given user has one or more blogs, false if the user does not have a blog.
 boolean hasBlogMappings(Blog blog)
          Indicates if the blog has legacy blog mappings supported prior to 2.1.
 boolean isAuthorized(long permissionType)
          Returns true if the handle on the object has the permission specified.
 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.
 void mapBlogToContainer(JiveContainer container, Blog blog)
          Associates the specified Blog with a container.
 void mergeBlogs(Blog sourceBlog, Blog destinationBlog)
          Merges the content in the sourceBlog into the destinationBlog and deletes the sourceBlog.
 void moveBlog(Blog blog, JiveContainer destination)
          Moves a blog from it's current container to a new container.
 void moveBlogPost(BlogPost post, Blog blog)
          Moves a blogpost from its current blog to another blog.
 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(String pingServices)
          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 unmapContainerBlog(JiveContainer container, Blog blog)
          Disassociates the specified Blog from this containter.
 
Methods inherited from interface com.jivesoftware.community.JiveManager
destroy
 

Method Detail

isBlogsEnabled

boolean isBlogsEnabled()
Returns true if the blogs feature is turned on. When blogs are disabled, other methods serve as no-ops.

Returns:
true if the blogs are enabled

setBlogsEnabled

void setBlogsEnabled(boolean blogsEnabled)
                     throws UnauthorizedException
Enables or disables the blogs feature. When blogs are disabled, other methods serve as no-ops.

Parameters:
blogsEnabled - true to enable the blogs feature, false to disable
Throws:
UnauthorizedException - if not a system administrator

isCommentsEnabled

boolean isCommentsEnabled()
Returns true if the comments feature is turned on. When comments are disabled on the system, all individual blog comment settings are disabled as well.

Returns:
true if the comments are enabled

setCommentsEnabled

void setCommentsEnabled(boolean commentsEnabled)
                        throws UnauthorizedException
Enables or disables the comments feature system wide.

Parameters:
commentsEnabled - true to enable the comments feature, false to disable
Throws:
UnauthorizedException - if not a system administrator

isTrackbacksEnabled

boolean isTrackbacksEnabled()
Returns true if the trackbacks feature is turned on. When trackbacks are disabled on the system, all individual blog trackback settings are disabled as well.

Returns:
true if the comments are enabled

setTrackbacksEnabled

void setTrackbacksEnabled(boolean trackbacksEnabled)
                          throws UnauthorizedException
Enables or disables the trackbacks feature system wide.

Parameters:
trackbacksEnabled - true to enable the trackback feature, false to disable
Throws:
UnauthorizedException - if not a system administrator

isPingsEnabled

boolean isPingsEnabled()
Returns true if the pings feature is turned on. When pings are disabled on the system, all individual blog ping settings are disabled as well.

Returns:
true if pings are enabled

setPingsEnabled

void setPingsEnabled(boolean pingsEnabled)
                     throws UnauthorizedException
Enables or disables the pings feature system wide.

Parameters:
pingsEnabled - true to enable the ping feature, false to disable
Throws:
UnauthorizedException - if not a system administrator

isPingsOverrideEnabled

boolean isPingsOverrideEnabled()
Returns true if the system has been configured to allow users to override the ping URIs configured for the system.

Returns:
true if users can provide their own ping URI's are enabled

setPingsOverrideEnabled

void setPingsOverrideEnabled(boolean pingsOverrideEnabled)
                             throws UnauthorizedException
Configures the system to allow users to override the ping URIs configured for all blogs.

Parameters:
pingsOverrideEnabled - true to enable users to override the system settings, false to use system settings.
Throws:
UnauthorizedException - if not a system administrator

getPingServices

String getPingServices()
Returns a comma delimited list of available ping services for the system.

Returns:
a comma delimited list of available ping services for the system.

setPingServices

void setPingServices(String pingServices)
                     throws UnauthorizedException
Sets the comma delimited list of available ping services for the system.

Parameters:
pingServices - comma delimited list of available ping services for the system.
Throws:
UnauthorizedException - if not a system administrator

createBlog

Blog createBlog(JiveContainer container)
                throws UnauthorizedException
Creates a new blog. After an blog is created and the appropriate values are set, it must be added to the database by calling the addBlog(com.jivesoftware.community.Blog) method.

Parameters:
container - The container to which the blog will belong
Returns:
a The new blog
Throws:
UnauthorizedException - if not allowed to create a blog, not a system administrator or not a community administrator

createBlog

Blog createBlog(User user)
                throws UnauthorizedException
Creates a blog for a user. This is the equivalent of passing the user's container to the createBlog(JiveContainer) method on this manager.

Parameters:
user - to create the blog for
Returns:
the created blog
Throws:
UnauthorizedException - if the currently authenticated user isn't authorized to create a user blog

addBlog

void addBlog(Blog blog)
             throws UnauthorizedException
Adds a blog to the database. This method must be called after the blog is created and all appropriate values on it have been set (which means that at the very least, the blog must have a name and a unique display name). After this method is called, the blog will be immediately viewable to others.

Parameters:
blog - the blog to add to the database.
Throws:
UnauthorizedException - if not allowed to create a blog, not a system administrator or not a community administrator
IllegalStateException - if the blog has already been added.

deleteBlog

void deleteBlog(Blog blog)
                throws UnauthorizedException
Permanently deletes a blog and all of the blog postings and comments associated with the blog.

Parameters:
blog - the blog to delete.
Throws:
UnauthorizedException - if not a system administrator or not a community administrator

deleteUserBlogs

void deleteUserBlogs(User user)
                     throws UnauthorizedException
Delete all blog related content by the given user. is deleted, which means any posts, comments, trackbacks and tags this blog contains will be removed.

If the user is the only user associated with a blog, that blog is deleted, which means any posts, comments, trackbacks and tags that blog contains will be removed. If the user is associated with a multi-user blog, only the posts this user has created will be removed.

Parameters:
user - the author of the blog content being deleted
Throws:
UnauthorizedException - if the currently authenticated user isn't authorized to delete the given user's blogs

getBlog

Blog getBlog(long blogID)
             throws BlogNotFoundException,
                    UnauthorizedException
Returns a blog by blog ID.

Parameters:
blogID - the ID of the blog to return.
Returns:
the blog.
Throws:
BlogNotFoundException - if the blog could not be loaded or does not exist.
UnauthorizedException - if not allowed to get the blog.

getBlog

Blog getBlog(String displayName)
             throws BlogNotFoundException,
                    UnauthorizedException
Returns a blog by blog display name.

Parameters:
displayName - the displayName of the blog to return.
Returns:
the blog.
Throws:
BlogNotFoundException - if the blog could not be loaded or does not exist.
UnauthorizedException - if not allowed to get the blog.

getBlog

Blog getBlog(JiveContainer container)
Returns the blog for the given container. If the container has no blog, null is returned.

Parameters:
container - the container having a blog
Returns:
the container blog, or null if there is no container blog
Since:
2.1

getBlogCount

int getBlogCount()
Returns the total number of blogs on this system.

Returns:
the total number of blogs on this system.

getBlogCount

int getBlogCount(BlogResultFilter resultFilter)
Returns the total number of blogs on this system that match the criteria specified by the ResultFilter.

Parameters:
resultFilter - the besult filter holding the criteria to filter the blog count
Returns:
the total number of blogs on this system that match the criteria specified by the ResultFilter.

getBlogs

JiveIterator<Blog> getBlogs(BlogResultFilter resultFilter)
Returns all the blogs on this system that match the criteria specified by the ResultFilter.

Parameters:
resultFilter - a ResultFilter object to perform filtering and sorting with.
Returns:
all the blogs on this system that match the ResultFilter.

hasBlog

boolean hasBlog(User user)
Returns true if the given user has one or more blogs, false if the user does not have a blog.

Parameters:
user - the user to check to see if they have a blog
Returns:
true if the given user has one or more blogs, false if the user does not have a blog.

getBlogsByDisplayName

JiveIterator<Blog> getBlogsByDisplayName(String query,
                                         int startIndex,
                                         int endIndex,
                                         int numResults)
Returns all the blogs on this system whose display name is LIKE the given query.

NOTE: This method is designed only to be used only by administrators for administration purposes and will throw an UnauthorizedException if the current user is not a system administrator.

Parameters:
query - a string to search blog display names by
Returns:
all the blogs on this system whose display name is LIKE the given query.

getRecentBlogs

JiveIterator<Blog> getRecentBlogs()
Returns (at most) the ten most recent blogs created on this system.

Returns:
(atmost) the ten most recent blogs created on this system.

getTags

Map<String,Integer> getTags()
Returns all tags for blogs in the system 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 system.

Returns:
all tags for blogs in the system 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 system.

getTags

Map<String,Integer> getTags(BlogTagResultFilter resultFilter)
Returns all tags for blogs in the system 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 system filtered by the BlogTagResultFilter.

Parameters:
resultFilter - the filter to use to restrict tag results
Returns:
all tags for blogs in the system 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 system filtered by the BlogTagResultFilter.

getBlogPost

BlogPost getBlogPost(long blogPostID)
                     throws BlogPostNotFoundException,
                            UnauthorizedException
Returns the BlogPost specified by the blog post ID.

Parameters:
blogPostID - the ID of the blog post to return.
Returns:
the blog post.
Throws:
BlogPostNotFoundException - if the blog post could not be loaded or does not exist.
UnauthorizedException - if not allowed to get the blog post.

getBlogPostCount

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().

Returns:
the number of blog posts on the system.

getBlogPostCount

int getBlogPostCount(BlogPostResultFilter resultFilter)
Returns the number of blog posts on the system. The default blog post result filter (BlogPostResultFilter.createDefaultFilter()) only includes blog posts where status = BlogPost#STATUS_PUBLISH and publish date less than now().

Parameters:
resultFilter - the besult filter holding the criteria to filter the blog posts
Returns:
the number of blog posts on the system that match the criteria specified by the BlogPostResultFilter

getBlogPostCount

int getBlogPostCount(JiveContainer container)
Returns the number of blog posts associated with this container. The default blog post result filter (BlogPostResultFilter.createDefaultFilter()) only includes blog posts where status = BlogPost#STATUS_PUBLISH and publish date less than now().

Parameters:
container - The container to get a blog post count for.
Returns:
returns the number of blog posts associated with this container.

getBlogPostCount

int getBlogPostCount(JiveContainer container,
                     BlogPostResultFilter resultFilter)
Returns the number of blog posts in all blogs associated with the container based on the specified ResultFilter. The default blog post result filter (BlogPostResultFilter.createDefaultFilter()) only includes blog posts where status = BlogPost#STATUS_PUBLISH and publish date less than now().

Parameters:
container - The container to get a blog post count for.
resultFilter - a resultFilter to limit the query on.
Returns:
the number of blog posts in the container based on the filter.

getBlogPostCount

int getBlogPostCount(TagSet tagSet)
Returns the number of blog posts associated with this tag set. The default blog post result filter (BlogPostResultFilter.createDefaultFilter()) only includes blog posts where status = BlogPost#STATUS_PUBLISH and publish date less than now().

Parameters:
tagSet - The tagSet to get a blog post count for.
Returns:
returns the number of blog posts associated with this tagSet.

getBlogPostCount

int getBlogPostCount(TagSet tagSet,
                     BlogPostResultFilter resultFilter)
Returns the number of blog posts in all blogs associated with the tag set based on the specified ResultFilter. The default blog post result filter (BlogPostResultFilter.createDefaultFilter()) only includes blog posts where status = BlogPost#STATUS_PUBLISH and publish date less than now().

Parameters:
tagSet - The tagSet to get a blog post count for.
resultFilter - a resultFilter to limit the query on.
Returns:
returns the number of blog posts associated with this tagSet.

getBlogPosts

JiveIterator<BlogPost> getBlogPosts(BlogPostResultFilter resultFilter)
Returns all the blog posts that match the criteria specified by the BlogPostResultFilter on the entire system.

Parameters:
resultFilter - a BlogPostResultFilter object to perform filtering and sorting with.
Returns:
all the blog posts that match the ResultFilter.

getBlogPosts

JiveIterator<BlogPost> getBlogPosts(JiveContainer container)
Returns the blog posts associated with this container. The default blog post result filter (BlogPostResultFilter.createDefaultFilter()) only includes blog posts where status = BlogPost#STATUS_PUBLISH and publish date less than now().

Parameters:
container - The container to get the blog posts for.
Returns:
all the blog posts associated with the container

getBlogPosts

JiveIterator<BlogPost> getBlogPosts(JiveContainer container,
                                    BlogPostResultFilter resultFilter)
Returns the blog posts in all blogs associated with the container based on the specified ResultFilter. The default blog post result filter (BlogPostResultFilter.createDefaultFilter()) only includes blog posts where status = BlogPost#STATUS_PUBLISH and publish date less than now().

Parameters:
container - The container to get a blog posts for.
resultFilter - a resultFilter to limit the query on.
Returns:
all the blog posts associated with the container that match the ResultFilter.

getBlogPosts

JiveIterator<BlogPost> getBlogPosts(TagSet tagSet)
Returns the blog posts associated with this tag set based on the specified ResultFilter. The default blog post result filter (BlogPostResultFilter.createDefaultFilter()) only includes blog posts where status = BlogPost#STATUS_PUBLISH and publish date less than now().

Parameters:
tagSet - The tag set to get the blog posts for.
Returns:
all the blog posts associated with the tag set

getBlogPosts

JiveIterator<BlogPost> getBlogPosts(TagSet tagSet,
                                    BlogPostResultFilter resultFilter)
Returns the blog posts associated with this container. The default blog post result filter (BlogPostResultFilter.createDefaultFilter()) only includes blog posts where status = BlogPost#STATUS_PUBLISH and publish date less than now().

Parameters:
tagSet - The tag set to get the blog posts for.
resultFilter - a resultFilter to limit the query on.
Returns:
all the blog posts associated with the tag set that match the ResultFilter.

getCommentCount

int getCommentCount()
Returns the number of comments on blog posts in the system.

Returns:
the number of comments on blog posts in the system.

getCommentCount

int getCommentCount(FeedbackResultFilter resultFilter)
Returns the number of comments on blog posts that match the criteria specified by the FeedbackResultFilter in the entire system.

Parameters:
resultFilter - a FeedbackResultFilter object to perform filtering and sorting with.
Returns:
the number of comments on blog posts that match the criteria specified by the FeedbackResultFilter in the entire system.

getComments

JiveIterator<Comment> getComments(FeedbackResultFilter resultFilter)
Returns all the comments on blog posts that match the criteria specified by the FeedbackResultFilter in the entire system.

Parameters:
resultFilter - a FeedbackResultFilter object to perform filtering and sorting with.
Returns:
all the comments that match the ResultFilter.

getTrackbackCount

int getTrackbackCount()
Returns the number of trackbacks on blog posts in the system.

Returns:
the number of trackbacks on blog posts in the system.

getTrackbackCount

int getTrackbackCount(FeedbackResultFilter resultFilter)
Returns the number of trackbacks on blog posts that match the criteria specified by the FeedbackResultFilter in the entire system.

Parameters:
resultFilter - a FeedbackResultFilter object to perform filtering and sorting with.
Returns:
the number of trackbacks on blog posts that match the criteria specified by the FeedbackResultFilter in the entire system.

getTrackbacks

JiveIterator<Trackback> getTrackbacks(FeedbackResultFilter resultFilter)
Returns all the trackbacks on blog posts that match the criteria specified by the FeedbackResultFilter in the entire system.

Parameters:
resultFilter - a FeedbackResultFilter object to perform filtering and sorting with.
Returns:
all the trackbacks that match the ResultFilter.

getPopularBlogPosts

JiveIterator<BlogPost> getPopularBlogPosts()
Returns the top x blog posts according to blog post views, number of comments & time passed since the blog post was created. The algorithm is as follows:

Top x of ((blog post views) * (number of blog post comments + 2)) * 1/(1 + number of days since creation date)

The number of blog posts to return is determined by the property "popularBlogPosts.number", defaulting to 5 if the property is not specified. Popular blog posts are only calculated once every 15 minutes.

Returns:
an Iterable of the most popular blog posts.

mapBlogToContainer

void mapBlogToContainer(JiveContainer container,
                        Blog blog)
Associates the specified Blog with a container. All posts within the blog will be available for viewing through the Blog.getBlogPosts(BlogPostResultFilter) method. Blogs are not logically contained by a container the way threads and documents are. Instead, blogs are autonomous entities that can be associated with one or more communities.

Parameters:
container - The container to map a blog too.
blog - the Blog to associate with this container.

unmapContainerBlog

void unmapContainerBlog(JiveContainer container,
                        Blog blog)
Disassociates the specified Blog from this containter.

Parameters:
container - The container to dissociate a blog from.
blog - the Blog to remove.

isAuthorized

boolean isAuthorized(long permissionType)
Returns true if the handle on the object has the permission specified. A list of possible permissions can be found in the Permissions class. Certain methods of this class are restricted to certain permissions as specified in the method comments.

Parameters:
permissionType - permissionType a permission type.
Returns:
true if the handle on the object has the specified permission.
See Also:
Permissions

getInterceptorManager

InterceptorManager getInterceptorManager()
                                         throws UnauthorizedException
Returns an interceptor manager that can be used to manage interceptors for all the blogs in the system.

Returns:
a InterceptorManager to manage interceptors.
Throws:
UnauthorizedException - if does not have admin permissions.

moveBlog

void moveBlog(Blog blog,
              JiveContainer destination)
Moves a blog from it's current container to a new container.

Parameters:
blog - The blog to move - the blog should already be assicoated with a container, if not this method will fail.
destination - The jive container to move the blog to. If the destination container already has a blog, this method will fail.

mergeBlogs

void mergeBlogs(Blog sourceBlog,
                Blog destinationBlog)
                throws UnauthorizedException,
                       RejectedException
Merges the content in the sourceBlog into the destinationBlog and deletes the sourceBlog. WARNING: All attributes of the sourceBlog will be lost. This includes fields such as name and descrition as well as attributes and concfiguration details such as permissions, comment authentication, comment moderation, trackback authentication, trackback moderation, and ping services. Any properties with matching keys are not copied to the destinationBlog

Parameters:
sourceBlog - the blog to have it's content merged
destinationBlog - the blog that will receive the content
Throws:
UnauthorizedException - if user does not have admin permission
RejectedException - if there is a problem copying trackbacks, posts, or other content from the sourceBlog to the destinationBlog

moveBlogPost

void moveBlogPost(BlogPost post,
                  Blog blog)
                  throws RejectedException,
                         UnauthorizedException
Moves a blogpost from its current blog to another blog.

Parameters:
post - The blogpost being moved.
blog - The destination blog for the post being moved.
Throws:
UnauthorizedException - if user does not have permission to manage either the source or destination blog
RejectedException - if there is a problem moving the post

hasBlogMappings

boolean hasBlogMappings(Blog blog)
Indicates if the blog has legacy blog mappings supported prior to 2.1.

Parameters:
blog - to find legacy mappings for
Returns:
true iff the blog has legacy mappings, false otherwise.
Since:
2.1

Clearspace Project Page

Copyright © 1999-2007 Jive Software.