|
Clearspace API (1.7.0) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ContentRetrieval
Interface for accessing threads, messages, documents, and blog posts - all the fundamental content elements
in the system. The object implementing this interface can either be the logical container of those content elements
(like a Community), or just represent a certain view of them (like a TagSet).
Community,
TagSet| Nested Class Summary | |
|---|---|
static class |
ContentRetrieval.ContentType
Enumeration of the primary three types of content elements in the system. |
| Field Summary | |
|---|---|
static ContentRetrieval.ContentType[] |
ALL_TYPES
An array of all ContentRetrieval.ContentTypes |
| Method Summary | |
|---|---|
int |
getBlogPostCount()
Returns the number of blog posts in all blogs associated with the community based sorted by descending publish date. |
int |
getBlogPostCount(BlogPostResultFilter filter)
Returns the number of blog posts in all blogs associated with the community based on the specified ResultFilter. |
JiveIterator<BlogPost> |
getBlogPosts()
Returns all BlogPosts in all Blogs associated with this
Community sorted by descending publish date. |
JiveIterator<BlogPost> |
getBlogPosts(BlogPostResultFilter filter)
Returns all BlogPosts in all Blogs associated with this Community
based on the specified ResultFilter. |
JiveIterator<JiveContentObject> |
getCombinedContent(ContentRetrieval.ContentType... types)
Returns an Iterable for all threads, documents, and blog posts in the community, depending on which ContentRetrieval.ContentTypes are supplied as an argument. |
JiveIterator<JiveContentObject> |
getCombinedContent(ResultFilter filter,
ContentRetrieval.ContentType... types)
Returns an Iterable for all threads, documents, and blog posts in the community, depending on which ContentRetrieval.ContentTypes are supplied as an argument, and according the the supplied ResultFilter. |
int |
getCombinedContentCount(ContentRetrieval.ContentType... types)
Returns the combined number of threads, documents, and blog posts in the community, depending on which ContentRetrieval.ContentTypes are supplied as an argument. |
int |
getCombinedContentCount(ResultFilter filter,
ContentRetrieval.ContentType... types)
Returns the combined number of threads, documents, and blog posts in the community, depending on which ContentRetrieval.ContentTypes are supplied as an argument, and restricted by the ResultFilter. |
int |
getDocumentCount()
Returns the number of published documents in the community. |
int |
getDocumentCount(DocumentResultFilter filter)
Returns the number of documents in the community based on the specified ResultFilter. |
JiveIterator<Document> |
getDocuments()
Returns an Iterable of published documents objects in the community. |
JiveIterator<Document> |
getDocuments(DocumentResultFilter filter)
Returns an Iterable for all the documents in the community that match the criteria specified by the ResultFilter. |
int |
getMessageCount()
Returns the number of messages in the community. |
int |
getMessageCount(ThreadResultFilter filter)
Returns the number of messages in the community based on the specified ResultFilter. |
JiveIterator<ForumMessage> |
getMessages()
Returns an Iterable for all the messages in the community. |
JiveIterator<ForumMessage> |
getMessages(ThreadResultFilter filter)
Returns an Iterable for all the messages in the community that match the criteria specified by the ResultFilter. |
int |
getThreadCount()
Returns the number of threads in the community. |
int |
getThreadCount(ThreadResultFilter resultFilter)
Returns the number of threads in the community based on the specified ResultFilter. |
JiveIterator<ForumThread> |
getThreads()
Returns an Iterable for all the threads in the community. |
JiveIterator<ForumThread> |
getThreads(ThreadResultFilter resultFilter)
Returns an Iterable for all the threads in the community that match the criteria specified by the ResultFilter. |
| Field Detail |
|---|
static final ContentRetrieval.ContentType[] ALL_TYPES
ContentRetrieval.ContentTypes
| Method Detail |
|---|
int getCombinedContentCount(ContentRetrieval.ContentType... types)
ContentRetrieval.ContentTypes are supplied as an argument. Note: this method ignores permissions because it's not
possible to do a database query for the count that obeys permissions counts. Therefore, the count returned
by this method may not be the same as the number of conten objects returned by the getCombinedContent(com.jivesoftware.community.ContentRetrieval.ContentType...) method.
types - the ContentRetrieval.ContentTypes to include in the count.
int getCombinedContentCount(ResultFilter filter,
ContentRetrieval.ContentType... types)
ContentRetrieval.ContentTypes are supplied as an argument, and restricted by the ResultFilter. Note: this method ignores
permissions because it's not possible to do a database query for the count that obeys permissions counts.
Therefore, the count returned by this method may not be the same as the number of conten objects returned by
the getCombinedContent(ResultFilter, ContentType...) method.
filter - the ResultFilter to filter the results.types - the ContentRetrieval.ContentTypes to include in the count.
JiveIterator<JiveContentObject> getCombinedContent(ContentRetrieval.ContentType... types)
ContentRetrieval.ContentTypes are supplied as an argument. The results will be sorted by descending modification date.
types - the ContentRetrieval.ContentTypes to include in the result.
JiveIterator<JiveContentObject> getCombinedContent(ResultFilter filter,
ContentRetrieval.ContentType... types)
ContentRetrieval.ContentTypes are supplied as an argument, and according the the supplied ResultFilter.
filter - the ResultFilter to filter and sort the results.types - the ContentRetrieval.ContentTypes to include in the result.
int getThreadCount()
getThreads() method.
int getThreadCount(ThreadResultFilter resultFilter)
getThreads(com.jivesoftware.community.ThreadResultFilter) method.
resultFilter - a resultFilter to limit the query on.
JiveIterator<ForumThread> getThreads()
JiveIterator<ForumThread> getThreads(ThreadResultFilter resultFilter)
resultFilter - a ResultFilter object to perform filtering and sorting with.
int getMessageCount()
getMessages() method.
int getMessageCount(ThreadResultFilter filter)
getMessages(ThreadResultFilter) method.
filter - a resultFilter to limit the query on.
JiveIterator<ForumMessage> getMessages()
JiveIterator<ForumMessage> getMessages(ThreadResultFilter filter)
filter - a ResultFilter object to perform filtering and sorting with.
int getDocumentCount()
JiveIterator<Document> getDocuments()
int getDocumentCount(DocumentResultFilter filter)
filter - a DocumentResultFilter to limit the query on.
JiveIterator<Document> getDocuments(DocumentResultFilter filter)
filter - a DocumentResultFilter object to perform filtering and sorting with.
JiveIterator<BlogPost> getBlogPosts()
BlogPosts in all Blogs associated with this
Community sorted by descending publish date.
BlogPosts in all Blogs associated with this
Community sorted by descending publish date.JiveIterator<BlogPost> getBlogPosts(BlogPostResultFilter filter)
BlogPosts in all Blogs associated with this Community
based on the specified ResultFilter. This is useful for determining such things as the number
of posts in a date range, etc. sorted by descending publish date.
filter - the BlogPostResultFilter to use in filtering results.
BlogPosts in all Blogs associated with this Community
based on the specified ResultFilter.int getBlogPostCount()
getBlogPosts() method.
int getBlogPostCount(BlogPostResultFilter filter)
getBlogPosts(BlogPostResultFilter) method.
filter - a resultFilter to limit the query on.
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||