API-M (Fedora Management service API)

TableOfContents

Anchor(anchor_addDatastream)

addDatastream

Creates a new Datastream in the object.

If, after the call to this method, the object in question would have state "published" in its STATE datastream, then this method will perform validation of the object. In case of a failed validation, an exception will be thrown.

Input parameters:

Returns:

Throws:

Anchor(anchor_addRelationship)

addRelationship

Creates a new relationship in the object. Adds the specified relationship to the object's RELS-EXT Datastream. If the Resource Index is enabled, the relationship will be added to the Resource Index.

If, after the call to this method, the object in question would have state "published" in its STATE datastream, then this method will perform validation of the object. In case of a failed validation, an exception will be thrown.

Input parameters:

Returns:

Throws:

Anchor(anchor_compareDatastreamChecksum)

compareDatastreamChecksum

Verifies that the Datastream content has not changed since the checksum was initially computed.

Input parameters:

Returns:

Throws:

Anchor(anchor_getDatastream)

getDatastream

Gets the specified datastream.

Input parameters:

Returns:

Throws:

Anchor(anchor_getDatastreams)

getDatastreams

Gets all versions of a datastream, sorted from most to least recent.

Input parameters:

# dsState is not mentioned as a parameter in Fedora's own documentation, but in their code, it is there.

Returns:

Throws:

Anchor(anchor_getRelationships)

getRelationships

Get the relationships asserted in the object's RELS-EXT Datastream that match the given criteria.

Input parameters:

Returns:

Throws:

Anchor(anchor_ingest)

ingest

Creates a new digital object in the repository. The object's initial state will be A (active). If the XML document does not specify the OBJID attribute of the root element, the repository will generate and return a new pid for the object resulting from this request. That pid will have the namespace of the repository. If the XML document specifies a pid, it will be assigned to the digital object provided that 1. it conforms to the Fedora pid Syntax, 2. it uses a namespace that matches the "retainPIDs" value configured for the repository, and 3. it does not collide with an existing pid of an object in the repository.

If, after the call to this method, the object in question would have state "published" in its STATE datastream, then this method will perform validation of the object. In case of a failed validation, an exception will be thrown.

Input parameters:

Returns:

Throws:

Anchor(anchor_modifyDatastreamByReference)

modifyDatastreamByReference

If, after the call to this method, the object in question would have state "published" in its STATE datastream, then this method will perform validation of the object. In case of a failed validation, an exception will be thrown.

Input parameters:

Returns:

Throws:

Anchor(anchor_modifyDatastreamByValue)

modifyDatastreamByValue

Modifies an existing Datastream in an object, by value. This operation is only valid for Inline XML Datastreams (i.e. controlGroup "X").

If, after the call to this method, the object in question would have state "published" in its STATE datastream, then this method will perform validation of the object. In case of a failed validation, an exception will be thrown.

Input parameters:

Returns:

Throws:

Anchor(anchor_modifyObject)

modifyObject

Modify an object.

If, after the call to this method, the object in question would have state "published" in its STATE datastream, then this method will perform validation of the object. In case of a failed validation, an exception will be thrown.

Input parameters:

Returns:

Throws:

Anchor(anchor_purgeRelationship)

purgeRelationship

Delete the specified relationship. This method will remove the specified relationship(s) from the RELS-EXT datastream. If the Resource Index is enabled, this will also delete the corresponding triples from the Resource Index.

If, after the call to this method, the object in question would have state "published" in its STATE datastream, then this method will perform validation of the object. In case of a failed validation, an exception will be thrown.

Input parameters:

Returns:

Throws:

Anchor(anchor_setDatastreamState)

setDatastreamState

Sets the state of a Datastream to the specified state value.

If, after the call to this method, the object in question would have state "published" in its STATE datastream, then this method will perform validation of the object. In case of a failed validation, an exception will be thrown.

Input parameters:

Returns:

Throws:

(export)

(getDatastreamHistory)?

(getObjectXML)?