|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kim.dao.impl.LdapPrincipalDaoImpl
public class LdapPrincipalDaoImpl
Integrated Data Access via LDAP to EDS. Provides implementation to interface method for using Spring-LDAP to communicate with EDS.
Constructor Summary | |
---|---|
LdapPrincipalDaoImpl()
|
Method Summary | ||
---|---|---|
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)
|
|
|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LdapPrincipalDaoImpl()
Method Detail |
---|
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 for
Entity
public Entity getEntityByPrincipalId(String principalId)
getEntityByPrincipalId
in interface LdapPrincipalDao
principalId
- the principal id to look the entity up for
public 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 info
Map
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 boolean isMapped(String kimAttribute)
protected String getLdapAttribute(String kimAttribute)
protected Object getLdapValue(String kimAttribute)
public void setKimConstants(Constants constants)
public Constants getKimConstants()
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |