Package org.craftercms.social.moderation
Interface ModerationDecision
- All Known Implementing Classes:
ModerationDecisionImpl
public interface ModerationDecision
-
Method Summary
Modifier and TypeMethodDescriptionboolean
SetUGC
as Trashboolean
needModeration
(SocialUgc ugc) Makes the decision if aUGC
has to be moderated based onModerationFilter.needModeration(SocialUgc)
result returns True if at least one ofModerationFilter
returns truevoid
setMaxFlagsBeforeTrash
(int maxFlags) Sets the number of user flags threshold before theUGC
is sent to the trash.
-
Method Details
-
needModeration
Makes the decision if aUGC
has to be moderated based onModerationFilter.needModeration(SocialUgc)
result returns True if at least one ofModerationFilter
returns true- Parameters:
ugc
- UGC to test- Returns:
- True if at least one
ModerationFilter.needModeration(SocialUgc)
returns true;
-
isTrash
SetUGC
as Trash- Parameters:
ugc
- theUGC
to be trashed- Returns:
- true if it can be set in the trash.
-
setMaxFlagsBeforeTrash
void setMaxFlagsBeforeTrash(int maxFlags) Sets the number of user flags threshold before theUGC
is sent to the trash.- Parameters:
maxFlags
- Maximum number of flags (unique flags).
-