|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ISpherePublicInterface
An interface defining the public user functions of an iSphere, only functions defined by the public interface are accessible to the outside world via SOAP.
| Field Summary | |
|---|---|
static boolean |
LOCAL_SCHEMA
The boolean constant for Local schema. |
static boolean |
UNIVERSAL_SCHEMA
The boolean constant for Universal schema. |
| Method Summary | |
|---|---|
ProcessPublicInterface |
add(int collectionId,
MetadataObject localMetadata,
DigitalObject digitalObject)
Add the metadata and digital object to the local repository. |
TransformInterface[] |
getCapabilities(int collectionId)
Returns the list of transforms that can be performed on the objects stored in the specified collection. |
MetadataObject |
getCollectionMetadata(int collectionId)
Returns the metadata for the collection with the specified identifier. |
MetadataObject |
getISphereMetadata()
Returns the metadata object describing the iSphere. |
Schema |
getLocalSchema(int collectionId)
Returns the local schema used for a particular collection. |
ProcessPublicInterface |
getMetadata(int collectionId,
int sri,
boolean schema)
Retrieve the specified metadata record from the collection. |
ProcessPublicInterface |
getObject(int collectionId,
int sri)
Retrieve the specified ISphereObject from the collection. |
ProcessPublicInterface |
getTransformedObject(int collectionId,
int sri,
TransformInterface[] trans)
Retrieves a transformed object using the object in the specified collection at the specified record index as the source and using the supplied array of transforms as input for the transformation process. |
ProcessPublicInterface |
numSearchCollectionResults(int collectionId,
java.lang.String searchTerm)
Returns the total number of objects that match the specified search term. |
ProcessPublicInterface |
remove(int collectionId,
int sri)
Remove the specified record from the collection. |
ProcessPublicInterface |
searchCollection(int collectionId,
java.lang.String searchTerm,
int offSet,
int num,
boolean universal)
Searches the local collection for objects that match the specified search term and are within the specified bounds and optionally returns results in the universal schema rather than the local schema. |
SearchPublicInterface |
searchForCollections(java.lang.String searchTerm,
int num)
Search for a specific collection, this function will search the local and authority isphere for collections. |
SearchPublicInterface |
searchForISpheres(java.lang.String searchTerm,
int num)
Searches for a specific iSphere, this function will search the authority server for iSpheres. |
SearchPublicInterface |
searchLocalCollection(int collectionId,
java.lang.String searchTerm,
int num)
Spawns a search process which will search a local collection for objects that match the specified search parameters. |
ProcessPublicInterface |
setMetadata(int collectionId,
int sri,
MetadataObject localMetadata)
Replace the current records metadata with the new metadata. |
| Field Detail |
|---|
static final boolean UNIVERSAL_SCHEMA
static final boolean LOCAL_SCHEMA
| Method Detail |
|---|
ProcessPublicInterface add(int collectionId,
MetadataObject localMetadata,
DigitalObject digitalObject)
throws ISphereException
collectionId - the collection to add the new digital object too.localMetadata - The metadata of the digtial object being added to
the local repository.digitalObject - The ISphereObject that is being added to the local
repository.
ISphereException - Thrown when unable to spawn the add process.Add
TransformInterface[] getCapabilities(int collectionId)
throws ISphereException
collectionId - The collection identifier of the collection to get
the capabilities for.
ISphereException - If the specified collection does not exist.
MetadataObject getCollectionMetadata(int collectionId)
throws ISphereException
collectionId - The unique identifier of the collection to get
the metadata for.
ISphereException - If the specified collection does not exist.org.ispheres.server.core.process.GetCollectionMetadata
MetadataObject getISphereMetadata()
throws ISphereException
ISphereException - if unable to fetch iSphere metadata.
Schema getLocalSchema(int collectionId)
throws ISphereException
collectionId - The id of the collection.
ISphereException - If the specified collection does not exist.
ProcessPublicInterface getMetadata(int collectionId,
int sri,
boolean schema)
throws ISphereException
collectionId - The collection containing the recordsri - The simple repository index of the record we want to retrieve.schema - Return the metadata object in the universal or local
schema. Use either UNIVERSAL_SCHEMA or LOCAL_SCHEMA.
ISphereException - When unable to spawn the process which fetches
the metadata.GetMetadata
ProcessPublicInterface getObject(int collectionId,
int sri)
throws ISphereException
collectionId - The collection containing the digital object.sri - The simple repository index of the object we wish to fetch
from the local repository.
ISphereException - When unable to spawn the process which fetches
the digital object.GetObject
ProcessPublicInterface getTransformedObject(int collectionId,
int sri,
TransformInterface[] trans)
throws ISphereException
collectionId - The collection to retrieve a transformed object from.sri - The simple repository index of the original digital object.trans - An array of TransformInterfaces that holds the information
for each of the transformations to apply.
ISphereException - When unable to spawn the process which fetches
the transformed digital object.GetTransformedObject
ProcessPublicInterface remove(int collectionId,
int sri)
throws ISphereException
collectionId - The collection to remove the digital object and
metadata from.sri - The simple repository index of the digital object you wish to
remove.
ISphereException - When unable to spawn the process that will
remove the entry.Remove
SearchPublicInterface searchForCollections(java.lang.String searchTerm,
int num)
throws ISphereException
searchTerm - The term to use when searching for collections.num - The amount of results returned by calls to the
getResults function on the handle returned by this function.
ISphereException - thrown when unable to create the process.org.ispheres.server.core.process.CollectionSearch
SearchPublicInterface searchForISpheres(java.lang.String searchTerm,
int num)
throws ISphereException
searchTerm - The term to use when searching for iSpheres.num - The number of results to return when calling getResults
on the handle that is returned by this function.
ISphereException - thrown when unable to create the process.
ProcessPublicInterface searchCollection(int collectionId,
java.lang.String searchTerm,
int offSet,
int num,
boolean universal)
throws ISphereException
collectionId - The unique identifier of the collection to search for
objects.searchTerm - The term to use when searching for digital objects.offSet - The simple repository index to start searching from.num - The number of results to return when calling getResults
on the handle that is returned by this function.universal - Set to true when results should be returned in the
universal schema, rather than the local schema.
ISphereException - Thrown when unable to fetch the collection and
search it for metadata records.org.ispheres.server.core.process.LocalObjectSearch
ProcessPublicInterface numSearchCollectionResults(int collectionId,
java.lang.String searchTerm)
throws ISphereException
collectionId - The unique identifier of the collection to search for
objects.searchTerm - The term to use when searching for digital objects.
ISphereException - Thrown when unable to fetch the collection and
count the number of metadatarecords that match the search term.NumSearchCollectionResults
SearchPublicInterface searchLocalCollection(int collectionId,
java.lang.String searchTerm,
int num)
throws ISphereException
collectionId - The unique id of the local collection to search.searchTerm - The term to use when searching for digital objects.num - The number of results to return per page.
ISphereException - thrown when unable to create the searchProcess.
ProcessPublicInterface setMetadata(int collectionId,
int sri,
MetadataObject localMetadata)
throws ISphereException
collectionId - The collection containing the record, you wish to
update the metadata object of.sri - The simple repository index of the metadata record to update.localMetadata - The metadata to replace the old metadata with. (in
the local schema).
ISphereException - Thrown on client side implementations of this
interface when exceptions occur.SetMetadata
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||