001/** 002 * Copyright 2005-2016 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 */ 016package org.kuali.rice.kim.impl.responsibility; 017 018import org.kuali.rice.kim.api.responsibility.Responsibility; 019import org.kuali.rice.kim.api.role.RoleResponsibility; 020import org.kuali.rice.kim.impl.common.delegate.DelegateMemberBo; 021import org.kuali.rice.kim.impl.role.RoleMemberBo; 022 023import java.util.List; 024import java.util.Set; 025 026/** 027 * This is an internal service that was created as a proxy for kew 028 * updates 029 * 030 * @author Kuali Rice Team (rice.collab@kuali.org) 031 * 032 */ 033public interface ResponsibilityInternalService { 034 035 void updateActionRequestsForResponsibilityChange(Set<String> responsibilityIds); 036 RoleMemberBo saveRoleMember(RoleMemberBo roleMember); 037 DelegateMemberBo saveDelegateMember(DelegateMemberBo delegateMember); 038 void removeRoleMember(RoleMemberBo roleMember); 039 void updateActionRequestsForRoleChange(String roleId); 040 041 /** 042 * Lets the system know (mainly for UI purposes) whether this responsibility expects RoleResponsibilityAction 043 * records to be given at the assignment level or are global to the responsibility. (I.e., they apply 044 * to any member assigned to the responsibility.) 045 */ 046 boolean areActionsAtAssignmentLevelById(String responsibilityId ); 047 048 /** 049 * Lets the system know (mainly for UI purposes) whether this responsibility expects RoleResponsibilityAction 050 * records to be given at the assignment level or are global to the responsibility. (I.e., they apply 051 * to any member assigned to the responsibility.) 052 */ 053 boolean areActionsAtAssignmentLevel(Responsibility responsibility ); 054 055 /** 056 * Get all the role-responsibility records attached to the given role. 057 */ 058 public List<RoleResponsibility> getRoleResponsibilities(String roleId); 059}