|
Clearspace API (2.5.29) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ActivityManager
This manager provides methods to retrieve recent activities and popular threads, documents and blog posts.
While this manager is similar in purpose to the RecentContentManager there is one main difference -
this manager is activity based which means that it will return items based on their activity such that a
single piece of content can be returned multiple times.
Implementation note: The methods in this class will only return up to 500 items (controlled via the activity.activityMapSize jive property).
| Method Summary | |
|---|---|
void |
addActivity(JiveObject object,
JiveObject parent,
User user,
Activity.Type activityType)
Adds a new activity to the ActivityManager |
void |
deleteUserActivities(User user)
Deletes all activities for a given user. |
JiveIterator<BlogPost> |
getPopularBlogPosts()
Returns a JiveIterator of popular blog posts system wide in popularity order. |
JiveIterator<BlogPost> |
getPopularBlogPosts(Blog blog)
Returns a JiveIterator of popular blog posts for the blog in popularity order. |
JiveIterator<Document> |
getPopularDocuments()
Returns a system wide JiveIterator of popular documents in popularity order. |
JiveIterator<Document> |
getPopularDocuments(JiveContainer jiveContainer)
Returns a JiveIterator of popular documents for the container in popularity order. |
JiveIterator<ForumThread> |
getPopularThreads()
Returns a system wide JiveIterator of popular threads in popularity order. |
JiveIterator<ForumThread> |
getPopularThreads(JiveContainer jiveContainer)
Returns a JiveIterator of popular threads for the container in popularity order. |
Iterable<Activity> |
getRecentActivity(Collection<User> users)
Returns all the recent activities for a collection of users. |
Iterable<Activity> |
getRecentActivity(JiveContainer jiveContainer)
Returns all the recent activities that have occurred in the specified container and all subcontainers. |
Iterable<Activity> |
getRecentActivity(JiveContainer jiveContainer,
com.google.common.base.Predicate<com.jivesoftware.community.ActivityBean> predicate)
Returns all the recent activities matching the provided predicate that have occurred in the specified container and all subcontainers. |
Iterable<Activity> |
getRecentActivity(User user)
Returns all the recent activities for a particular user |
Iterable<Activity> |
getRecentActivity(User user,
com.google.common.base.Predicate<com.jivesoftware.community.ActivityBean> predicate)
Returns all the recent activities for a particular user matching the provided predicate. |
boolean |
isEnabled()
Returns true if the activity manager is enabled, false otherwise. |
| Methods inherited from interface com.jivesoftware.community.JiveManager |
|---|
destroy |
| Method Detail |
|---|
boolean isEnabled()
Iterable<Activity> getRecentActivity(JiveContainer jiveContainer)
jiveContainer - The container the activities occurred under.
Iterable<Activity> getRecentActivity(JiveContainer jiveContainer,
com.google.common.base.Predicate<com.jivesoftware.community.ActivityBean> predicate)
jiveContainer - The container the activities occurred under.predicate - the Predicate to test content against
Iterable<Activity> getRecentActivity(User user)
user - The user to return recent activities for
Iterable<Activity> getRecentActivity(Collection<User> users)
users - The users to return recent activities for
Iterable<Activity> getRecentActivity(User user,
com.google.common.base.Predicate<com.jivesoftware.community.ActivityBean> predicate)
user - The user to return recent activities forpredicate - the Predicate to test content against
void addActivity(JiveObject object,
JiveObject parent,
User user,
Activity.Type activityType)
object - The object the activity occurred on.parent - The parent object.user - The user who triggered the activity, null is allowed.activityType - The type of activity that occurred.JiveIterator<ForumThread> getPopularThreads()
JiveIterator of popular threads in popularity order.
JiveIterator<ForumThread> getPopularThreads(JiveContainer jiveContainer)
JiveIterator of popular threads for the container in popularity order.
jiveContainer - The container the activities occurred under.
JiveIterator<Document> getPopularDocuments()
JiveIterator of popular documents in popularity order.
JiveIterator<Document> getPopularDocuments(JiveContainer jiveContainer)
JiveIterator of popular documents for the container in popularity order.
jiveContainer - the container to retrieve popular documents for.
JiveIterator<BlogPost> getPopularBlogPosts(Blog blog)
JiveIterator of popular blog posts for the blog in popularity order.
blog - the blog to retrieve popular blog posts for.
JiveIterator<BlogPost> getPopularBlogPosts()
JiveIterator of popular blog posts system wide in popularity order.
void deleteUserActivities(User user)
throws UnauthorizedException
user - the owner of the activities being deleted.
UnauthorizedException - if not allowed to delete the user's activities
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||