1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
package org.kuali.rice.kew.rule.service; |
18 | |
|
19 | |
import java.sql.Timestamp; |
20 | |
import java.util.Collection; |
21 | |
import java.util.List; |
22 | |
import java.util.Map; |
23 | |
|
24 | |
import org.kuali.rice.kew.doctype.bo.DocumentType; |
25 | |
import org.kuali.rice.kew.exception.WorkflowException; |
26 | |
import org.kuali.rice.kew.identity.Id; |
27 | |
import org.kuali.rice.kew.rule.MyRules2; |
28 | |
import org.kuali.rice.kew.rule.RuleBaseValues; |
29 | |
import org.kuali.rice.kew.rule.RuleDelegation; |
30 | |
import org.kuali.rice.kew.rule.RuleResponsibility; |
31 | |
import org.kuali.rice.kew.xml.XmlLoader; |
32 | |
import org.kuali.rice.kew.xml.export.XmlExporter; |
33 | |
import org.kuali.rice.kim.bo.entity.KimPrincipal; |
34 | |
|
35 | |
|
36 | |
|
37 | |
|
38 | |
|
39 | |
|
40 | |
|
41 | |
|
42 | |
|
43 | |
|
44 | |
public interface RuleService extends XmlLoader, XmlExporter { |
45 | |
|
46 | |
|
47 | |
|
48 | |
|
49 | |
|
50 | |
|
51 | |
public RuleBaseValues getRuleByName(String name); |
52 | |
|
53 | |
|
54 | |
public Long route2(Long routeHeaderId, MyRules2 myRules, KimPrincipal principal, String annotation, boolean blanketApprove) throws Exception; |
55 | |
public Long routeRuleWithDelegate(Long routeHeaderId, RuleBaseValues parentRule, RuleBaseValues delegateRule, KimPrincipal principal, String annotation, boolean blanketApprove) throws Exception; |
56 | |
|
57 | |
public void save2(RuleBaseValues ruleBaseValues) throws Exception; |
58 | |
public void validate2(RuleBaseValues ruleBaseValues, RuleDelegation ruleDelegation, List errors) throws Exception; |
59 | |
public void delete(Long ruleBaseValuesId); |
60 | |
public RuleBaseValues findRuleBaseValuesById(Long ruleBaseValuesId); |
61 | |
public List search(String docTypeName, Long ruleId, Long ruleTemplateId, String ruleDescription, String groupId, String principalId, Boolean delegateRule, Boolean activeInd, Map extensionValues, String workflowIdDirective); |
62 | |
public List search(String docTypeName, String ruleTemplateName, String ruleDescription, String groupId, String principalId, Boolean workgroupMember, Boolean delegateRule, Boolean activeInd, Map extensionValues, Collection<String> actionRequestCodes); |
63 | |
public RuleResponsibility findRuleResponsibility(Long responsibilityId); |
64 | |
public void deleteRuleResponsibilityById(Long ruleResponsibilityId); |
65 | |
public RuleResponsibility findByRuleResponsibilityId(Long ruleResponsibilityId); |
66 | |
public List fetchAllCurrentRulesForTemplateDocCombination(String ruleTemplateName, String documentType); |
67 | |
public List fetchAllCurrentRulesForTemplateDocCombination(String ruleTemplateName, String documentType, boolean ignoreCache); |
68 | |
public List fetchAllCurrentRulesForTemplateDocCombination(String ruleTemplateName, String documentType, Timestamp effectiveDate); |
69 | |
public List findByRouteHeaderId(Long routeHeaderId); |
70 | |
public void makeCurrent(Long routeHeaderId); |
71 | |
public void makeCurrent(RuleBaseValues rule, boolean isRetroactiveUpdatePermitted); |
72 | |
public void makeCurrent(RuleDelegation ruleDelegation, boolean isRetroactiveUpdatePermitted); |
73 | |
public List findRuleBaseValuesByResponsibilityReviewer(String reviewerName, String type); |
74 | |
public List findRuleBaseValuesByResponsibilityReviewerTemplateDoc(String ruleTemplateName, String documentType, String reviewerName, String type); |
75 | |
public Long isLockedForRouting(Long currentRuleBaseValuesId); |
76 | |
public List fetchAllRules(boolean currentRules); |
77 | |
public RuleBaseValues findDefaultRuleByRuleTemplateId(Long ruleTemplateId); |
78 | |
public void notifyCacheOfRuleChange(RuleBaseValues rule, DocumentType documentType); |
79 | |
public RuleBaseValues getParentRule(Long ruleBaseValuesId); |
80 | |
|
81 | |
|
82 | |
|
83 | |
|
84 | |
|
85 | |
|
86 | |
|
87 | |
|
88 | |
public void notifyCacheOfDocumentTypeChange(DocumentType documentType); |
89 | |
|
90 | |
public void flushRuleCache(); |
91 | |
|
92 | |
|
93 | |
|
94 | |
|
95 | |
|
96 | |
|
97 | |
public String getRuleDocmentTypeName(List rules); |
98 | |
|
99 | |
|
100 | |
|
101 | |
|
102 | |
|
103 | |
|
104 | |
|
105 | |
public void replaceRuleInvolvement(Id entityToBeReplaced, Id newEntity, List<Long> ruleIds, Long documentId) throws WorkflowException; |
106 | |
|
107 | |
|
108 | |
|
109 | |
|
110 | |
|
111 | |
|
112 | |
|
113 | |
|
114 | |
public void removeRuleInvolvement(Id entityToBeRemoved, List<Long> ruleIds, Long documentId) throws WorkflowException; |
115 | |
|
116 | |
|
117 | |
|
118 | |
|
119 | |
|
120 | |
|
121 | |
public Long getDuplicateRuleId(RuleBaseValues rule); |
122 | |
|
123 | |
public RuleBaseValues saveRule(RuleBaseValues rule, boolean isRetroactiveUpdatePermitted); |
124 | |
|
125 | |
public List<RuleBaseValues> saveRules(List<RuleBaseValues> rulesToSave, boolean isRetroactiveUpdatePermitted); |
126 | |
|
127 | |
public RuleDelegation saveRuleDelegation(RuleDelegation ruleDelegation, boolean isRetroactiveUpdatePermitted); |
128 | |
|
129 | |
public List<RuleDelegation> saveRuleDelegations(List<RuleDelegation> ruleDelegationsToSave, boolean isRetroactiveUpdatePermitted); |
130 | |
|
131 | |
public Long findResponsibilityIdForRule(String ruleName, String ruleResponsibilityName, String ruleResponsibilityType); |
132 | |
} |