org.springframework.ldap.ldif.batch
Class LdifAggregator
java.lang.Object
org.springframework.ldap.ldif.batch.LdifAggregator
- All Implemented Interfaces:
- org.springframework.batch.item.file.transform.LineAggregator<LdapAttributes>
public class LdifAggregator
- extends Object
- implements org.springframework.batch.item.file.transform.LineAggregator<LdapAttributes>
The LdifAggregator
object is an implementation of the LineAggregator
interface for use with a FlatFileItemWriter
to write LDIF records to a file.
- Author:
- Keith Barlow
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LdifAggregator
public LdifAggregator()
aggregate
public String aggregate(LdapAttributes item)
- Returns a
String
containing a properly formated LDIF.
- Specified by:
aggregate
in interface org.springframework.batch.item.file.transform.LineAggregator<LdapAttributes>
- Parameters:
item
- LdapAttributes object to convert to string.
- Returns:
- string representation of the object LDIF format (in accordance with RFC 2849).