Package org.craftercms.social.moderation
Interface ModerationDecision
-
- All Known Implementing Classes:
ModerationDecisionImpl
public interface ModerationDecision
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isTrash(SocialUgc ugc)
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 Detail
-
needModeration
boolean 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 true- Parameters:
ugc
- UGC to test- Returns:
- True if at least one
ModerationFilter.needModeration(SocialUgc)
returns true;
-
isTrash
boolean isTrash(SocialUgc ugc)
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).
-
-