001 /** 002 * Copyright 2005-2012 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.kim.impl.role; 017 018 import org.kuali.rice.kim.api.group.GroupMember; 019 import org.kuali.rice.kim.api.role.RoleMember; 020 import org.kuali.rice.kim.api.role.RoleMembership; 021 import org.kuali.rice.kim.impl.common.delegate.DelegateTypeBo; 022 import org.kuali.rice.kim.impl.common.delegate.DelegateMemberBo; 023 024 import java.util.Collection; 025 import java.util.List; 026 import java.util.Map; 027 028 public interface RoleDao { 029 030 List<RoleMemberBo> getRolePrincipalsForPrincipalIdAndRoleIds(Collection<String> roleIds, String principalId, Map<String, String> qualification); 031 032 List<GroupMember> getGroupPrincipalsForPrincipalIdAndGroupIds(Collection<String> groupIds, String principalId); 033 034 List<RoleMemberBo> getRoleGroupsForGroupIdsAndRoleIds(Collection<String> roleIds, Collection<String> groupIds, Map<String, String> qualification); 035 036 Map<String, DelegateTypeBo> getDelegationImplMapFromRoleIds(Collection<String> roleIds); 037 038 List<DelegateTypeBo> getDelegationBosForRoleIds(Collection<String> roleIds); 039 040 List<DelegateMemberBo> getDelegationPrincipalsForPrincipalIdAndDelegationIds(Collection<String> delegationIds, String principalId); 041 042 List<DelegateMemberBo> getDelegationGroupsForGroupIdsAndDelegationIds(Collection<String> delegationIds, List<String> groupIds); 043 044 List<RoleMemberBo> getRoleMembersForRoleIds(Collection<String> roleIds, String memberTypeCode, Map<String, String> qualification); 045 046 List<RoleMemberBo> getRoleMembershipsForRoleIdsAsMembers(Collection<String> roleIds, Map<String, String> qualification); 047 048 List<RoleMemberBo> getRoleMembershipsForMemberId(String memberType, String memberId, Map<String, String> qualification); 049 050 List<RoleMemberBo> getRoleMembersForRoleIdsWithFilters(Collection<String> roleIds, String principalId, Collection<String> groupIds, Map<String, String> qualification); 051 052 List<RoleBo> getRoles(Map<String, String> fieldValues); 053 054 List<GroupMember> getGroupMembers(Collection<String> groupIds); 055 }