public class RuleService extends Object
| Modifier and Type | Field and Description |
|---|---|
protected RuleDAO |
ruleDAO |
protected RuleMapper |
ruleMapper |
| Constructor and Description |
|---|
RuleService() |
| Modifier and Type | Method and Description |
|---|---|
RuleDTO |
addRule(RuleDTO ruleDTO)
Add Rule to DB
|
void |
deleteRule(String ruleTitle) |
RuleDTO |
findEnableRuleByTitle(String ruleTitle)
Find enable RuleEntity by title
|
RuleDTO |
findRuleByTitle(String ruleTitle)
Find a RuleEntity by title
|
List<RuleDTO> |
getAllRules() |
RuleDTO |
updateRule(RuleDTO ruleDTO)
Update Rule to DB
|
protected final RuleDAO ruleDAO
protected final RuleMapper ruleMapper
public RuleDTO findEnableRuleByTitle(String ruleTitle)
ruleTitle - : rule's title parampublic RuleDTO findRuleByTitle(String ruleTitle)
ruleTitle - : rule's title parampublic void deleteRule(String ruleTitle)
public RuleDTO addRule(RuleDTO ruleDTO)
ruleDTO - : an object of type RuleDTOCopyright © 2003–2019 eXo Platform SAS. All rights reserved.