Interface ClassificationService
-
- All Known Implementing Classes:
DefaultClassificationService
public interface ClassificationService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
classify(ClassificationRequest classificationRequest)
int
countMatchingGroups(Criteria criteria)
int
countMatchingRules(Criteria criteria)
void
deleteGroup(int groupId)
void
deleteRule(int ruleId)
void
deleteRules(int groupId)
String
exportRules(int groupId)
List<Group>
findMatchingGroups(Criteria criteria)
List<Rule>
findMatchingRules(Criteria criteria)
Group
getGroup(int groupId)
List<Rule>
getInvalidRules()
Rule
getRule(int ruleId)
void
importRules(int groupId, InputStream inputStream, boolean hasHeader, boolean deleteExistingRules)
Integer
saveGroup(Group group)
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
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)
-
deleteGroup
void deleteGroup(int groupId)
-
updateGroup
void updateGroup(Group group)
-
importRules
void importRules(int groupId, InputStream inputStream, boolean hasHeader, boolean deleteExistingRules) throws CSVImportException
- Throws:
CSVImportException
-
exportRules
String exportRules(int groupId)
-
classify
String classify(ClassificationRequest classificationRequest)
-
validateRule
void validateRule(Rule validateMe)
-
-