spring-ldap-ldif-batch

org.springframework.ldap.ldif.batch
Class LdifAggregator

java.lang.Object
  extended by org.springframework.ldap.ldif.batch.LdifAggregator
All Implemented Interfaces:
org.springframework.batch.item.file.transform.LineAggregator<org.springframework.ldap.core.LdapAttributes>

public class LdifAggregator
extends Object
implements org.springframework.batch.item.file.transform.LineAggregator<org.springframework.ldap.core.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

Constructor Summary
LdifAggregator()
           
 
Method Summary
 String aggregate(org.springframework.ldap.core.LdapAttributes item)
          Returns a String containing a properly formated LDIF.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LdifAggregator

public LdifAggregator()
Method Detail

aggregate

public String aggregate(org.springframework.ldap.core.LdapAttributes item)
Returns a String containing a properly formated LDIF.

Specified by:
aggregate in interface org.springframework.batch.item.file.transform.LineAggregator<org.springframework.ldap.core.LdapAttributes>
Parameters:
item - LdapAttributes object to convert to string.
Returns:
string representation of the object LDIF format (in accordance with RFC 2849).

spring-ldap-ldif-batch