1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.kim.dao;
17
18 import java.util.List;
19 import java.util.Map;
20
21 import org.kuali.rice.kim.api.identity.entity.Entity;
22 import org.kuali.rice.kim.api.identity.entity.EntityDefault;
23 import org.kuali.rice.kim.api.identity.principal.EntityNamePrincipalName;
24 import org.kuali.rice.kim.api.identity.principal.Principal;
25 import org.kuali.rice.kim.api.identity.privacy.EntityPrivacyPreferences;
26 import org.kuali.rice.kim.util.Constants;
27 import org.springframework.ldap.core.ContextMapper;
28 import org.springframework.ldap.core.LdapTemplate;
29
30
31
32
33
34
35
36 public interface LdapPrincipalDao {
37 LdapTemplate getLdapTemplate();
38
39 void setLdapTemplate(LdapTemplate template);
40
41
42
43
44 Principal getPrincipal(String principalId);
45
46
47
48
49 Principal getPrincipalByName(String principalName);
50
51 <T> List<T> search(Class<T> type, Map<String, Object> criteria);
52
53
54 EntityDefault getEntityDefault(String entityId);
55
56 Entity getEntity(String entityId);
57
58
59
60
61
62
63 Entity getEntityByPrincipalId(String principalId);
64
65 Entity getEntityByPrincipalName(String principalName);
66
67
68
69
70
71
72 EntityDefault getEntityDefaultByPrincipalId(String principalId);
73
74 EntityDefault getEntityDefaultByPrincipalName(String principalName);
75
76 List<String> lookupEntityIds(Map<String,String> searchCriteria);
77
78 EntityPrivacyPreferences getEntityPrivacyPreferences(String entityId);
79
80 Map<String, EntityNamePrincipalName> getDefaultNamesForPrincipalIds(List<String> principalIds);
81
82 Map<String, EntityNamePrincipalName> getDefaultNamesForEntityIds(List<String> entityIds);
83
84 Map<String, ContextMapper> getContextMappers();
85
86 Constants getKimConstants();
87 }