1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.kim.service;
17
18 import org.kuali.rice.core.api.membership.MemberType;
19 import org.kuali.rice.kim.api.group.Group;
20 import org.kuali.rice.kim.api.group.GroupMember;
21 import org.kuali.rice.kim.api.identity.employment.EntityEmployment;
22 import org.kuali.rice.kim.api.identity.entity.Entity;
23 import org.kuali.rice.kim.api.identity.entity.EntityDefault;
24 import org.kuali.rice.kim.api.permission.Permission;
25 import org.kuali.rice.kim.api.identity.principal.Principal;
26 import org.kuali.rice.kim.api.role.Role;
27 import org.kuali.rice.kim.api.role.RoleMember;
28 import org.kuali.rice.kim.api.type.KimAttributeField;
29 import org.kuali.rice.kim.bo.ui.KimDocumentRoleMember;
30 import org.kuali.rice.kim.document.IdentityManagementGroupDocument;
31 import org.kuali.rice.kim.document.IdentityManagementPersonDocument;
32 import org.kuali.rice.kim.document.IdentityManagementRoleDocument;
33 import org.kuali.rice.kim.impl.common.delegate.DelegateTypeBo;
34 import org.kuali.rice.kim.impl.role.RoleMemberBo;
35 import org.kuali.rice.kim.impl.role.RoleResponsibilityActionBo;
36 import org.kuali.rice.krad.bo.BusinessObject;
37 import org.springframework.cache.annotation.CacheEvict;
38
39 import java.util.List;
40 import java.util.Map;
41
42
43
44
45
46
47
48 public interface UiDocumentService {
49
50
51
52
53
54
55 @CacheEvict(value={Entity.Cache.NAME, EntityDefault.Cache.NAME, Principal.Cache.NAME, GroupMember.Cache.NAME, RoleMember.Cache.NAME}, allEntries = true)
56 void saveEntityPerson(IdentityManagementPersonDocument identityManagementPersonDocument);
57
58
59
60
61
62
63
64 Map<String,Object> getAttributeEntries( List<KimAttributeField> definitions );
65
66
67
68
69
70
71
72 void loadEntityToPersonDoc(IdentityManagementPersonDocument identityManagementPersonDocument, String principalId);
73
74
75
76
77
78
79
80 public void loadRoleDoc(IdentityManagementRoleDocument identityManagementRoleDocument, Role kimRole);
81
82
83
84
85
86
87
88 @CacheEvict(value={Role.Cache.NAME, RoleMember.Cache.NAME, Permission.Cache.NAME}, allEntries = true)
89 public void saveRole(IdentityManagementRoleDocument identityManagementRoleDocument);
90
91
92
93
94
95
96
97
98 public void loadGroupDoc(IdentityManagementGroupDocument identityManagementGroupDocument, Group kimGroup);
99
100
101
102
103
104
105
106 @CacheEvict(value={Group.Cache.NAME,GroupMember.Cache.NAME}, allEntries = true)
107 public void saveGroup(IdentityManagementGroupDocument identityManagementGroupDocument);
108
109 public BusinessObject getMember(MemberType memberType, String memberId);
110
111 public String getMemberName(MemberType memberType, String memberId);
112
113 public String getMemberNamespaceCode(MemberType memberType, String memberId);
114
115 public String getMemberName(MemberType memberType, BusinessObject member);
116
117 public String getMemberNamespaceCode(MemberType memberType, BusinessObject member);
118
119 public List<RoleResponsibilityActionBo> getRoleMemberResponsibilityActionImpls(String roleMemberId);
120
121 public List<DelegateTypeBo> getRoleDelegations(String roleId);
122
123 public KimDocumentRoleMember getKimDocumentRoleMember(MemberType memberType, String memberId, String roleId);
124
125 public String getMemberIdByName(MemberType memberType, String memberNamespaceCode, String memberName);
126
127 public void setDelegationMembersInDocument(IdentityManagementRoleDocument identityManagementRoleDocument);
128
129 public RoleMemberBo getRoleMember(String roleMemberId);
130
131 public List<KimDocumentRoleMember> getRoleMembers(Map<String,String> fieldValues);
132
133 public boolean canModifyEntity( String currentUserPrincipalId, String toModifyPrincipalId );
134 public boolean canOverrideEntityPrivacyPreferences( String currentUserPrincipalId, String toModifyPrincipalId );
135
136 public List<EntityEmployment> getEntityEmploymentInformationInfo(String entityId);
137 }