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 LdapPrincipalDao
public Principal getPrincipalByName(String principalName)
getPrincipalByName
in interface LdapPrincipalDao
public <T> List<T> search(Class<T> type, Map<String,Object> criteria)
search
in interface LdapPrincipalDao
protected SearchControls getSearchControls()
public Entity getEntity(String entityId)
getEntity
in interface LdapPrincipalDao
entityId
- of user/person to grab entity information forEntity
public Entity getEntityByPrincipalId(String principalId)
getEntityByPrincipalId
in interface LdapPrincipalDao
principalId
- the principal id to look the entity up forpublic EntityDefault getEntityDefault(String entityId)
LdapPrincipalDao
getEntityDefault
in interface LdapPrincipalDao
public EntityDefault getEntityDefaultByPrincipalId(String principalId)
getEntityDefaultByPrincipalId
in interface LdapPrincipalDao
#getEntityDefaultInfo(String)
public EntityDefault getEntityDefaultByPrincipalName(String principalName)
getEntityDefaultByPrincipalName
in interface LdapPrincipalDao
public Entity getEntityByPrincipalName(String principalName)
getEntityByPrincipalName
in interface LdapPrincipalDao
public List<EntityDefault> lookupEntityDefault(Map<String,String> searchCriteria, boolean unbounded)
public List<String> lookupEntityIds(Map<String,String> searchCriteria)
lookupEntityIds
in interface LdapPrincipalDao
protected Map<String,Object> getLdapLookupCriteria(Map<String,String> searchCriteria)
searchCriteria
- kuali lookup infoMap
of LDAP query infopublic EntityPrivacyPreferences getEntityPrivacyPreferences(String entityId)
getEntityPrivacyPreferences
in interface LdapPrincipalDao
public Map<String,EntityNamePrincipalName> getDefaultNamesForPrincipalIds(List<String> principalIds)
getDefaultNamesForPrincipalIds
in interface LdapPrincipalDao
public Map<String,EntityNamePrincipalName> getDefaultNamesForEntityIds(List<String> entityIds)
getDefaultNamesForEntityIds
in interface LdapPrincipalDao
protected 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 LdapPrincipalDao
public ParameterService getParameterService()
public void setParameterService(ParameterService service)
public org.springframework.ldap.core.LdapTemplate getLdapTemplate()
getLdapTemplate
in interface LdapPrincipalDao
public void setLdapTemplate(org.springframework.ldap.core.LdapTemplate template)
setLdapTemplate
in interface LdapPrincipalDao
public Map<String,org.springframework.ldap.core.ContextMapper> getContextMappers()
getContextMappers
in interface LdapPrincipalDao
public void setContextMappers(Map<String,org.springframework.ldap.core.ContextMapper> contextMappers)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.