Package edu.vt.middleware.ldap.dsml
Class Dsmlv2
- java.lang.Object
-
- edu.vt.middleware.ldap.dsml.AbstractDsml
-
- edu.vt.middleware.ldap.dsml.Dsmlv2
-
- All Implemented Interfaces:
java.io.Serializable
public final class Dsmlv2 extends AbstractDsml
Dsmlv2
contains functions for converting LDAP search result sets into DSML version 2.- Version:
- $Revision: 1330 $ $Date: 2010-05-24 00:10:53 +0200 (Mon, 24 May 2010) $
- Author:
- Middleware Services
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class edu.vt.middleware.ldap.dsml.AbstractDsml
beanFactory, logger
-
-
Constructor Summary
Constructors Constructor Description Dsmlv2()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.dom4j.Document
createDsml(LdapResult result)
This will take the results of a prior LDAP query and convert it to a DSMLDocument
.org.dom4j.Document
createDsml(java.util.Iterator<javax.naming.directory.SearchResult> results)
This will take the results of a prior LDAP query and convert it to a DSMLDocument
.LdapResult
createLdapResult(org.dom4j.Document doc)
This will take a DSMLDocument
and convert it to aLdapResult
.java.util.Iterator<javax.naming.directory.SearchResult>
createSearchResults(org.dom4j.Document doc)
This will take a DSMLDocument
and convert it to an Iterator of LDAP search results.-
Methods inherited from class edu.vt.middleware.ldap.dsml.AbstractDsml
createDsmlAttribute, createDsmlAttributes, createDsmlEntry, createLdapEntry, getLdapBeanFactory, importDsml, importDsmlToLdapResult, outputDsml, outputDsml, setLdapBeanFactory
-
-
-
-
Method Detail
-
createDsml
public org.dom4j.Document createDsml(java.util.Iterator<javax.naming.directory.SearchResult> results)
This will take the results of a prior LDAP query and convert it to a DSMLDocument
.- Specified by:
createDsml
in classAbstractDsml
- Parameters:
results
-Iterator
of LDAP search results- Returns:
Document
-
createDsml
public org.dom4j.Document createDsml(LdapResult result)
This will take the results of a prior LDAP query and convert it to a DSMLDocument
.- Specified by:
createDsml
in classAbstractDsml
- Parameters:
result
-LdapResult
- Returns:
Document
-
createSearchResults
public java.util.Iterator<javax.naming.directory.SearchResult> createSearchResults(org.dom4j.Document doc)
This will take a DSMLDocument
and convert it to an Iterator of LDAP search results.- Parameters:
doc
-Document
of DSML- Returns:
Iterator
- of LDAP search results
-
createLdapResult
public LdapResult createLdapResult(org.dom4j.Document doc)
This will take a DSMLDocument
and convert it to aLdapResult
.- Specified by:
createLdapResult
in classAbstractDsml
- Parameters:
doc
-Document
of DSML- Returns:
LdapResult
-
-