Interface BaseLdapNameAware
-
public interface BaseLdapNameAwareInterface to be implemented by classes that want to have access to the base context used in the activeContextSource. There are several cases in which services may want to have access to the base context, e.g. when working with groups (groupOfNamesobjectclass), in which case the full DN of each group member needs to be specified in the attribute value.If a class implements this interface and a
BaseLdapPathBeanPostProcessoris defined in theApplicationContext, the default base path will automatically passed to thesetBaseLdapPath(javax.naming.ldap.LdapName)method on initialization.NB:The
ContextSourceneeds to be a subclass ofAbstractContextSourcefor this mechanism to work.- Since:
- 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsetBaseLdapPath(javax.naming.ldap.LdapName baseLdapPath)Set the base LDAP path specified in the currentApplicationContext.
-