public class LdapPrincipalDaoImpl extends Object implements LdapPrincipalDao
| Constructor and Description |
|---|
LdapPrincipalDaoImpl() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,org.springframework.ldap.core.ContextMapper> |
getContextMappers() |
Map<String,EntityNamePrincipalName> |
getDefaultNamesForEntityIds(List<String> entityIds) |
Map<String,EntityNamePrincipalName> |
getDefaultNamesForPrincipalIds(List<String> principalIds) |
Entity |
getEntity(String entityId)
FIND entity objects based on the given criteria.
|
Entity |
getEntityByPrincipalId(String principalId)
Fetches full entity info, populated from EDS, based on the Entity's principal id
|
Entity |
getEntityByPrincipalName(String principalName) |
EntityDefault |
getEntityDefault(String entityId)
Find entity objects based on the given criteria.
|
EntityDefault |
getEntityDefaultByPrincipalId(String principalId)
entityid and principalId are treated as the same.
|
EntityDefault |
getEntityDefaultByPrincipalName(String principalName) |
EntityPrivacyPreferences |
getEntityPrivacyPreferences(String entityId) |
protected Matcher |
getKimAttributeMatcher(String kimAttribute) |
Constants |
getKimConstants() |
protected String |
getLdapAttribute(String kimAttribute) |
protected Map<String,Object> |
getLdapLookupCriteria(Map<String,String> searchCriteria)
Converts Kuali Lookup parameters into LDAP query parameters
|
org.springframework.ldap.core.LdapTemplate |
getLdapTemplate() |
protected Object |
getLdapValue(String kimAttribute) |
ParameterService |
getParameterService() |
Principal |
getPrincipal(String principalId)
In EDS, the principalId, principalName, and entityId will all be the same.
|
Principal |
getPrincipalByName(String principalName)
Assuming he principalId, principalName, and entityId will all be the same.
|
protected SearchControls |
getSearchControls() |
protected boolean |
isMapped(String kimAttribute) |
List<EntityDefault> |
lookupEntityDefault(Map<String,String> searchCriteria,
boolean unbounded) |
List<String> |
lookupEntityIds(Map<String,String> searchCriteria) |
<T> List<T> |
search(Class<T> type,
Map<String,Object> criteria) |
void |
setContextMappers(Map<String,org.springframework.ldap.core.ContextMapper> contextMappers) |
void |
setKimConstants(Constants constants) |
void |
setLdapTemplate(org.springframework.ldap.core.LdapTemplate template) |
void |
setParameterService(ParameterService service) |
public LdapPrincipalDaoImpl()
public Principal getPrincipal(String principalId)
getPrincipal in interface LdapPrincipalDaopublic Principal getPrincipalByName(String principalName)
getPrincipalByName in interface LdapPrincipalDaopublic <T> List<T> search(Class<T> type, Map<String,Object> criteria)
search in interface LdapPrincipalDaoprotected SearchControls getSearchControls()
public Entity getEntity(String entityId)
getEntity in interface LdapPrincipalDaoentityId - of user/person to grab entity information forEntitypublic Entity getEntityByPrincipalId(String principalId)
getEntityByPrincipalId in interface LdapPrincipalDaoprincipalId - the principal id to look the entity up forpublic EntityDefault getEntityDefault(String entityId)
LdapPrincipalDaogetEntityDefault in interface LdapPrincipalDaopublic EntityDefault getEntityDefaultByPrincipalId(String principalId)
getEntityDefaultByPrincipalId in interface LdapPrincipalDao#getEntityDefaultInfo(String)public EntityDefault getEntityDefaultByPrincipalName(String principalName)
getEntityDefaultByPrincipalName in interface LdapPrincipalDaopublic Entity getEntityByPrincipalName(String principalName)
getEntityByPrincipalName in interface LdapPrincipalDaopublic List<EntityDefault> lookupEntityDefault(Map<String,String> searchCriteria, boolean unbounded)
public List<String> lookupEntityIds(Map<String,String> searchCriteria)
lookupEntityIds in interface LdapPrincipalDaoprotected Map<String,Object> getLdapLookupCriteria(Map<String,String> searchCriteria)
searchCriteria - kuali lookup infoMap of LDAP query infopublic EntityPrivacyPreferences getEntityPrivacyPreferences(String entityId)
getEntityPrivacyPreferences in interface LdapPrincipalDaopublic Map<String,EntityNamePrincipalName> getDefaultNamesForPrincipalIds(List<String> principalIds)
getDefaultNamesForPrincipalIds in interface LdapPrincipalDaopublic Map<String,EntityNamePrincipalName> getDefaultNamesForEntityIds(List<String> entityIds)
getDefaultNamesForEntityIds in interface LdapPrincipalDaoprotected Matcher getKimAttributeMatcher(String kimAttribute)
protected String getLdapAttribute(String kimAttribute)
protected Object getLdapValue(String kimAttribute)
public void setKimConstants(Constants constants)
public Constants getKimConstants()
getKimConstants in interface LdapPrincipalDaopublic ParameterService getParameterService()
public void setParameterService(ParameterService service)
public org.springframework.ldap.core.LdapTemplate getLdapTemplate()
getLdapTemplate in interface LdapPrincipalDaopublic void setLdapTemplate(org.springframework.ldap.core.LdapTemplate template)
setLdapTemplate in interface LdapPrincipalDaopublic Map<String,org.springframework.ldap.core.ContextMapper> getContextMappers()
getContextMappers in interface LdapPrincipalDaopublic void setContextMappers(Map<String,org.springframework.ldap.core.ContextMapper> contextMappers)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.