|
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.ThreadResultFilter
com.jivesoftware.community.ModerationFilter
public class ModerationFilter
Filters and sorts lists of ForumMessages based upon the message's moderation and abuse value.
Factory methods to create common queries are provided for convenience.
OldModerationManager#getMessages(ModerationFilter, com.jivesoftware.base.AuthToken),
OldModerationManager#getMessages(ModerationFilter, com.jivesoftware.base.AuthToken, Community)| Field Summary |
|---|
| Fields inherited from class com.jivesoftware.community.ResultFilter |
|---|
AND_MODE, ASCENDING, CONTAINS_MATCH, DESCENDING, EXACT_MATCH, NULL_INT, OR_MODE |
| Constructor Summary | |
|---|---|
ModerationFilter()
|
|
| Method Summary | |
|---|---|
static ModerationFilter |
createAbuseOnlyFilter()
Creates a default Moderation Filter: shows all messages marked for moderation with results sorted by creation date in ascending order. |
static ModerationFilter |
createDefaultModerationFilter()
Creates a default Moderation Filter: shows all messages marked for moderation with results sorted by creation date in ascending order. |
static ModerationFilter |
createModerationOnlyFilter()
Creates a default Moderation Filter: shows all messages marked for moderation with results sorted by creation date in ascending order. |
int |
getModerationRangeMax()
Returns the moderation value that represents the upper bound for messages or threads to be selected by the result filter. |
int |
getModerationRangeMin()
Returns the moderation value that represents the lower boundry for messages or threads to be selected by the result filter. |
List<Integer> |
getModValueList()
Gets a list of moderation values that will be used to filter results. |
void |
setModerationRangeMax(int moderationRangeMax)
Sets the upper bound for the moderation value that will pass the result filter. |
void |
setModerationRangeMin(int moderationRangeMin)
Sets the moderation value that represents the lower bound for messages or threads to be selected by the result filter. |
void |
setModValueList(List<Integer> modValueList)
Sets a list of moderation values that will be used to filter results. |
| Methods inherited from class com.jivesoftware.community.ThreadResultFilter |
|---|
addResolutionState, clearResolutionStates, createDefaultMessageFilter, createDefaultThreadFilter, createDefaultUserMessagesFilter, equals, getResolutionDateRangeMax, getResolutionDateRangeMin, getResolutionStates, getShowModerated, getSortField, hashCode, removeResolutionState, roundDate, roundDate, setResolutionDateRangeMax, setResolutionDateRangeMin, setShowModerated, setSortField, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ModerationFilter()
| Method Detail |
|---|
public static ModerationFilter createDefaultModerationFilter()
public static ModerationFilter createModerationOnlyFilter()
public static ModerationFilter createAbuseOnlyFilter()
public List<Integer> getModValueList()
JiveConstants and will of the type Integer.
public void setModValueList(List<Integer> modValueList)
JiveConstants and must be added to the list as type Integer.
modValueList - a list of moderation values that will be used to filter results.public int getModerationRangeMin()
ThreadResultFilter
getModerationRangeMin in class ThreadResultFilterpublic void setModerationRangeMin(int moderationRangeMin)
ThreadResultFilter
setModerationRangeMin in class ThreadResultFiltermoderationRangeMin - int representing the lowest value of the moderation value range to be selected by the
result filter.public int getModerationRangeMax()
ThreadResultFilter
getModerationRangeMax in class ThreadResultFilterpublic void setModerationRangeMax(int moderationRangeMax)
ThreadResultFilter
setModerationRangeMax in class ThreadResultFiltermoderationRangeMax - the max value of the moderation value range.
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||