Interface ClassificationService
-
- All Known Implementing Classes:
DefaultClassificationService
public interface ClassificationService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Stringclassify(ClassificationRequest classificationRequest)intcountMatchingGroups(Criteria criteria)intcountMatchingRules(Criteria criteria)voiddeleteGroup(int groupId)voiddeleteRule(int ruleId)voiddeleteRules(int groupId)java.lang.StringexportRules(int groupId)java.util.List<Group>findMatchingGroups(Criteria criteria)java.util.List<Rule>findMatchingRules(Criteria criteria)GroupgetGroup(int groupId)java.util.List<Rule>getInvalidRules()RulegetRule(int ruleId)voidimportRules(int groupId, java.io.InputStream inputStream, boolean hasHeader, boolean deleteExistingRules)java.lang.IntegersaveGroup(Group group)java.lang.IntegersaveRule(Rule rule)voidupdateGroup(Group group)voidupdateRule(Rule rule)voidvalidateRule(Rule validateMe)
-
-
-
Method Detail
-
countMatchingRules
int countMatchingRules(Criteria criteria)
-
getRule
Rule getRule(int ruleId)
-
saveRule
java.lang.Integer saveRule(Rule rule) throws InvalidRuleException
- Throws:
InvalidRuleException
-
deleteRules
void deleteRules(int groupId)
-
deleteRule
void deleteRule(int ruleId)
-
updateRule
void updateRule(Rule rule)
-
countMatchingGroups
int countMatchingGroups(Criteria criteria)
-
getGroup
Group getGroup(int groupId)
-
saveGroup
java.lang.Integer saveGroup(Group group)
-
deleteGroup
void deleteGroup(int groupId)
-
updateGroup
void updateGroup(Group group)
-
importRules
void importRules(int groupId, java.io.InputStream inputStream, boolean hasHeader, boolean deleteExistingRules) throws CSVImportException- Throws:
CSVImportException
-
exportRules
java.lang.String exportRules(int groupId)
-
classify
java.lang.String classify(ClassificationRequest classificationRequest)
-
getInvalidRules
java.util.List<Rule> getInvalidRules()
-
validateRule
void validateRule(Rule validateMe)
-
-