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,org.kuali.rice.kim.api.identity.principal.EntityNamePrincipalName> |
getDefaultNamesForEntityIds(List<String> entityIds) |
Map<String,org.kuali.rice.kim.api.identity.principal.EntityNamePrincipalName> |
getDefaultNamesForPrincipalIds(List<String> principalIds) |
org.kuali.rice.kim.api.identity.entity.Entity |
getEntity(String entityId)
FIND entity objects based on the given criteria.
|
org.kuali.rice.kim.api.identity.entity.Entity |
getEntityByPrincipalId(String principalId)
Fetches full entity info, populated from EDS, based on the Entity's principal id
|
org.kuali.rice.kim.api.identity.entity.Entity |
getEntityByPrincipalName(String principalName) |
org.kuali.rice.kim.api.identity.entity.EntityDefault |
getEntityDefault(String entityId)
Find entity objects based on the given criteria.
|
org.kuali.rice.kim.api.identity.entity.EntityDefault |
getEntityDefaultByPrincipalId(String principalId)
entityid and principalId are treated as the same.
|
org.kuali.rice.kim.api.identity.entity.EntityDefault |
getEntityDefaultByPrincipalName(String principalName) |
org.kuali.rice.kim.api.identity.privacy.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) |
org.kuali.rice.coreservice.framework.parameter.ParameterService |
getParameterService() |
org.kuali.rice.kim.api.identity.principal.Principal |
getPrincipal(String principalId)
In EDS, the principalId, principalName, and entityId will all be the same.
|
org.kuali.rice.kim.api.identity.principal.Principal |
getPrincipalByName(String principalName)
Assuming he principalId, principalName, and entityId will all be the same.
|
protected SearchControls |
getSearchControls() |
protected boolean |
isMapped(String kimAttribute) |
List<org.kuali.rice.kim.api.identity.entity.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(org.kuali.rice.coreservice.framework.parameter.ParameterService service) |
public org.kuali.rice.kim.api.identity.principal.Principal getPrincipal(String principalId)
getPrincipal in interface LdapPrincipalDaopublic org.kuali.rice.kim.api.identity.principal.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 org.kuali.rice.kim.api.identity.entity.Entity getEntity(String entityId)
getEntity in interface LdapPrincipalDaoentityId - of user/person to grab entity information forEntitypublic org.kuali.rice.kim.api.identity.entity.Entity getEntityByPrincipalId(String principalId)
getEntityByPrincipalId in interface LdapPrincipalDaoprincipalId - the principal id to look the entity up forpublic org.kuali.rice.kim.api.identity.entity.EntityDefault getEntityDefault(String entityId)
LdapPrincipalDaogetEntityDefault in interface LdapPrincipalDaopublic org.kuali.rice.kim.api.identity.entity.EntityDefault getEntityDefaultByPrincipalId(String principalId)
getEntityDefaultByPrincipalId in interface LdapPrincipalDao#getEntityDefaultInfo(String)public org.kuali.rice.kim.api.identity.entity.EntityDefault getEntityDefaultByPrincipalName(String principalName)
getEntityDefaultByPrincipalName in interface LdapPrincipalDaopublic org.kuali.rice.kim.api.identity.entity.Entity getEntityByPrincipalName(String principalName)
getEntityByPrincipalName in interface LdapPrincipalDaopublic List<org.kuali.rice.kim.api.identity.entity.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 org.kuali.rice.kim.api.identity.privacy.EntityPrivacyPreferences getEntityPrivacyPreferences(String entityId)
getEntityPrivacyPreferences in interface LdapPrincipalDaopublic Map<String,org.kuali.rice.kim.api.identity.principal.EntityNamePrincipalName> getDefaultNamesForPrincipalIds(List<String> principalIds)
getDefaultNamesForPrincipalIds in interface LdapPrincipalDaopublic Map<String,org.kuali.rice.kim.api.identity.principal.EntityNamePrincipalName> getDefaultNamesForEntityIds(List<String> entityIds)
getDefaultNamesForEntityIds in interface LdapPrincipalDaoprotected boolean isMapped(String kimAttribute)
public void setKimConstants(Constants constants)
public Constants getKimConstants()
getKimConstants in interface LdapPrincipalDaopublic org.kuali.rice.coreservice.framework.parameter.ParameterService getParameterService()
public void setParameterService(org.kuali.rice.coreservice.framework.parameter.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 LdapPrincipalDaoCopyright © 2005–2018. All rights reserved.