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 Filterboolean
needModeration
(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:ModerationFilter
Decide if a UGC have to be moderate- Specified by:
needModeration
in interfaceModerationFilter
- Parameters:
ugc
- Ugc to check- Returns:
- True if the UGC Need to be moderate False Otherwise
-
getName
Description copied from interface:ModerationFilter
Get's the name of the Modetation Filter- Specified by:
getName
in interfaceModerationFilter
- Returns:
- the name of the Filter
-