XQuery Function Documentation

Search and Browse

packages:get-local#1

packages:get-local($type as xs:string) as item()

returns a list of locally installed apps of a given type ('application' or 'library'). It is checked wether the calling user has to the given package.

Parameters:
$type
Returns:
item()*

packages:get-local-applications#0

packages:get-local-applications() as item()

fetch the list of locally installed applications

Returns:
item()*

packages:get-local-libraries#0

packages:get-local-libraries() as item()

fetch the list of locally installed libraries

Returns:
item()*

packages:get-local-packages#0

packages:get-local-packages() as item()

fetch the complete list of locally installed applications and libaries

Returns:
item()*

packages:get-package-meta#2

packages:get-package-meta($app as xs:string, $name as xs:string) as document-node()

Parameters:
$app
$name
Returns:
document-node()

packages:get-remote#0

packages:get-remote() as item()

fetches all remote packages from public repo and filters out packages that are already in the list of local packages. In case there's a version that is newer in the repository list it will be marked with the attriburtes 'available' and 'installed'.

Returns:
item()*

packages:get-repo-locations#0

packages:get-repo-locations() as item()

Returns:
item()*

packages:get-version#0

packages:get-version() as item()

Returns:
item()*

packages:installed-apps#1

packages:installed-apps($type as xs:string) as element()

Parameters:
$type
Returns:
element()*

packages:is-newer#2

packages:is-newer($available as xs:string, $installed as xs:string) as xs:boolean

Parameters:
$available
$installed
Returns:
xs:boolean

packages:packages-as-json#1

packages:packages-as-json($packages as element()*) as item()

Parameters:
$packages
Returns:
item()*

packages:public-repo-contents#1

packages:public-repo-contents($installed as element()*) as item()

Parameters:
$installed
Returns:
item()*

packages:required-version#1

packages:required-version($required as element()) as item()

Parameters:
$required
Returns:
item()*

packages:scan-repo#1

packages:scan-repo($callback as function(*)) as item()

Parameters:
$callback
Returns:
item()*