XQuery Function Documentation

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

java:org.exist.xquery.functions.securitymanager.SecurityManagerModule

Module for interacting with the Security Manager

sm:get-account-metadata

sm:get-account-metadata($username as xs:string, $attribute as xs:anyURI) as xs:string?

Gets a metadata attribute value for an account

Parameters:
$username The username of the account to retrieve metadata from.
$attribute The fully qualified metadata attribute key name
Returns:
xs:string? : The metadata value

sm:get-account-metadata-keys

sm:get-account-metadata-keys() as xs:anyURI*

Gets a sequence of the metadata attribute keys that may be used for an account.

Returns:
xs:anyURI* : The fully qualified metadata attribute key names

sm:get-account-metadata-keys

sm:get-account-metadata-keys($username as xs:string) as xs:anyURI*

Gets a sequence of the metadata attribute keys present for an account

Parameters:
$username The username of the account to retrieve metadata from.
Returns:
xs:anyURI* : The fully qualified metadata attribute key names

sm:set-account-metadata

sm:set-account-metadata($username as xs:string, $attribute as xs:anyURI, $value as xs:string) as empty-sequence()

Sets a metadata attribute value for an account

Parameters:
$username The username of the account to set metadata for.
$attribute The metadata attribute key.
$value The metadata value,
Returns:
empty-sequence()