Database Reference
In-Depth Information
Figure 8-14. The Resource Properties dialog of the dashboard's collection browser app
Executing XQuery functions
eXist provides an XQuery module called xmldb (see xmldb ). This module provides
functions that allow you to retrieve the created and last-modified timestamps of
resources, and allows you to retrieve or set the Internet media type of a resource.
Likewise, the previously mentioned Security Manager XQuery module provides func‐
tions for retrieving the permissions and changing the owner user, group, and mode
of a resource (see sm ).
Using the XML-RPC or XML:DB API
eXist's XML-RPC (see “XML-RPC API” on page 342 ) and XML:DB (see “XML:DB
Remote API” on page 349 ) APIs allow you to programmatically connect to the database
remotely (or even within an embedded JVM, if you're using XML:DB) and retrieve
and modify the permissions of a resource. The use of these APIs is discussed more
thoroughly in Chapter 13 .
Using the eXist Ant tasks
eXist provides a series of tasks that can be used with Apache Ant, the basics of which
are covered in “Using Ant with eXist” on page 381 . These tasks allow you to change
permissions ( chmod ), change ownership ( chown ), and add, edit, and remove users and
groups.
 
Search WWH ::




Custom Search