Class BlackListModeration
java.lang.Object
org.craftercms.social.moderation.impl.BlackListModeration
- All Implemented Interfaces:
ModerationFilter
Uses File to get Blacklist word
- Author:
- cortiz
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()Get's the name of the Modetation FilterbooleanneedModeration(SocialUgc ugc) Decide if a UGC have to be moderate
-
Constructor Details
-
BlackListModeration
@ConstructorProperties("blackListFile") public BlackListModeration(String blackListFile) throws SAXException, IOException, ParserConfigurationException, XPathException
-
-
Method Details
-
needModeration
Description copied from interface:ModerationFilterDecide if a UGC have to be moderate- Specified by:
needModerationin interfaceModerationFilter- Parameters:
ugc- Ugc to check- Returns:
- True if the UGC Need to be moderate False Otherwise
-
getName
Description copied from interface:ModerationFilterGet's the name of the Modetation Filter- Specified by:
getNamein interfaceModerationFilter- Returns:
- the name of the Filter
-