@Service public class SecurityServiceLdap extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) org.springframework.ldap.core.LdapTemplate |
ldapTemplate |
(package private) static org.apache.log4j.Logger |
logger |
| Constructor and Description |
|---|
SecurityServiceLdap() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.ldap.core.LdapTemplate |
getLdapTemplate() |
<T> List<T> |
getObjectListFromLdap(String path,
String filter,
IContextMapper<T> contextMapper)
Ermittelt anhand eines gegebenen Path und eines Filters Daten vom LDAP. die Daten werden mit
hilfe eines Mappers auf eine Bean gemappt.
|
List<Role> |
getRoleListFromLdapAndReloadNames(String path,
String filter,
String userSearchFilter,
String userSearchBase,
ContextMapper<User> userContextMapper,
ContextMapper<Role> roleContextMapper)
Ermittelt anhand eines gegebenen Path und eines Filters Daten vom LDAP. die Daten werden mit
hilfe eines Mappers auf eine Bean gemappt.
|
void |
setLdapTemplate(org.springframework.ldap.core.LdapTemplate ldapTemplate) |
static final org.apache.log4j.Logger logger
org.springframework.ldap.core.LdapTemplate ldapTemplate
@Cacheable(cacheName="ldapCache",
keyGenerator=@KeyGenerator(name="ListCacheKeyGenerator",properties={@Property(name="useReflection",value="true"),@Property(name="checkforCycles",value="true"),@Property(name="includeMethod",value="true")}))
public <T> List<T> getObjectListFromLdap(String path,
String filter,
IContextMapper<T> contextMapper)
T - path - Pathfilter - SuchfiltercontextMapper - Mapper zum Abbilden der Daten auf eine Bean@Cacheable(cacheName="ldapCache",
keyGenerator=@KeyGenerator(name="ListCacheKeyGenerator",properties={@Property(name="useReflection",value="true"),@Property(name="checkforCycles",value="true"),@Property(name="includeMethod",value="true")}))
public List<Role> getRoleListFromLdapAndReloadNames(String path,
String filter,
String userSearchFilter,
String userSearchBase,
ContextMapper<User> userContextMapper,
ContextMapper<Role> roleContextMapper)
path - Pathfilter - SuchfilteruserSearchFilter - userSearchBase - userContextMapper - Mapper zum Abbilden der Daten auf eine BeanroleContextMapper - Mapper zum Abbilden der Daten auf eine Beanpublic org.springframework.ldap.core.LdapTemplate getLdapTemplate()
public void setLdapTemplate(org.springframework.ldap.core.LdapTemplate ldapTemplate)
Copyright © 2019. All rights reserved.