|
Jive API (3.0.13) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RecentContentManager
This manager provides methods to retrieve recent content. While this manager
is similar in purpose to the ActivityManager there is one main difference - the activity 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. This manager will return content based on it's modification date and is guaranteed
to include a piece of content only once.
The functionality of this manager is easily duplicated by using other methods such as
CommunityManager.getCombinedContent(JiveContainer, ResultFilter, com.jivesoftware.community.objecttype.ContainableType[]).
Using this manager though to retrieve recent content has the benefit of not requiring database access for the
typical usage pattern (except for the initial request of course) whereas the other methods will require database
access whenever the cache is invalidated when content is added or updated.
Implementation note: The methods in this class will only return up to 500 items (controlled via the
RecentContentManager.recentContentMapSize jive property). To return or page through more then 500 items use the
methods available on other managers such as CommunityManager or ForumManager.
| Method Summary | |
|---|---|
JiveIterator<JiveContentObject> |
getRecentContent(Collection<User> users)
Returns all the recent content for a set of users. |
JiveIterator<JiveContentObject> |
getRecentContent(JiveContainer jiveContainer)
Returns all the recent content for the specified container. |
JiveIterator<JiveContentObject> |
getRecentContent(JiveContainer jiveContainer,
com.google.common.base.Predicate<RecentContentBean> predicate)
Returns all the recent content that pass the provided predicate for the specified container. |
JiveIterator<JiveContentObject> |
getRecentContent(JiveContainer jiveContainer,
RecentContentEnabledType[] contentTypes)
Returns the recent content matching the provided content types for the specified container. |
JiveIterator<JiveContentObject> |
getRecentContent(JiveContainer jiveContainer,
RecentContentEnabledType[] contentTypes,
com.google.common.base.Predicate<RecentContentBean> predicate)
Returns the recent content matching the provided content types and predicate for the specified container. |
JiveIterator<JiveContentObject> |
getRecentContent(Map<JiveContainer,RecentContentEnabledType[]> containerMap,
com.google.common.base.Predicate<RecentContentBean> predicate)
Returns the recent content matching the provided map of container -> content types and predicate. |
JiveIterator<JiveContentObject> |
getRecentContent(User user)
Returns all the recent content for the specified user. |
JiveIterator<JiveContentObject> |
getRecentContent(User user,
com.google.common.base.Predicate<RecentContentBean> predicate)
Returns all the recent content that pass the provided predicate for the specified user. |
JiveIterator<JiveContentObject> |
getRecentContent(User user,
RecentContentEnabledType[] contentTypes)
Returns the recent content matching the provided content types for the specified user. |
JiveIterator<JiveContentObject> |
getRecentContent(User user,
RecentContentEnabledType[] contentTypes,
com.google.common.base.Predicate<RecentContentBean> predicate)
Returns the recent content matching the provided content types and predicate for the specified user. |
JiveIterator<JiveContentObject> |
getRecursiveRecentContent(JiveContainer jiveContainer)
Returns all the recent content for the specified container and all subcontainers. |
JiveIterator<JiveContentObject> |
getRecursiveRecentContent(JiveContainer jiveContainer,
com.google.common.base.Predicate<RecentContentBean> predicate)
Returns all the recent content that pass the provided predicate for the specified container and all subcontainers. |
JiveIterator<JiveContentObject> |
getRecursiveRecentContent(JiveContainer jiveContainer,
RecentContentEnabledType[] contentTypes)
Returns the recent content matching the provided content types for the specified container and all subcontainers. |
JiveIterator<JiveContentObject> |
getRecursiveRecentContent(JiveContainer jiveContainer,
RecentContentEnabledType[] contentTypes,
com.google.common.base.Predicate<RecentContentBean> predicate)
Returns the recent content matching the provided content types and predicate for the specified container and all subcontainers. |
boolean |
isEnabled()
Returns true if the recent content manager is enabled, false otherwise. |
| Methods inherited from interface com.jivesoftware.community.JiveManager |
|---|
destroy |
| Method Detail |
|---|
boolean isEnabled()
JiveIterator<JiveContentObject> getRecentContent(JiveContainer jiveContainer)
Note that passing in the root community will be the same as calling
getRecursiveRecentContent(JiveContainer) with the root community.
jiveContainer - The container to retrieve recent content for.
JiveIterator<JiveContentObject> getRecentContent(User user)
user - The user to retrieve recent content for.
JiveIterator<JiveContentObject> getRecentContent(Collection<User> users)
users - The users to retrieve recent content for.
JiveIterator<JiveContentObject> getRecentContent(JiveContainer jiveContainer,
com.google.common.base.Predicate<RecentContentBean> predicate)
Note that passing in the root community will be the same as calling
getRecursiveRecentContent(JiveContainer, Predicate) with the root community.
jiveContainer - The container to retrieve recent content for.predicate - the Predicate to test content against
JiveIterator<JiveContentObject> getRecentContent(User user,
com.google.common.base.Predicate<RecentContentBean> predicate)
user - The user to retrieve recent content for.predicate - the Predicate to test content against
JiveIterator<JiveContentObject> getRecentContent(JiveContainer jiveContainer,
RecentContentEnabledType[] contentTypes)
Note that passing in the root community will be the same as calling
getRecursiveRecentContent(JiveContainer,com.jivesoftware.community.objecttype.RecentContentEnabledType[]) with the root community.
jiveContainer - The container to retrieve recent content for.contentTypes - an array of content types to return
JiveIterator<JiveContentObject> getRecentContent(User user,
RecentContentEnabledType[] contentTypes)
user - The user to retrieve recent content for.contentTypes - an array of content types to return
JiveIterator<JiveContentObject> getRecentContent(JiveContainer jiveContainer,
RecentContentEnabledType[] contentTypes,
com.google.common.base.Predicate<RecentContentBean> predicate)
Note that passing in the root community will be the same as calling
getRecursiveRecentContent(JiveContainer,RecentContentEnabledType[],com.google.common.base.Predicate)
with the root community.
jiveContainer - The container to retrieve recent content for.contentTypes - an array of content types to returnpredicate - the Predicate to test content against
JiveIterator<JiveContentObject> getRecentContent(Map<JiveContainer,RecentContentEnabledType[]> containerMap,
com.google.common.base.Predicate<RecentContentBean> predicate)
containerMap - A map of container -> recent content enabled types to retrieve recent content for.predicate - the Predicate to test content against
JiveIterator<JiveContentObject> getRecentContent(User user,
RecentContentEnabledType[] contentTypes,
com.google.common.base.Predicate<RecentContentBean> predicate)
user - The user to retrieve recent content for.contentTypes - an array of content types to returnpredicate - the Predicate to test content against
JiveIterator<JiveContentObject> getRecursiveRecentContent(JiveContainer jiveContainer)
jiveContainer - The parent container to retrieve recent content for.
JiveIterator<JiveContentObject> getRecursiveRecentContent(JiveContainer jiveContainer,
com.google.common.base.Predicate<RecentContentBean> predicate)
jiveContainer - The parent container to retrieve recent content for.predicate - the Predicate to test content against
JiveIterator<JiveContentObject> getRecursiveRecentContent(JiveContainer jiveContainer,
RecentContentEnabledType[] contentTypes)
jiveContainer - The parent container to retrieve recent content for.contentTypes - an array of content types to return
JiveIterator<JiveContentObject> getRecursiveRecentContent(JiveContainer jiveContainer,
RecentContentEnabledType[] contentTypes,
com.google.common.base.Predicate<RecentContentBean> predicate)
jiveContainer - The parent container to retrieve recent content for.contentTypes - an array of content types to returnpredicate - the Predicate to test content against
|
Jive Product Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||