|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DigitalObjectManager
Interface for storage and retrieval of Digital Objects in an IF Data Registry.
Nested Class Summary | |
---|---|
static class |
DigitalObjectManager.DigitalObjectNotFoundException
Exception thrown when a DigitalObject requested by URI cannot be found in the Data Registry. |
static class |
DigitalObjectManager.DigitalObjectNotRemovedException
Exception thrown when a DigitalObject cannot be removed in the Data Registry. |
static class |
DigitalObjectManager.DigitalObjectNotStoredException
Exception thrown when a DigitalObject cannot be stored in the Data Registry. |
static class |
DigitalObjectManager.DigitalObjectTooLargeException
Exception thrown when a DigitalObject is too large. |
static class |
DigitalObjectManager.DigitalObjectUpdateException
Exception thrown when a DigitalObject cann't be updated in JCR. |
Method Summary | |
---|---|
java.util.List<java.lang.Class<? extends Query>> |
getQueryTypes()
|
boolean |
isWritable(java.net.URI pdURI)
Test if Digital Objects can be persisted. |
java.util.List<java.net.URI> |
list(java.net.URI pdURI)
Returns the URIs of Digital Objects matching the given parent pdURI. |
java.util.List<java.net.URI> |
list(java.net.URI pdURI,
Query q)
Execute a more complex query, at some point in the URI tree. |
DigitalObject |
retrieve(java.net.URI pdURI)
Retrieve a DigitalObject from the DataRegistry. |
java.net.URI |
storeAsNew(DigitalObject digitalObject)
Persist a DigitalObject to the Data Registry as a new object |
java.net.URI |
storeAsNew(java.net.URI pdURI,
DigitalObject digitalObject)
Persist a DigitalObject to the Data Registry as a new object, associated the suggested URI if possible. |
java.net.URI |
updateExisting(java.net.URI pdURI,
DigitalObject digitalObject)
Updates an existing object in the repository to contain the given digital object. |
Method Detail |
---|
java.net.URI storeAsNew(DigitalObject digitalObject) throws DigitalObjectManager.DigitalObjectNotStoredException
digitalObject
- The object to store
DigitalObjectManager.DigitalObjectNotStoredException
- if the storing somehow failedjava.net.URI storeAsNew(java.net.URI pdURI, DigitalObject digitalObject) throws DigitalObjectManager.DigitalObjectNotStoredException
pdURI
- The suggested URI to associate with the stored object.digitalObject
- The object to store.
DigitalObjectManager.DigitalObjectNotStoredException
- if the storing somehow failedjava.net.URI updateExisting(java.net.URI pdURI, DigitalObject digitalObject) throws DigitalObjectManager.DigitalObjectNotStoredException, DigitalObjectManager.DigitalObjectNotFoundException
pdURI
- the object to updatedigitalObject
- the information to update with
DigitalObjectManager.DigitalObjectNotStoredException
- if the storing somehow failed
DigitalObjectManager.DigitalObjectNotFoundException
boolean isWritable(java.net.URI pdURI)
pdURI
- The URI that we wish to write to, or NULL to test if the whole repository is read-only.
java.util.List<java.net.URI> list(java.net.URI pdURI)
pdURI
- URI that identifies an Digital Object or folder
DigitalObject retrieve(java.net.URI pdURI) throws DigitalObjectManager.DigitalObjectNotFoundException
pdURI
- URI that uniquely identifies the DigitalObject
DigitalObjectManager.DigitalObjectNotFoundException
- If the digital object with this URI is not found in the repositoryjava.util.List<java.lang.Class<? extends Query>> getQueryTypes()
java.util.List<java.net.URI> list(java.net.URI pdURI, Query q) throws QueryValidationException
pdURI
- The URI in the repository at which the query should be executed. Can be null, meaning at the top-level.q
- The Query to be executed.
eu.planets_project.ifr.core.storage.api.query.QueryValidationException
- if the query does not make sense
QueryValidationException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |