1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.kew.rule.dao; |
17 | |
|
18 | |
import java.sql.Timestamp; |
19 | |
import java.util.Collection; |
20 | |
import java.util.List; |
21 | |
import java.util.Map; |
22 | |
|
23 | |
import org.kuali.rice.kew.rule.RuleBaseValues; |
24 | |
import org.kuali.rice.kew.rule.RuleResponsibilityBo; |
25 | |
|
26 | |
public interface RuleDAO { |
27 | |
|
28 | |
public void save(RuleBaseValues ruleBaseValues); |
29 | |
public void delete(String ruleBaseValuesId); |
30 | |
public RuleBaseValues findRuleBaseValuesByName(String name); |
31 | |
public RuleBaseValues findRuleBaseValuesById(String ruleBaseValuesId); |
32 | |
public RuleResponsibilityBo findRuleResponsibility(String responsibilityId); |
33 | |
public List<RuleBaseValues> fetchAllRules(boolean currentRules); |
34 | |
public List<RuleBaseValues> fetchAllCurrentRulesForTemplateDocCombination(String ruleTemplateId, List documentTypes); |
35 | |
public List<RuleBaseValues> fetchAllCurrentRulesForTemplateDocCombination(String ruleTemplateId, List documentTypes, Timestamp effectiveDate); |
36 | |
public List<RuleBaseValues> search(String docTypeName, String ruleId, String ruleTemplateId, String ruleDescription, String workgroupId, String workflowId, Boolean delegateRule, Boolean activeInd, Map extensionValues, String workflowIdDirective); |
37 | |
public List<RuleBaseValues> search(String docTypeName, String ruleTemplateId, String ruleDescription, Collection<String> workgroupIds, String workflowId, Boolean delegateRule, Boolean activeInd, Map extensionValues, Collection actionRequestCodes); |
38 | |
public List<RuleBaseValues> findByDocumentId(String documentId); |
39 | |
public List<RuleBaseValues> findRuleBaseValuesByResponsibilityReviewer(String reviewerName, String type); |
40 | |
public List<RuleBaseValues> findRuleBaseValuesByResponsibilityReviewerTemplateDoc(String ruleTemplateName, String documentType, String reviewerName, String type); |
41 | |
public List<RuleBaseValues> findByPreviousRuleId(String previousVersionId); |
42 | |
public void retrieveAllReferences(RuleBaseValues rule); |
43 | |
public RuleBaseValues findDefaultRuleByRuleTemplateId(String ruleTemplateId); |
44 | |
public RuleBaseValues getParentRule(String ruleBaseValuesId); |
45 | |
public List findOldDelegations(RuleBaseValues oldRule, RuleBaseValues newRule); |
46 | |
public String findResponsibilityIdForRule(String ruleName, String ruleResponsibilityName, String ruleResponsibilityType); |
47 | |
} |