Package org.craftercms.social.moderation
Interface ModerationDecision
- All Known Implementing Classes:
ModerationDecisionImpl
public interface ModerationDecision
-
Method Summary
Modifier and TypeMethodDescriptionbooleanSetUGCas TrashbooleanneedModeration(SocialUgc ugc) Makes the decision if aUGChas to be moderated based onModerationFilter.needModeration(SocialUgc)result returns True if at least one ofModerationFilterreturns truevoidsetMaxFlagsBeforeTrash(int maxFlags) Sets the number of user flags threshold before theUGCis sent to the trash.
-
Method Details
-
needModeration
Makes the decision if aUGChas to be moderated based onModerationFilter.needModeration(SocialUgc)result returns True if at least one ofModerationFilterreturns true- Parameters:
ugc- UGC to test- Returns:
- True if at least one
ModerationFilter.needModeration(SocialUgc)returns true;
-
isTrash
SetUGCas Trash- Parameters:
ugc- theUGCto 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 theUGCis sent to the trash.- Parameters:
maxFlags- Maximum number of flags (unique flags).
-