ConverterManager interface can
- be obtained from the
- o.s.l.odm.typeconversion.impl.ConvertManagerFactoryBean.
- The factory bean requires converter configurations to be declared in the
- bean configuration.ConverterConfig classes, each one defining some conversion
- logic. A converter config is an instance of
- o.s.l.odm.typeconversion.impl.ConverterManagerFactoryBean.ConverterConfig.
- The config defines a set of source classes, the set of target classes, and
- an implementation of the
- org.springframework.ldap.odm.typeconversion.impl.Converter
- interface which provides the logic to convert from the
- fromClass to the toClass. A sample configuration
- is provided in the following example:org.springframework.ldap.core.support.DefaultIncrementalAttributesMapper
- helps working with this kind of attributes, as follows:
- - The DirContextAdapter will only read the visible attributes per default. This is because the - operational attributes will only be returned by the server if explicitly asked for, and there - is no way for Spring LDAP to know what attributes to ask for. This means that the DirContextAdapter - will not be populated with the operational attributes, and hence the removeAttributeValue - will not have any effect (since from the DirContextAdapter's point of view, it wasn't there in the - first place). -
-- There are basically two ways to do this: -
-