edu.vt.middleware.ldap.dsml
Class Dsmlv2

java.lang.Object
  extended by edu.vt.middleware.ldap.dsml.AbstractDsml
      extended by edu.vt.middleware.ldap.dsml.Dsmlv2
All Implemented Interfaces:
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-23 18:10:53 -0400 (Sun, 23 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
Dsmlv2()
          Default constructor.
 
Method Summary
 org.dom4j.Document createDsml(Iterator<SearchResult> results)
          This will take the results of a prior LDAP query and convert it to a DSML Document.
 org.dom4j.Document createDsml(LdapResult result)
          This will take the results of a prior LDAP query and convert it to a DSML Document.
 LdapResult createLdapResult(org.dom4j.Document doc)
          This will take a DSML Document and convert it to a LdapResult.
 Iterator<SearchResult> createSearchResults(org.dom4j.Document doc)
          This will take a DSML Document 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Dsmlv2

public Dsmlv2()
Default constructor.

Method Detail

createDsml

public org.dom4j.Document createDsml(Iterator<SearchResult> results)
This will take the results of a prior LDAP query and convert it to a DSML Document.

Specified by:
createDsml in class AbstractDsml
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 DSML Document.

Specified by:
createDsml in class AbstractDsml
Parameters:
result - LdapResult
Returns:
Document

createSearchResults

public Iterator<SearchResult> createSearchResults(org.dom4j.Document doc)
This will take a DSML Document 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 DSML Document and convert it to a LdapResult.

Specified by:
createLdapResult in class AbstractDsml
Parameters:
doc - Document of DSML
Returns:
LdapResult


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