|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object eu.planets_project.ifr.core.storage.api.DigitalObjectManagerBase
public abstract class DigitalObjectManagerBase
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface eu.planets_project.ifr.core.storage.api.DigitalObjectManager |
---|
DigitalObjectManager.DigitalObjectNotFoundException, DigitalObjectManager.DigitalObjectNotRemovedException, DigitalObjectManager.DigitalObjectNotStoredException, DigitalObjectManager.DigitalObjectTooLargeException, DigitalObjectManager.DigitalObjectUpdateException |
Field Summary | |
---|---|
static java.lang.String |
DESC_KEY
Public static for the property name used to describe an instance |
static java.lang.String |
NAME_KEY
Public static for the property name used to name an instance |
Method Summary | |
---|---|
java.lang.String |
getDescription()
|
java.net.URI |
getId()
Getter for the URI identifier |
java.lang.String |
getName()
Getter for the String name |
java.util.List<java.lang.Class<? extends Query>> |
getQueryTypes()
|
boolean |
isWritable(java.net.URI pdURI)
Test if Digital Objects can be persisted. |
abstract 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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String NAME_KEY
public static final java.lang.String DESC_KEY
Method Detail |
---|
public java.util.List<java.lang.Class<? extends Query>> getQueryTypes()
getQueryTypes
in interface DigitalObjectManager
public boolean isWritable(java.net.URI pdURI)
DigitalObjectManager
isWritable
in interface DigitalObjectManager
pdURI
- The URI that we wish to write to, or NULL to test if the whole repository is read-only.
public abstract java.util.List<java.net.URI> list(java.net.URI pdURI)
DigitalObjectManager
list
in interface DigitalObjectManager
pdURI
- URI that identifies an Digital Object or folder
public java.util.List<java.net.URI> list(java.net.URI pdURI, Query q) throws QueryValidationException
DigitalObjectManager
list
in interface DigitalObjectManager
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.
QueryValidationException
public DigitalObject retrieve(java.net.URI pdURI) throws DigitalObjectManager.DigitalObjectNotFoundException
DigitalObjectManager
retrieve
in interface DigitalObjectManager
pdURI
- URI that uniquely identifies the DigitalObject
DigitalObjectManager.DigitalObjectNotFoundException
- If the digital object with this URI is not found in the repositorypublic java.net.URI storeAsNew(DigitalObject digitalObject) throws DigitalObjectManager.DigitalObjectNotStoredException
DigitalObjectManager
storeAsNew
in interface DigitalObjectManager
digitalObject
- The object to store
DigitalObjectManager.DigitalObjectNotStoredException
- if the storing somehow failedpublic java.net.URI storeAsNew(java.net.URI pdURI, DigitalObject digitalObject) throws DigitalObjectManager.DigitalObjectNotStoredException
DigitalObjectManager
storeAsNew
in interface DigitalObjectManager
pdURI
- The suggested URI to associate with the stored object.digitalObject
- The object to store.
DigitalObjectManager.DigitalObjectNotStoredException
- if the storing somehow failedpublic java.net.URI updateExisting(java.net.URI pdURI, DigitalObject digitalObject) throws DigitalObjectManager.DigitalObjectNotStoredException, DigitalObjectManager.DigitalObjectNotFoundException
DigitalObjectManager
updateExisting
in interface DigitalObjectManager
pdURI
- the object to updatedigitalObject
- the information to update with
DigitalObjectManager.DigitalObjectNotStoredException
- if the storing somehow failed
DigitalObjectManager.DigitalObjectNotFoundException
public java.lang.String getName()
public java.net.URI getId()
public java.lang.String getDescription()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |