XQuery Function Documentation

Search and Browse

http://exist-db.org/xquery/jndi

java:org.exist.xquery.modules.jndi.JNDIModule

A module for performing JNDI queries against Directories, returning XML representations of the results.

jndi:close-context

jndi:close-context($directory-context as xs:integer) as item()

Closes a JNDI Context

Parameters:
$directory-contextThe directory context handle from a jndi:get-dir-context() call
Returns:
item()

jndi:create

jndi:create($directory-context as xs:integer, $dn as xs:string, $attributes as element()) as item()

Create a JNDI Directory entry.

Parameters:
$directory-contextThe directory context handle from a jndi:get-dir-context() call
$dnThe Distinguished Name
$attributesThe entry attributes to be set in the form <attributes><attribute name="" value=""/></attributes>. You can also optionally specify ordered="true" for an attribute.
Returns:
item()

jndi:delete

jndi:delete($directory-context as xs:integer, $dn as xs:string) as item()

Delete a JNDI Directory entry.

Parameters:
$directory-contextThe directory context handle from a jndi:get-dir-context() call
$dnThe Distinguished Name
Returns:
item()

jndi:get-dir-context

jndi:get-dir-context($properties as element()?) as xs:long?

Opens a JNDI Directory Context.

Parameters:
$properties?The JNDI Directory Context environment properties to be set in the form <properties><property name="" value=""/></properties>.
Returns:
xs:long? : the directory context handle

jndi:modify

jndi:modify($directory-context as xs:integer, $dn as xs:string, $attributes as element()) as item()

Modify a JNDI Directory entry.

Parameters:
$directory-contextThe directory context handle from a jndi:get-dir-context() call
$dnThe Distinguished Name
$attributesThe entry attributes to be set in the form <attributes><attribute name="" value="" operation="add | replace | remove"/></attributes>. You can also optionally specify ordered="true" for an attribute.
Returns:
item()

jndi:rename

jndi:rename($directory-context as xs:integer, $old-dn as xs:string, $new-dn as xs:string) as item()

Rename a JNDI Directory entry.

Parameters:
$directory-contextThe directory context handle from a jndi:get-dir-context() call
$old-dnThe Distinguished Name to rename
$new-dnThe new Distinguished Name
Returns:
item()

jndi:search

jndi:search($directory-context as xs:integer, $dn as xs:string, $search-attributes as element()) as node()?

Searches a JNDI Directory by attributes.

Parameters:
$directory-contextThe directory context handle from a jndi:get-dir-context() call
$dnThe Distinguished Name
$search-attributesThe search attributes in the form <attributes><attribute name="" value=""/></attributes>.
Returns:
node()? : the search results in DSML format

jndi:search

jndi:search($directory-context as xs:integer, $dn as xs:string, $filter as xs:string, $scope as xs:string) as node()?

Searches a JNDI Directory by filter.

Parameters:
$directory-contextThe directory context handle from a jndi:get-dir-context() call
$dnThe Distinguished Name
$filterThe filter. The format and interpretation of filter follows RFC 2254 with the following interpretations for 'attr' and 'value' mentioned in the RFC. 'attr' is the attribute's identifier. 'value' is the string represention the attribute's value. The translation of this string representation into the attribute's value is directory-specific.
$scopeThe scope, which has a value of 'object', 'onelevel' or 'subtree'
Returns:
node()? : the search results in DSML format