public final class Dsmlv1 extends AbstractDsml
Dsmlv1
contains functions for converting LDAP search result sets
into DSML version 1.beanFactory, logger
Constructor and Description |
---|
Dsmlv1()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
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 . |
protected List<org.dom4j.Element> |
createDsmlAttributes(LdapAttributes ldapAttributes,
org.dom4j.Namespace ns)
This will return a list of DSML attribute elements from the supplied
LdapAttributes . |
protected LdapEntry |
createLdapEntry(org.dom4j.Element entryElement)
This will take a DSML
Element containing an entry of type
|
LdapResult |
createLdapResult(org.dom4j.Document doc)
This will take a DSML
Document and convert it to an
LdapResult . |
Iterator<SearchResult> |
createSearchResults(org.dom4j.Document doc)
This will take a DSML
Document and convert it to an Iterator
of LDAP search results. |
createDsmlAttribute, createDsmlEntry, getLdapBeanFactory, importDsml, importDsmlToLdapResult, outputDsml, outputDsml, setLdapBeanFactory
public org.dom4j.Document createDsml(Iterator<SearchResult> results)
Document
.createDsml
in class AbstractDsml
results
- Iterator
of LDAP search resultsDocument
public org.dom4j.Document createDsml(LdapResult result)
Document
.createDsml
in class AbstractDsml
result
- LdapResult
Document
protected List<org.dom4j.Element> createDsmlAttributes(LdapAttributes ldapAttributes, org.dom4j.Namespace ns)
LdapAttributes
.createDsmlAttributes
in class AbstractDsml
ldapAttributes
- LdapAttributes
ns
- Namespace
of DSMLList
of elementspublic Iterator<SearchResult> createSearchResults(org.dom4j.Document doc)
Document
and convert it to an Iterator
of LDAP search results.doc
- Document
of DSMLIterator
- of LDAP search resultspublic LdapResult createLdapResult(org.dom4j.Document doc)
Document
and convert it to an
LdapResult
.createLdapResult
in class AbstractDsml
doc
- Document
of DSMLLdapResult
protected LdapEntry createLdapEntry(org.dom4j.Element entryElement)
Element
containing an entry of type
createLdapEntry
in class AbstractDsml
entryElement
- Element
of DSML contentLdapEntry
Copyright © 2019. All rights reserved.