Download GeoNetwork Developer Manual

Transcript
GeoNetwork Developer Manual, Release 2.9.2
• 3: notify
• 4: dynamic
• 5: featured
Request metadata massive update privilegies example:
POST:
Url:
http://localhost:8080/geonetwork/srv/en/metadata.massive.update.privileges
Mime-type:
application/xml
Post request:
<?xml version="1.0" encoding="UTF-8"?>
<request>
<_1_2 />
<_1_1 />
</request>
GET:
Url:
http://localhost:8080/geonetwork/srv/en/metadata.massive.update.privileges?_1_2&_1_1
Response to metadata.massive.update.privileges
If request is executed succesfully HTTP 200 status code is returned. If request fails an HTTP status code
error is returned and the response contains the XML document with the exception.
Errors
• Service not allowed (error id: service-not-allowed), when the user is not authenticated or his
profile has no rights to execute the service. Returned 401 HTTP code
• Metadata not found (error id: metadata-not-found) if not exists a metadata record with the
identifier provided
• ERROR: insert or update on table “operationallowed” violates foreign key ‘operationallowed_operationid_fkey », if an operation identifier provided is not valid
• ERROR: insert or update on table “operationallowed” violates foreign key ‘operationallowed_groupid_fkey », if a group identifier provided is not valid
6.5.3 Metadata ownership services
This services allow to manage the metadata ownership (the user who created the metadata), for example
to get information about the users who created metadata records or transfer the ownership of metadata
records to another user. Only users with Administrator and UserAdmin profiles can execute these
services.
88
Chapter 6. XML Services