public class LocalFileSystemStore
extends org.springframework.extensions.webscripts.AbstractStore
implements org.springframework.web.context.ServletContextAware
| Modifier and Type | Class and Description |
|---|---|
protected class |
LocalFileSystemStore.LocalFileSystemStoreScriptLoader
Local File System Store implementation of a Script Loader
|
| Constructor and Description |
|---|
LocalFileSystemStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
createDocument(String documentPath,
String content) |
boolean |
exists() |
protected void |
gatherAbsolutePaths(String absPath,
List<String> list) |
String[] |
getAllDocumentPaths() |
String |
getBasePath() |
String[] |
getDescriptionDocumentPaths() |
InputStream |
getDocument(String documentPath) |
String[] |
getDocumentPaths(String path,
boolean includedSubPaths,
String documentPattern) |
protected String[] |
getDocumentPathsByRegEx(String path,
String regexPattern,
boolean traverseChildren)
Performs a pattern filter look up using a regex and starting
from a given path.
|
String |
getPath() |
String |
getRealPath(String path)
Helper function for converting a web application path
to a real system path.
|
String |
getRoot() |
protected File |
getRootDir() |
String[] |
getScriptDocumentPaths(org.springframework.extensions.webscripts.WebScript script) |
org.springframework.extensions.webscripts.ScriptLoader |
getScriptLoader() |
javax.servlet.ServletContext |
getServletContext() |
freemarker.cache.TemplateLoader |
getTemplateLoader() |
boolean |
hasDocument(String documentPath) |
void |
init() |
boolean |
isSecure() |
long |
lastModified(String documentPath) |
boolean |
removeDocument(String documentPath) |
void |
setPath(String path) |
void |
setRoot(String root) |
void |
setServletContext(javax.servlet.ServletContext servletContext) |
protected String |
toAbsolutePath(String documentPath)
Returns the absolute path relative to the root of the store
given a particular document path.
|
String |
toString() |
void |
updateDocument(String documentPath,
String content) |
public void setServletContext(javax.servlet.ServletContext servletContext)
setServletContext in interface org.springframework.web.context.ServletContextAwarepublic javax.servlet.ServletContext getServletContext()
protected File getRootDir()
public void setRoot(String root)
root - the root pathpublic String getRoot()
public void setPath(String path)
path - the relative path to setpublic String getPath()
public void init()
init in interface org.springframework.extensions.webscripts.Storepublic boolean isSecure()
isSecure in interface org.springframework.extensions.webscripts.Storepublic boolean exists()
exists in interface org.springframework.extensions.webscripts.Storepublic boolean hasDocument(String documentPath)
hasDocument in interface org.springframework.extensions.webscripts.Storepublic long lastModified(String documentPath) throws IOException
lastModified in interface org.springframework.extensions.webscripts.StoreIOExceptionpublic void updateDocument(String documentPath, String content) throws IOException
updateDocument in interface org.springframework.extensions.webscripts.StoreIOExceptionpublic boolean removeDocument(String documentPath) throws IOException
removeDocument in interface org.springframework.extensions.webscripts.StoreIOExceptionpublic void createDocument(String documentPath, String content) throws IOException
createDocument in interface org.springframework.extensions.webscripts.StoreIOExceptionpublic InputStream getDocument(String documentPath) throws IOException
getDocument in interface org.springframework.extensions.webscripts.StoreIOExceptionpublic String[] getAllDocumentPaths()
getAllDocumentPaths in interface org.springframework.extensions.webscripts.Storepublic String[] getDocumentPaths(String path, boolean includedSubPaths, String documentPattern)
getDocumentPaths in interface org.springframework.extensions.webscripts.Storeprotected String[] getDocumentPathsByRegEx(String path, String regexPattern, boolean traverseChildren)
path - StringregexPattern - StringtraverseChildren - booleanpublic String[] getDescriptionDocumentPaths()
getDescriptionDocumentPaths in interface org.springframework.extensions.webscripts.Storepublic String[] getScriptDocumentPaths(org.springframework.extensions.webscripts.WebScript script)
getScriptDocumentPaths in interface org.springframework.extensions.webscripts.Storepublic org.springframework.extensions.webscripts.ScriptLoader getScriptLoader()
getScriptLoader in interface org.springframework.extensions.webscripts.Storepublic freemarker.cache.TemplateLoader getTemplateLoader()
getTemplateLoader in interface org.springframework.extensions.webscripts.Storepublic String getBasePath()
getBasePath in interface org.springframework.extensions.webscripts.Storepublic String getRealPath(String path)
path - the relative pathprotected String toAbsolutePath(String documentPath)
documentPath - StringCopyright © 2005–2016 Alfresco Software. All rights reserved.