1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.kew.rule.service;
17
18 import java.util.List;
19
20 import org.kuali.rice.core.framework.impex.xml.XmlExporter;
21 import org.kuali.rice.core.framework.impex.xml.XmlLoader;
22 import org.kuali.rice.kew.api.rule.Rule;
23 import org.kuali.rice.kew.api.rule.RuleDelegation;
24 import org.kuali.rice.kew.api.rule.RuleTemplate;
25 import org.kuali.rice.kew.rule.RuleBaseValues;
26 import org.kuali.rice.kew.rule.RuleDelegationBo;
27 import org.kuali.rice.kew.rule.bo.RuleTemplateBo;
28 import org.kuali.rice.kew.rule.bo.RuleTemplateAttributeBo;
29 import org.springframework.cache.annotation.CacheEvict;
30
31
32
33
34
35
36
37 public interface RuleTemplateService extends XmlLoader, XmlExporter {
38 @CacheEvict(value={RuleTemplate.Cache.NAME}, allEntries = true)
39 public void save(RuleTemplateBo ruleTemplate);
40 @CacheEvict(value={RuleTemplate.Cache.NAME}, allEntries = true)
41 public void save(RuleTemplateAttributeBo ruleTemplateAttribute);
42 @CacheEvict(value={RuleTemplate.Cache.NAME, Rule.Cache.NAME, RuleDelegation.Cache.NAME}, allEntries = true)
43 public void saveRuleDefaults(RuleDelegationBo ruleDelegation, RuleBaseValues ruleBaseValues);
44 public RuleTemplateBo findByRuleTemplateId(String ruleTemplateId);
45 public List<RuleTemplateBo> findAll();
46 public List findByRuleTemplate(RuleTemplateBo ruleTemplate);
47 @CacheEvict(value={RuleTemplate.Cache.NAME}, allEntries = true)
48 public void delete(String ruleTemplateId);
49
50 public void deleteRuleTemplateOption(String ruleTemplateOptionId);
51
52 public RuleTemplateAttributeBo findByRuleTemplateAttributeId(String ruleTemplateAttributeId);
53 public RuleTemplateBo findByRuleTemplateName(String ruleTemplateName);
54 public String getNextRuleTemplateId();
55
56 }