public abstract class AbstractStore extends Object implements Store
| Modifier and Type | Field and Description |
|---|---|
static String |
DESC_PATH_PATTERN |
| Constructor and Description |
|---|
AbstractStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
createDocuments(List<org.springframework.extensions.surf.util.Pair<String,org.dom4j.Document>> pathContents)
Creates multiple XML documents at the specified paths.
|
String[] |
getDocumentPaths(String path,
String filePathPattern)
Gets the paths matching a given file path pattern in this store.
|
PreviewContext |
getPreviewContext()
Gets the preview context
|
boolean |
isReadOnly()
Whether the store is in read-only mode
|
void |
setPreviewContextProvider(PreviewContextProvider previewContextProvider)
Sets the preview context provider
|
void |
setReadOnly(boolean readOnly)
Sets whether the class path store is to operate in read-only mode.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateDocument, exists, getAllDocumentPaths, getBasePath, getDescriptionDocumentPaths, getDocument, getDocumentPaths, getScriptDocumentPaths, getScriptLoader, getTemplateLoader, hasDocument, init, isSecure, lastModified, removeDocument, updateDocumentpublic static final String DESC_PATH_PATTERN
public void setReadOnly(boolean readOnly)
readOnly - booleanpublic boolean isReadOnly()
isReadOnly in interface Storepublic void setPreviewContextProvider(PreviewContextProvider previewContextProvider)
previewContextProvider - PreviewContextProviderpublic PreviewContext getPreviewContext()
public void createDocuments(List<org.springframework.extensions.surf.util.Pair<String,org.dom4j.Document>> pathContents) throws IOException
StorecreateDocuments in interface StorepathContents - list of path, document pairsIOException - if a document already exists or a create failspublic String[] getDocumentPaths(String path, String filePathPattern)
StoregetDocumentPaths in interface Storepath - start pathfilePathPattern - file path pattern string, allows wildcards, eg. *.ftl or my*.ftl or *\/a\/*.xmlCopyright © 2005–2021 Alfresco Software. All rights reserved.