|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ILowlevelStorage
Provides read/write access to all serialized objects and managed datastream content within Fedora.
| Method Summary | |
|---|---|
long |
addDatastream(String dsKey,
InputStream content,
Map<String,String> dsStorageHints)
Sets the content of a new datastream version. |
void |
addObject(String objectKey,
InputStream content,
Map<String,String> objectStorageHints)
Adds a new object. |
void |
auditDatastream()
Performs a consistency check against the datastream index if such an index exists. |
void |
auditObject()
Performs a consistency check against the object index if such an index exists. |
void |
rebuildDatastream()
Reconstructs the datastream index if such an index exists. |
void |
rebuildObject()
Reconstructs the object index if such an index exists. |
void |
removeDatastream(String dsKey)
Removes the content of an existing datastream version. |
void |
removeObject(String objectKey)
Removes an object. |
long |
replaceDatastream(String dsKey,
InputStream content,
Map<String,String> dsHints)
Sets the content of an existing datastream version. |
void |
replaceObject(String objectKey,
InputStream content,
Map<String,String> objectHints)
Replaces an existing object. |
InputStream |
retrieveDatastream(String dsKey)
Gets the content of an existing datastream version. |
InputStream |
retrieveObject(String objectKey)
Gets an existing object. |
| Method Detail |
|---|
void addObject(String objectKey,
InputStream content,
Map<String,String> objectStorageHints)
throws LowlevelStorageException
objectKey - the pid of the object.content - the serialized object.objectStorageHints - a map of hints for object storage
LowlevelStorageException - if the object already exists or
cannot be added for any other reason.
void replaceObject(String objectKey,
InputStream content,
Map<String,String> objectHints)
throws LowlevelStorageException
objectKey - the pid of the object.content - the serialized object.objectStorageHints - a map of hints for object storage
LowlevelStorageException - if the object does not already exist
or cannot be replaced for any other reason.
InputStream retrieveObject(String objectKey)
throws LowlevelStorageException
objectKey - the pid of the object.
LowlevelStorageException - if the object does not exist or
cannot be read for any other reason.
void removeObject(String objectKey)
throws LowlevelStorageException
objectKey - the pid of the object.
LowlevelStorageException - if the object does not exist or
cannot be removed for any other reason.
void rebuildObject()
throws LowlevelStorageException
LowlevelStorageException - if an error occurs that prevents the
index from being rebuilt.
void auditObject()
throws LowlevelStorageException
LowlevelStorageException - if an error occurs that prevents the
consistency check from taking place.
long addDatastream(String dsKey,
InputStream content,
Map<String,String> dsStorageHints)
throws LowlevelStorageException
dsKey - the $pid "+" $dsId "+" $dsVersionId string that uniquely
identifies the datastream version.content - the content.
LowlevelStorageException - if the datastream version already
exists or cannot be added for any other reason.
long replaceDatastream(String dsKey,
InputStream content,
Map<String,String> dsHints)
throws LowlevelStorageException
dsKey - the $pid "+" $dsId "+" $dsVersionId string that uniquely
identifies the datastream version.content - the content.
LowlevelStorageException - if the datastream version does not
already exist or cannot be replaced for any other reason.
InputStream retrieveDatastream(String dsKey)
throws LowlevelStorageException
dsKey - the $pid "+" $dsId "+" $dsVersionId string that uniquely
identifies the datastream version.
LowlevelStorageException - if the datastream version does not
exist or cannot be read for any other reason.
void removeDatastream(String dsKey)
throws LowlevelStorageException
dsKey - the $pid "+" $dsId "+" $dsVersionId string that uniquely
identifies the datastream version.
LowlevelStorageException - if the datastream version does not
exist or cannot be removed for any other reason.
void rebuildDatastream()
throws LowlevelStorageException
LowlevelStorageException - if an error occurs that prevents the
void auditDatastream()
throws LowlevelStorageException
LowlevelStorageException - if an error occurs that prevents the
consistency check from taking place.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||