Differences between revisions 5 and 6
Revision 5 as of 2008-11-10 09:38:52
Size: 2053
Editor: abr
Comment:
Revision 6 as of 2010-03-17 13:09:04
Size: 2057
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 9: Line 9:
WSDL: attachment:DomsResourceIndex.xml WSDL: [[attachment:DomsResourceIndex.xml]]

Risearch API

A webservice which wraps the most common requests made to the resource index.

Risearch API

WSDL: DomsResourceIndex.xml

The following describes those methods of the Risearch API that may be called by the GUI.

allReferencingTheseObjects

Find the objects that have some relation to one of the objects given and is not deleted.

Input parameters:

  • String[] objects A list of pids of objects.

  • String user The username for the fedora server.

  • String pass The password for the username.

Returns:

  • DigitalObject[] The objects that have a relation to these objects. Data structure summarized below.

Throws:

  • Exception If something went wrong.

allTemplatesInCollectionForContentModel

Finds the object that are templates in the given collection for the specified content model, and are not deleted.

Input parameters:

  • String collection The collection the templates should be in.

  • String contentModel The content model they should be templates for.

  • String user The username for the fedora server.

  • String pass The password for the username.

Returns:

  • DigitalObject[] The list of templates. Data structure summarized below.

Throws:

  • Exception If something went wrong.

getState

Syntactic sugar method for getting the state of an Fedora object.

Input parameters:

  • String pid The pid of the object to examine.

  • String user The username for the fedora server.

  • String pass The password for the username.

Returns:

  • String The state as a string. Could be "A", "I" or "D".

Throws:

  • Exception If something went wrong.

Data structures

DigitalObject

Returned by allReferencingTheseObjects and allTemplatesInCollectionForContentModel.

Contains the following private fields. Each has corresponding getter and setter methods.

  • String title

  • String pid

Risearch API (last edited 2010-03-17 13:09:04 by localhost)