public class AVMRemoteStore extends BaseRemoteStore
for the available API methods.defaultStore, mimetypeService, REQUEST_PARAM_STORE, REQUEST_PARAM_WEBAPP, TOKEN_STORE, TOKEN_WEBAPP, transformer, TRANSFORMER_FACTORY| Constructor and Description |
|---|
AVMRemoteStore() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createDocument(org.springframework.extensions.webscripts.WebScriptResponse res,
String store,
String path,
InputStream content)
Creates a document.
|
protected void |
createDocuments(org.springframework.extensions.webscripts.WebScriptResponse res,
String store,
InputStream in)
Creates multiple XML documents encapsulated in a single one.
|
protected void |
deleteDocument(org.springframework.extensions.webscripts.WebScriptResponse res,
String store,
String path)
Deletes an existing document.
|
protected void |
getDocument(org.springframework.extensions.webscripts.WebScriptResponse res,
String store,
String path)
Gets a document.
|
protected void |
hasDocument(org.springframework.extensions.webscripts.WebScriptResponse res,
String store,
String path)
Determines if the document exists.
|
protected void |
lastModified(org.springframework.extensions.webscripts.WebScriptResponse res,
String store,
String path)
Gets the last modified timestamp for the document.
|
protected void |
listDocuments(org.springframework.extensions.webscripts.WebScriptResponse res,
String store,
String path,
boolean recurse)
Lists the document paths under a given path.
|
protected void |
listDocuments(org.springframework.extensions.webscripts.WebScriptResponse res,
String store,
String path,
String pattern)
Lists the document paths matching a file pattern under a given path.
|
void |
setAvmService(AVMService avmService) |
void |
setRootPath(String rootPath) |
void |
setSearchService(SearchService searchService) |
protected void |
updateDocument(org.springframework.extensions.webscripts.WebScriptResponse res,
String store,
String path,
InputStream content)
Updates an existing document.
|
encodePath, execute, getPathParts, setMimetypeService, setStoreaddModuleBundleToCache, checkModuleBundleCache, createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toStringpublic void setRootPath(String rootPath)
rootPath - the root path under which to process store requestspublic void setAvmService(AVMService avmService)
avmService - the AVMService to setpublic void setSearchService(SearchService searchService)
searchService - the SearchService to setprotected void lastModified(org.springframework.extensions.webscripts.WebScriptResponse res,
String store,
String path)
throws IOException
lastModified in class BaseRemoteStorestore - the store idpath - document path to an existing documentIOExceptionprotected void getDocument(org.springframework.extensions.webscripts.WebScriptResponse res,
String store,
String path)
throws IOException
BaseRemoteStoregetDocument in class BaseRemoteStorestore - the store idpath - document pathIOException - if an error occurs retrieving the documentprotected void hasDocument(org.springframework.extensions.webscripts.WebScriptResponse res,
String store,
String path)
throws IOException
BaseRemoteStorehasDocument in class BaseRemoteStorestore - the store idpath - document pathIOExceptionprotected void createDocument(org.springframework.extensions.webscripts.WebScriptResponse res,
String store,
String path,
InputStream content)
BaseRemoteStorecreateDocument in class BaseRemoteStorestore - the store idpath - document pathcontent - content of the document to writeprotected void createDocuments(org.springframework.extensions.webscripts.WebScriptResponse res,
String store,
InputStream in)
BaseRemoteStorecreateDocuments in class BaseRemoteStorestore - the store idin - content of the document to writeprotected void updateDocument(org.springframework.extensions.webscripts.WebScriptResponse res,
String store,
String path,
InputStream content)
BaseRemoteStoreupdateDocument in class BaseRemoteStorestore - the store idpath - document pathcontent - content to update the document withprotected void deleteDocument(org.springframework.extensions.webscripts.WebScriptResponse res,
String store,
String path)
BaseRemoteStoredeleteDocument in class BaseRemoteStorestore - the store idpath - document pathprotected void listDocuments(org.springframework.extensions.webscripts.WebScriptResponse res,
String store,
String path,
boolean recurse)
throws IOException
BaseRemoteStorelistDocuments in class BaseRemoteStorestore - the store idpath - document pathrecurse - true to peform a recursive list, false for direct children only.IOException - if an error occurs listing the documentsprotected void listDocuments(org.springframework.extensions.webscripts.WebScriptResponse res,
String store,
String path,
String pattern)
throws IOException
BaseRemoteStorelistDocuments in class BaseRemoteStorestore - the store idpath - document pathpattern - file pattern to match - allows wildcards e.g. *.xml or site*.xmlIOException - if an error occurs listing the documentsCopyright © 2005–2014 Alfresco Software. All rights reserved.