fr.paris5.shaman.insight.content
Class FileSystemStore

fr.paris5.shaman.insight.content.FileSystemStore
All Implemented Interfaces:
BLOBStore

public class FileSystemStore
implements BLOBStore

Implementation of a BLOBStore relying on local filesystem. Using this implementation implies that Spirit and Insight servers must run on the same physical host.

Version:
$Id: FileSystemStore.java,v 1.3 2002/08/07 13:30:53 caillette Exp $
Author:
Laurent Caillette

Field Summary
private  org.apache.avalon.framework.component.ComponentManager componentManager
           
private  InsightModel insightModel
           
(package private) static java.lang.String PUBLICATION_CATEGORY_PREFIX
           
private  java.io.File storeBaseDir
           
private  java.net.URL storeBaseDirURL
           
private  java.lang.String storeBaseDirURLAsString
           
 
Fields inherited from interface fr.paris5.shaman.insight.content.BLOBStore
ROLE
 
Constructor Summary
FileSystemStore()
           
 
Method Summary
 void clearAll()
          Clears all store content, use at your own risk !
 void compose(org.apache.avalon.framework.component.ComponentManager componentManager)
           
 void configure(org.apache.avalon.framework.configuration.Configuration configuration)
           
 StoreFeeder createStoreFeeder(ImportParameters importParameters)
          Creates a StoreFeeder, which will handle access to physical data store.
protected  InsightModel getInsightModel()
           
 java.net.URL getResourceURL(Fragment fragment)
           
 java.net.URL getResourceURL(Publication publication, java.lang.String fragmentPath)
           
(package private)  java.io.File getStoreBaseDir()
           
 void initialize()
           
 

Field Detail

storeBaseDirURL

private java.net.URL storeBaseDirURL

storeBaseDirURLAsString

private java.lang.String storeBaseDirURLAsString

storeBaseDir

private java.io.File storeBaseDir

componentManager

private org.apache.avalon.framework.component.ComponentManager componentManager

insightModel

private InsightModel insightModel

PUBLICATION_CATEGORY_PREFIX

static final java.lang.String PUBLICATION_CATEGORY_PREFIX
Constructor Detail

FileSystemStore

public FileSystemStore()
Method Detail

compose

public void compose(org.apache.avalon.framework.component.ComponentManager componentManager)

configure

public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
               throws org.apache.avalon.framework.configuration.ConfigurationException

initialize

public void initialize()
                throws java.lang.Exception

clearAll

public void clearAll()
Description copied from interface: BLOBStore
Clears all store content, use at your own risk !
Specified by:
clearAll in interface BLOBStore

getInsightModel

protected InsightModel getInsightModel()

createStoreFeeder

public StoreFeeder createStoreFeeder(ImportParameters importParameters)
Description copied from interface: BLOBStore
Creates a StoreFeeder, which will handle access to physical data store.
Specified by:
createStoreFeeder in interface BLOBStore
Following copied from interface: fr.paris5.shaman.insight.content.BLOBStore
Parameters:
importParameters -  
Returns:
 

getStoreBaseDir

java.io.File getStoreBaseDir()

getResourceURL

public java.net.URL getResourceURL(Fragment fragment)

getResourceURL

public java.net.URL getResourceURL(Publication publication,
                                   java.lang.String fragmentPath)
Specified by:
getResourceURL in interface BLOBStore


Copyright © 2002 Laurent Caillette and l'Université René Descartes, Paris 5. All rights reserved.