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.String
classify(ClassificationRequest classificationRequest)
int
countMatchingGroups(Criteria criteria)
int
countMatchingRules(Criteria criteria)
void
deleteGroup(int groupId)
void
deleteRule(int ruleId)
void
deleteRules(int groupId)
java.lang.String
exportRules(int groupId)
java.util.List<Group>
findMatchingGroups(Criteria criteria)
java.util.List<Rule>
findMatchingRules(Criteria criteria)
Group
getGroup(int groupId)
java.util.List<Rule>
getInvalidRules()
Rule
getRule(int ruleId)
void
importRules(int groupId, java.io.InputStream inputStream, boolean hasHeader, boolean deleteExistingRules)
java.lang.Integer
saveGroup(Group group)
java.lang.Integer
saveRule(Rule rule)
void
updateGroup(Group group)
void
updateRule(Rule rule)
void
validateRule(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)
-
-