net.sourceforge.blogentis.storage
Class FileRetrieverService

java.lang.Object
  extended byorg.apache.turbine.services.BaseInitable
      extended byorg.apache.turbine.services.BaseService
          extended byorg.apache.turbine.services.TurbineBaseService
              extended bynet.sourceforge.blogentis.storage.FileRetrieverService
All Implemented Interfaces:
org.apache.turbine.services.Initable, org.apache.turbine.services.Service

public class FileRetrieverService
extends org.apache.turbine.services.TurbineBaseService


Field Summary
static java.lang.String SERVICE_NAME
           
 
Fields inherited from class org.apache.turbine.services.BaseService
configuration, name, serviceBroker
 
Fields inherited from class org.apache.turbine.services.BaseInitable
initableBroker, isInitialized
 
Constructor Summary
FileRetrieverService()
           
 
Method Summary
 boolean exists(Blog blog, java.lang.String file)
           
 AbstractFileResource getFile(Blog blog, java.lang.String file)
           
 long getFileLastModified(Blog blog, java.lang.String file)
           
static FileRetrieverService getInstance()
           
 TemplateFolder getTemplateList(org.apache.turbine.util.RunData data, Blog b, java.lang.String dirPath, FileResourceFilter filter)
          Retrieve a tree of TemplateFolders based on
 java.util.List getTemplatePathList(org.apache.turbine.util.RunData data, Blog b, java.lang.String dirPath, FileResourceFilter filter)
           
 void init()
           
 
Methods inherited from class org.apache.turbine.services.TurbineBaseService
init, init, init, shutdown
 
Methods inherited from class org.apache.turbine.services.BaseService
getConfiguration, getName, getProperties, getServiceBroker, setName, setServiceBroker
 
Methods inherited from class org.apache.turbine.services.BaseInitable
getInit, getInitableBroker, setInit, setInitableBroker
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.turbine.services.Initable
getInit, setInitableBroker
 

Field Detail

SERVICE_NAME

public static final java.lang.String SERVICE_NAME
See Also:
Constant Field Values
Constructor Detail

FileRetrieverService

public FileRetrieverService()
Method Detail

getInstance

public static FileRetrieverService getInstance()

getFile

public AbstractFileResource getFile(Blog blog,
                                    java.lang.String file)

exists

public boolean exists(Blog blog,
                      java.lang.String file)

getFileLastModified

public long getFileLastModified(Blog blog,
                                java.lang.String file)

init

public void init()
          throws org.apache.turbine.services.InitializationException
Throws:
org.apache.turbine.services.InitializationException

getTemplatePathList

public java.util.List getTemplatePathList(org.apache.turbine.util.RunData data,
                                          Blog b,
                                          java.lang.String dirPath,
                                          FileResourceFilter filter)

getTemplateList

public TemplateFolder getTemplateList(org.apache.turbine.util.RunData data,
                                      Blog b,
                                      java.lang.String dirPath,
                                      FileResourceFilter filter)
Retrieve a tree of TemplateFolders based on

Parameters:
data - the RunData of the current request
b - the Blog from which to extyract the storage tree.
dirPath - the path to start, "/" if to search all files.
filter - the filter to use for the retrieval, or null if all the files are requested.
Returns:
a TemplateFolder the represents the root of the tree.


Copyright © 2003-2004 SourceForge.net. All Rights Reserved.