View Javadoc
1   /**
2    * Copyright 2005-2014 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
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 RuleBaseValues 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  }