Package edu.vt.middleware.ldap.ldif
Class LdifResultConverter
- java.lang.Object
-
- edu.vt.middleware.ldap.ldif.LdifResultConverter
-
public class LdifResultConverter extends java.lang.Object
LdifResultConverter
provides utility methods for convertingLdapResult
to 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 LdapBeanFactory
beanFactory
Ldap bean factory.protected org.apache.commons.logging.Log
logger
Log for this class.
-
Constructor Summary
Constructors Constructor Description LdifResultConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LdapResult
fromLdif(java.lang.String ldif)
This reads any entries in the supplied LDIF into thisLdifResult
.LdapBeanFactory
getLdapBeanFactory()
Returns the factory for creating ldap beans.void
setLdapBeanFactory(LdapBeanFactory lbf)
Sets the factory for creating ldap beans.java.lang.String
toLdif(LdapResult result)
This returns thisLdifResult
as 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 thisLdifResult
as LDIF.- Parameters:
result
-LdapResult
to convert- Returns:
String
-
fromLdif
public LdapResult fromLdif(java.lang.String ldif)
This reads any entries in the supplied LDIF into thisLdifResult
.- Parameters:
ldif
-String
to read- Returns:
LdapResult
-
-