|
Clearspace API (2.5.29) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.community.ResultFilter
com.jivesoftware.community.CommentResultFilter
public class CommentResultFilter
Filters and sorts lists of Comments. This allows for a very rich set of possible queries that
can be run. An example: "Show all comment posted in the document during the last year by a
certain user".
The class also supports pagination of results with the setStartIndex(int) and setNumResults(int) methods. If the start index is not set, it will begin at index 0 (the start of results). If the number of results is not set, it will be unbounded and return as many results as available.
By default, result filters will obey the moderation rules as they are set for each community. You can override this behavior by setting a moderation range.
Factory methods to create common queries are provided for convenience.
CommentManager#getComments(JiveObject,CommentResultFilter),
CommentManager#getCommentCount(JiveObject,CommentResultFilter)| Field Summary |
|---|
| Fields inherited from class com.jivesoftware.community.ResultFilter |
|---|
AND_MODE, ASCENDING, CONTAINS_MATCH, DESCENDING, EXACT_MATCH, NULL_INT, OR_MODE |
| Constructor Summary | |
|---|---|
CommentResultFilter()
|
|
| Method Summary | |
|---|---|
static CommentResultFilter |
createDefaultFilter()
Creates a default comment ResultFilter: no filtering with results sorted on the comment creation date. |
static CommentResultFilter |
createDefaultFilter(Community community)
Creates a default comment ResultFilter: no filtering with results sorted on the comment creation date. |
long |
getCommunityID()
Returns the communityID. |
boolean |
isIncludeModerated()
Returns whether the result to be selected by the result filter should include moderated comments. |
void |
setCommunityID(long communityID)
Sets the communityID to use to restrict results to be selected by the result filter. |
void |
setIncludeModerated(boolean include)
Sets whether the result to be selected by the result filter should include moderated comments. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CommentResultFilter()
| Method Detail |
|---|
public static CommentResultFilter createDefaultFilter()
public static CommentResultFilter createDefaultFilter(Community community)
community - - the community to get the default moderation minimum value from.public long getCommunityID()
public void setCommunityID(long communityID)
communityID - the community that will be used to restrict results.public boolean isIncludeModerated()
public void setIncludeModerated(boolean include)
include - true to include moderated comments, false otherwise.
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||