A Resource Extensions Manager supports writing,
reading, and deleting a Resource Services extension as well as
listing the installed Resource Services extensions. A Resource
Services extension implements server operations on a kind of
database resource not supported by default.
Reads the list of resource service extensions
installed on the server, specifying whether to refresh the metadata
about each extension by parsing the extension source.
Reads the list of resource service extensions
installed on the server in a JSON or XML representation provided as
an object of an IO class. The IO class must have been registered
before creating the database client. By default, the provided
handles that implement ContentHandle
are registered. Learn more
about shortcut methods
Type Parameters:
T - the type of object that will be returned by
the handle registered for it
Parameters:
format - whether to provide the list in a JSON or
XML representation
as - the IO class for reading the list of resource
service extensions
Returns:
an object of the IO class with the list of resource service
extensions
listServicesAs
<T>TlistServicesAs(Format format,
Class<T> as,
boolean refresh)
Reads the list of resource service extensions
installed on the server in a JSON or XML representation provided as
an object of an IO class. The IO class must have been registered
before creating the database client. By default, the provided
handles that implement ContentHandle
are registered. Learn more
about shortcut methods
Type Parameters:
T - the type of object that will be returned by
the handle registered for it
Parameters:
format - whether to provide the list in a JSON or
XML representation
as - the IO class for reading the list of resource
service extensions
refresh - whether to parse metadata from the
extension source
Returns:
an object of the IO class with the list of resource service
extensions
Reads the list of resource service extensions
installed on the server, specifying whether to refresh the metadata
about each extension by parsing the extension source.
Type Parameters:
T - the type of StructureReadHandle to return
Parameters:
listHandle - a handle on a JSON or XML
representation of the list
refresh - whether to parse metadata from the
extension source
Reads the XQuery implementation of the services
for a resource in a textual representation provided as an object of
an IO class. The IO class must have been registered before creating
the database client. By default, the provided handles that
implement ContentHandle
are registered. Learn more
about shortcut methods
Type Parameters:
T - the type of object that will be returned by
the handle registered for it
Parameters:
resourceName - the name of the resource
as - the IO class for reading the source code as
text
Returns:
an object of the IO class with the source code for the
service
Installs the services that implement a resource
in a textual representation provided as an object of an IO class.
The IO class must have been registered before creating the database
client. By default, the provided handles that implement ContentHandle
are registered. Learn more
about shortcut methods
Parameters:
resourceName - the name of the resource
source - an IO representation of the source
code
metadata - the metadata about the resource
services
methodParams - a declaration of the parameters for
the services