001 /** 002 * Copyright 2005-2013 The Kuali Foundation 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 package org.kuali.rice.kew.rule.service; 017 018 import java.util.Collection; 019 import java.util.List; 020 import java.util.Map; 021 022 import org.kuali.rice.core.framework.impex.xml.XmlExporter; 023 import org.kuali.rice.core.framework.impex.xml.XmlLoader; 024 import org.kuali.rice.kew.rule.RuleDelegationBo; 025 026 /** 027 * A service providing data access for {@link org.kuali.rice.kew.rule.RuleDelegationBo}s. 028 * 029 * @see org.kuali.rice.kew.rule.RuleDelegationBo 030 * 031 * @author Kuali Rice Team (rice.collab@kuali.org) 032 */ 033 public interface RuleDelegationService extends XmlLoader, XmlExporter { 034 035 public List<RuleDelegationBo> findByDelegateRuleId(String ruleId); 036 public void save(RuleDelegationBo ruleDelegation); 037 public void delete(String ruleDelegationId); 038 public List<RuleDelegationBo> findAllCurrentRuleDelegations(); 039 public RuleDelegationBo findByRuleDelegationId(String ruleDelegationId); 040 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); 041 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); 042 /** 043 * Returns a List of all RuleDelegations with "current" Rules for the given 044 * responsibility id. 045 */ 046 public List<RuleDelegationBo> findByResponsibilityId(String responsibilityId); 047 }