Differences between revisions 4 and 5
Revision 4 as of 2008-11-07 13:15:47
Size: 2072
Editor: jrg
Comment:
Revision 5 as of 2008-11-10 09:38:52
Size: 2053
Editor: abr
Comment:
Deletions are marked like this. Additions are marked like this.
Line 71: Line 71:
 * {{{org.apache.axis.types.URI}}} pid  * {{{String}}} pid

Risearch API

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

Risearch API

WSDL: attachment: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)