|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mycore.datamodel.ifs.MCRContentStore
org.mycore.backend.filesystem.MCRCStoreVFS
public class MCRCStoreVFS
This class implements the MCRContentStore interface to store the content of
MCRFile objects on any filesystem supported by the Apache Jakarta Commons
VFS. The connection URI is configured in mycore.properties:
MCR.IFS.ContentStore.
| Field Summary |
|---|
| Fields inherited from class org.mycore.datamodel.ifs.MCRContentStore |
|---|
formatter, lastTimestamp, prefix, slotDirDepth, storeID |
| Constructor Summary | |
|---|---|
MCRCStoreVFS()
|
|
| Method Summary | |
|---|---|
protected void |
doDeleteContent(String storageId)
Deletes the content of an MCRFile object that is stored under the given Storage ID in this store instance. |
protected InputStream |
doRetrieveContent(MCRFileReader file)
Retrieves the content of an MCRFile. |
protected void |
doRetrieveContent(MCRFileReader file,
OutputStream target)
Retrieves the content of an MCRFile to an OutputStream. |
protected String |
doStoreContent(MCRFileReader file,
MCRContentInputStream source)
Stores the content of an MCRFile by reading from an MCRContentInputStream. |
protected org.apache.commons.vfs.FileObject |
getBase()
|
void |
init(String storeId)
Initializes the store and sets its unique store ID. |
| Methods inherited from class org.mycore.datamodel.ifs.MCRContentStore |
|---|
buildNextID, buildNextTimestamp, buildSlotPath, deleteContent, getID, retrieveContent, retrieveContent, storeContent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MCRCStoreVFS()
| Method Detail |
|---|
protected String doStoreContent(MCRFileReader file,
MCRContentInputStream source)
throws Exception
MCRContentStore
doStoreContent in class MCRContentStorefile - the MCRFile thats content is to be storedsource - the ContentInputStream where the file content is read from
Exception
protected void doDeleteContent(String storageId)
throws Exception
MCRContentStore
doDeleteContent in class MCRContentStorestorageId - the storage ID of the MCRFile object
Exception
protected void doRetrieveContent(MCRFileReader file,
OutputStream target)
throws Exception
MCRContentStore
doRetrieveContent in class MCRContentStorefile - the MCRFile thats content should be retrievedtarget - the OutputStream to write the file content to
Exception
protected InputStream doRetrieveContent(MCRFileReader file)
throws Exception
MCRContentStore
doRetrieveContent in class MCRContentStorefile - the MCRFile thats content should be retrieved
Exception
protected org.apache.commons.vfs.FileObject getBase()
throws org.apache.commons.vfs.FileSystemException
org.apache.commons.vfs.FileSystemExceptionpublic void init(String storeId)
MCRContentStore
init in class MCRContentStorestoreId - the non-null unique store ID for this store instance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||