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.Collection;
19 import java.util.List;
20 import java.util.Map;
21
22 import org.kuali.rice.core.framework.impex.xml.XmlExporter;
23 import org.kuali.rice.core.framework.impex.xml.XmlLoader;
24 import org.kuali.rice.kew.api.rule.RuleDelegation;
25 import org.kuali.rice.kew.rule.RuleDelegationBo;
26 import org.springframework.cache.annotation.Cacheable;
27
28
29
30
31
32
33
34
35 public interface RuleDelegationService extends XmlLoader, XmlExporter {
36
37 public List<RuleDelegationBo> findByDelegateRuleId(String ruleId);
38 public void save(RuleDelegationBo ruleDelegation);
39 public void delete(String ruleDelegationId);
40 public List<RuleDelegationBo> findAllCurrentRuleDelegations();
41 public RuleDelegationBo findByRuleDelegationId(String ruleDelegationId);
42 public List<RuleDelegationBo> search(String parentRuleBaseVaueId, String parentResponsibilityId, String docTypeName, String ruleId, String ruleTemplateId, String ruleDescription, String groupId, String principalId, String delegationType, Boolean activeInd, Map extensionValues, String workflowIdDirective);
43 public List<RuleDelegationBo> searchByTemplate(String parentRuleBaseVaueId, String parentResponsibilityId, String docTypeName, String ruleTemplateName, String ruleDescription, String groupId, String principalId, Boolean workgroupMember, String delegationType, Boolean activeInd, Map extensionValues, Collection<String> actionRequestCodes);
44
45
46
47
48
49
50 @Cacheable(value= RuleDelegation.Cache.NAME, key="'responsibilityId=' + #p0")
51 public List<RuleDelegationBo> findByResponsibilityId(String responsibilityId);
52 }