View Javadoc
1   /**
2    * Copyright 2005-2016 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.kim.impl.role;
17  
18  import org.kuali.rice.kim.api.group.GroupMember;
19  import org.kuali.rice.kim.api.role.RoleMember;
20  import org.kuali.rice.kim.api.role.RoleMembership;
21  import org.kuali.rice.kim.impl.common.delegate.DelegateTypeBo;
22  import org.kuali.rice.kim.impl.common.delegate.DelegateMemberBo;
23  
24  import java.util.Collection;
25  import java.util.List;
26  import java.util.Map;
27  
28  public interface RoleDao {
29  
30      List<RoleMemberBo> getRolePrincipalsForPrincipalIdAndRoleIds(Collection<String> roleIds, String principalId, Map<String, String> qualification);
31  
32      List<GroupMember> getGroupPrincipalsForPrincipalIdAndGroupIds(Collection<String> groupIds, String principalId);
33  
34      List<RoleMemberBo> getRoleGroupsForGroupIdsAndRoleIds(Collection<String> roleIds, Collection<String> groupIds, Map<String, String> qualification);
35  
36      Map<String, DelegateTypeBo> getDelegationImplMapFromRoleIds(Collection<String> roleIds);
37  
38      List<DelegateTypeBo> getDelegationBosForRoleIds(Collection<String> roleIds);
39  
40      List<DelegateMemberBo> getDelegationPrincipalsForPrincipalIdAndDelegationIds(Collection<String> delegationIds, String principalId);
41  
42      List<DelegateMemberBo> getDelegationGroupsForGroupIdsAndDelegationIds(Collection<String> delegationIds, List<String> groupIds);
43  
44      List<RoleMemberBo> getRoleMembersForGroupIds(String roleId, List<String> groupIds);
45  
46      List<RoleMemberBo> getRoleMembersForRoleIds(Collection<String> roleIds, String memberTypeCode, Map<String, String> qualification);
47  
48      List<RoleMemberBo> getRoleMembershipsForRoleIdsAsMembers(Collection<String> roleIds, Map<String, String> qualification);
49  
50      List<RoleMemberBo> getRoleMembershipsForMemberId(String memberType, String memberId, Map<String, String> qualification);
51  
52      List<RoleMemberBo> getRoleMembersForRoleIdsWithFilters(Collection<String> roleIds, String principalId, Collection<String> groupIds, Map<String, String> qualification);
53  
54      List<RoleBo> getRoles(Map<String, String> fieldValues);
55  
56      List<GroupMember> getGroupMembers(Collection<String> groupIds);
57  }