Clover Coverage Report - Implementation 2.0.0-SNAPSHOT
Coverage timestamp: Wed Dec 31 1969 19:00:00 EST
0   126   0   -
0   39   -   0
0     -  
1    
 
  UiDocumentService       Line # 40 0 - 0 0 - -1.0
 
No Tests
 
1    /*
2    * Copyright 2007-2008 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.service;
17   
18    import java.util.List;
19    import java.util.Map;
20   
21    import org.kuali.rice.kim.bo.entity.dto.KimEntityEmploymentInformationInfo;
22    import org.kuali.rice.kim.bo.group.dto.GroupInfo;
23    import org.kuali.rice.kim.bo.role.dto.KimRoleInfo;
24    import org.kuali.rice.kim.bo.role.impl.KimDelegationImpl;
25    import org.kuali.rice.kim.bo.role.impl.RoleMemberImpl;
26    import org.kuali.rice.kim.bo.role.impl.RoleResponsibilityActionImpl;
27    import org.kuali.rice.kim.bo.types.dto.AttributeDefinitionMap;
28    import org.kuali.rice.kim.bo.ui.KimDocumentRoleMember;
29    import org.kuali.rice.kim.document.IdentityManagementGroupDocument;
30    import org.kuali.rice.kim.document.IdentityManagementPersonDocument;
31    import org.kuali.rice.kim.document.IdentityManagementRoleDocument;
32    import org.kuali.rice.kns.bo.BusinessObject;
33   
34    /**
35    * This is a description of what this class does - shyu don't forget to fill this in.
36    *
37    * @author Kuali Rice Team (rice.collab@kuali.org)
38    *
39    */
 
40    public interface UiDocumentService {
41    /**
42    *
43    * This method to populate Entity tables from person document pending tables when it is approved.
44    *
45    * @param identityManagementPersonDocument
46    */
47    void saveEntityPerson(IdentityManagementPersonDocument identityManagementPersonDocument);
48   
49    /**
50    *
51    * This method is to set up the DD attribute entry map for role qualifiers, so it can be rendered.
52    *
53    * @param personDocRole
54    */
55    Map<String,Object> getAttributeEntries( AttributeDefinitionMap definitions );
56    /**
57    *
58    * This method is to load entity to person document pending Bos when user 'initiate' a document for 'editing' entity.
59    *
60    * @param identityManagementPersonDocument
61    * @param kimEntity
62    */
63    void loadEntityToPersonDoc(IdentityManagementPersonDocument identityManagementPersonDocument, String principalId);
64   
65    /**
66    *
67    * This method loads a role document
68    *
69    * @param identityManagementRoleDocument
70    */
71    public void loadRoleDoc(IdentityManagementRoleDocument identityManagementRoleDocument, KimRoleInfo kimRole);
72   
73    /**
74    *
75    * This method ...
76    *
77    * @param identityManagementRoleDocument
78    */
79    public void saveRole(IdentityManagementRoleDocument identityManagementRoleDocument);
80   
81   
82    /**
83    *
84    * This method loads a role document
85    *
86    * @param identityManagementRoleDocument
87    */
88    public void loadGroupDoc(IdentityManagementGroupDocument identityManagementGroupDocument, GroupInfo kimGroup);
89   
90    /**
91    *
92    * This method ...
93    *
94    * @param identityManagementRoleDocument
95    */
96    public void saveGroup(IdentityManagementGroupDocument identityManagementGroupDocument);
97   
98    public BusinessObject getMember(String memberTypeCode, String memberId);
99   
100    public String getMemberName(String memberTypeCode, String memberId);
101   
102    public String getMemberNamespaceCode(String memberTypeCode, String memberId);
103   
104    public String getMemberName(String memberTypeCode, BusinessObject member);
105   
106    public String getMemberNamespaceCode(String memberTypeCode, BusinessObject member);
107   
108    public List<RoleResponsibilityActionImpl> getRoleMemberResponsibilityActionImpls(String roleMemberId);
109   
110    public List<KimDelegationImpl> getRoleDelegations(String roleId);
111   
112    public KimDocumentRoleMember getKimDocumentRoleMember(String memberTypeCode, String memberId, String roleId);
113   
114    public String getMemberIdByName(String memberTypeCode, String memberNamespaceCode, String memberName);
115   
116    public void setDelegationMembersInDocument(IdentityManagementRoleDocument identityManagementRoleDocument);
117   
118    public RoleMemberImpl getRoleMember(String roleMemberId);
119   
120    public List<KimDocumentRoleMember> getRoleMembers(Map<String,String> fieldValues);
121   
122    public boolean canModifyEntity( String currentUserPrincipalId, String toModifyPrincipalId );
123    public boolean canOverrideEntityPrivacyPreferences( String currentUserPrincipalId, String toModifyPrincipalId );
124   
125    public List<KimEntityEmploymentInformationInfo> getEntityEmploymentInformationInfo(String entityId);
126    }