edu.vt.middleware.ldap.ldif
Class LdifResultConverter

java.lang.Object
  extended by edu.vt.middleware.ldap.ldif.LdifResultConverter

public class LdifResultConverter
extends Object

LdifResultConverter provides utility methods for converting LdapResult to and from LDIF in string format.

Version:
$Revision: 1330 $ $Date: 2010-05-23 18:10:53 -0400 (Sun, 23 May 2010) $
Author:
Middleware Services

Field Summary
protected  LdapBeanFactory beanFactory
          Ldap bean factory.
protected  org.apache.commons.logging.Log logger
          Log for this class.
 
Constructor Summary
LdifResultConverter()
           
 
Method Summary
 LdapResult fromLdif(String ldif)
          This reads any entries in the supplied LDIF into this LdifResult.
 LdapBeanFactory getLdapBeanFactory()
          Returns the factory for creating ldap beans.
 void setLdapBeanFactory(LdapBeanFactory lbf)
          Sets the factory for creating ldap beans.
 String toLdif(LdapResult result)
          This returns this LdifResult as LDIF.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final org.apache.commons.logging.Log logger
Log for this class.


beanFactory

protected LdapBeanFactory beanFactory
Ldap bean factory.

Constructor Detail

LdifResultConverter

public LdifResultConverter()
Method Detail

getLdapBeanFactory

public LdapBeanFactory getLdapBeanFactory()
Returns the factory for creating ldap beans.

Returns:
LdapBeanFactory

setLdapBeanFactory

public void setLdapBeanFactory(LdapBeanFactory lbf)
Sets the factory for creating ldap beans.

Parameters:
lbf - LdapBeanFactory

toLdif

public String toLdif(LdapResult result)
This returns this LdifResult as LDIF.

Parameters:
result - LdapResult to convert
Returns:
String

fromLdif

public LdapResult fromLdif(String ldif)
This reads any entries in the supplied LDIF into this LdifResult.

Parameters:
ldif - String to read
Returns:
LdapResult


Copyright © 2003-2010 Virginia Tech. All Rights Reserved.