net.sourceforge.blogentis.storage
Class FileRetrieverService
java.lang.Object
org.apache.turbine.services.BaseInitable
org.apache.turbine.services.BaseService
org.apache.turbine.services.TurbineBaseService
net.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
Fields inherited from class org.apache.turbine.services.BaseService |
configuration, name, serviceBroker |
Fields inherited from class org.apache.turbine.services.BaseInitable |
initableBroker, isInitialized |
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 |
SERVICE_NAME
public static final java.lang.String SERVICE_NAME
- See Also:
- Constant Field Values
FileRetrieverService
public FileRetrieverService()
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 requestb
- 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.