Database Reference
In-Depth Information
Setting Permissions
Every collection or resource that you create will be assigned the current user, group,
and default security permissions. That might not be what you want, so it's quite com‐
mon to change these after creating a collection or resource. Of course, there might
also be other situations where you have to change some security setting. You can use
the following functions to do this:
xmldb:set-collection-permissions , xmldb:set-resource-permissions
Change the user, group, and/or permissions for a collection or resource.
Notice that permissions must be passed in as integer values. The function
xmldb:permissions-to-string might be of help here.
While the xmldb:set-collection-permissions and xmldb:set-
resource-permissions functions are still available, they are in fact
deprecated by the newer sm:chmod and sm:chown functions in the
Security Manager module (see “Executing XQuery functions” on
page 153 ).
Moving, Removing, and Renaming
The following functions can be used to move, rename, and remove collections and
resources:
xmldb:move
Moves collections and resources from one location (parent collection) to another
xmldb:rename
Renames collections or resources
xmldb:remove
Removes (deletes) collections or resources
Be warned, removing collections or resources is permanent: there
is no such thing as a trash can collection in eXist!
Search WWH ::




Custom Search