Package edu.vt.middleware.ldap.ldif
Class LdifResultConverter
- java.lang.Object
-
- edu.vt.middleware.ldap.ldif.LdifResultConverter
-
public class LdifResultConverter extends java.lang.ObjectLdifResultConverterprovides utility methods for convertingLdapResultto and from LDIF in string format.- Version:
- $Revision: 1330 $ $Date: 2010-05-24 00:10:53 +0200 (Mon, 24 May 2010) $
- Author:
- Middleware Services
-
-
Field Summary
Fields Modifier and Type Field Description protected LdapBeanFactorybeanFactoryLdap bean factory.protected org.apache.commons.logging.LogloggerLog for this class.
-
Constructor Summary
Constructors Constructor Description LdifResultConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LdapResultfromLdif(java.lang.String ldif)This reads any entries in the supplied LDIF into thisLdifResult.LdapBeanFactorygetLdapBeanFactory()Returns the factory for creating ldap beans.voidsetLdapBeanFactory(LdapBeanFactory lbf)Sets the factory for creating ldap beans.java.lang.StringtoLdif(LdapResult result)This returns thisLdifResultas LDIF.
-
-
-
Field Detail
-
logger
protected final org.apache.commons.logging.Log logger
Log for this class.
-
beanFactory
protected LdapBeanFactory beanFactory
Ldap bean factory.
-
-
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 java.lang.String toLdif(LdapResult result)
This returns thisLdifResultas LDIF.- Parameters:
result-LdapResultto convert- Returns:
String
-
fromLdif
public LdapResult fromLdif(java.lang.String ldif)
This reads any entries in the supplied LDIF into thisLdifResult.- Parameters:
ldif-Stringto read- Returns:
LdapResult
-
-