public interface ModerationDecision
| Modifier and Type | Method and Description |
|---|---|
boolean |
isTrash(SocialUgc ugc)
Set
UGC as Trash |
boolean |
needModeration(SocialUgc ugc)
Makes the decision if a
UGC has to be moderated
based on ModerationFilter.needModeration(SocialUgc) result
returns True if at least one of ModerationFilter returns true |
void |
setMaxFlagsBeforeTrash(int maxFlags)
Sets the number of user flags threshold before the
UGC is sent to the trash. |
boolean needModeration(SocialUgc ugc)
UGC has to be moderated
based on ModerationFilter.needModeration(SocialUgc) result
returns True if at least one of ModerationFilter returns trueugc - UGC to testModerationFilter.needModeration(SocialUgc) returns true;boolean isTrash(SocialUgc ugc)
UGC as Trashugc - the UGC to be trashedvoid setMaxFlagsBeforeTrash(int maxFlags)
UGC is sent to the trash.maxFlags - Maximum number of flags (unique flags).Copyright © 2019 CrafterCMS. All Rights Reserved.