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
Dsmlv2contains 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.DocumentcreateDsml(LdapResult result)This will take the results of a prior LDAP query and convert it to a DSMLDocument.org.dom4j.DocumentcreateDsml(java.util.Iterator<javax.naming.directory.SearchResult> results)This will take the results of a prior LDAP query and convert it to a DSMLDocument.LdapResultcreateLdapResult(org.dom4j.Document doc)This will take a DSMLDocumentand convert it to aLdapResult.java.util.Iterator<javax.naming.directory.SearchResult>createSearchResults(org.dom4j.Document doc)This will take a DSMLDocumentand 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:
createDsmlin classAbstractDsml- Parameters:
results-Iteratorof 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:
createDsmlin classAbstractDsml- Parameters:
result-LdapResult- Returns:
Document
-
createSearchResults
public java.util.Iterator<javax.naming.directory.SearchResult> createSearchResults(org.dom4j.Document doc)
This will take a DSMLDocumentand convert it to an Iterator of LDAP search results.- Parameters:
doc-Documentof DSML- Returns:
Iterator- of LDAP search results
-
createLdapResult
public LdapResult createLdapResult(org.dom4j.Document doc)
This will take a DSMLDocumentand convert it to aLdapResult.- Specified by:
createLdapResultin classAbstractDsml- Parameters:
doc-Documentof DSML- Returns:
LdapResult
-
-