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,
java.lang.String store,
java.lang.String path,
java.io.InputStream content)
Creates a document.
|
protected void |
createDocuments(org.springframework.extensions.webscripts.WebScriptResponse res,
java.lang.String store,
java.io.InputStream in)
Creates multiple XML documents encapsulated in a single one.
|
protected void |
deleteDocument(org.springframework.extensions.webscripts.WebScriptResponse res,
java.lang.String store,
java.lang.String path)
Deletes an existing document.
|
protected void |
getDocument(org.springframework.extensions.webscripts.WebScriptResponse res,
java.lang.String store,
java.lang.String path)
Gets a document.
|
protected void |
hasDocument(org.springframework.extensions.webscripts.WebScriptResponse res,
java.lang.String store,
java.lang.String path)
Determines if the document exists.
|
protected void |
lastModified(org.springframework.extensions.webscripts.WebScriptResponse res,
java.lang.String store,
java.lang.String path)
Gets the last modified timestamp for the document.
|
protected void |
listDocuments(org.springframework.extensions.webscripts.WebScriptResponse res,
java.lang.String store,
java.lang.String path,
boolean recurse)
Lists the document paths under a given path.
|
protected void |
listDocuments(org.springframework.extensions.webscripts.WebScriptResponse res,
java.lang.String store,
java.lang.String path,
java.lang.String pattern)
Lists the document paths matching a file pattern under a given path.
|
void |
setAvmService(org.alfresco.service.cmr.avm.AVMService avmService) |
void |
setRootPath(java.lang.String rootPath) |
void |
setSearchService(org.alfresco.service.cmr.search.SearchService searchService) |
protected void |
updateDocument(org.springframework.extensions.webscripts.WebScriptResponse res,
java.lang.String store,
java.lang.String path,
java.io.InputStream content)
Updates an existing document.
|
encodePath, execute, getPathParts, setMimetypeService, setStore
addModuleBundleToCache, checkModuleBundleCache, createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toString
public void setRootPath(java.lang.String rootPath)
rootPath
- the root path under which to process store requestspublic void setAvmService(org.alfresco.service.cmr.avm.AVMService avmService)
avmService
- the AVMService to setpublic void setSearchService(org.alfresco.service.cmr.search.SearchService searchService)
searchService
- the SearchService to setprotected void lastModified(org.springframework.extensions.webscripts.WebScriptResponse res, java.lang.String store, java.lang.String path) throws java.io.IOException
lastModified
in class BaseRemoteStore
store
- the store idpath
- document path to an existing documentjava.io.IOException
protected void getDocument(org.springframework.extensions.webscripts.WebScriptResponse res, java.lang.String store, java.lang.String path) throws java.io.IOException
BaseRemoteStore
getDocument
in class BaseRemoteStore
store
- the store idpath
- document pathjava.io.IOException
- if an error occurs retrieving the documentprotected void hasDocument(org.springframework.extensions.webscripts.WebScriptResponse res, java.lang.String store, java.lang.String path) throws java.io.IOException
BaseRemoteStore
hasDocument
in class BaseRemoteStore
store
- the store idpath
- document pathjava.io.IOException
protected void createDocument(org.springframework.extensions.webscripts.WebScriptResponse res, java.lang.String store, java.lang.String path, java.io.InputStream content)
BaseRemoteStore
createDocument
in class BaseRemoteStore
store
- the store idpath
- document pathcontent
- content of the document to writeprotected void createDocuments(org.springframework.extensions.webscripts.WebScriptResponse res, java.lang.String store, java.io.InputStream in)
BaseRemoteStore
createDocuments
in class BaseRemoteStore
store
- the store idin
- content of the document to writeprotected void updateDocument(org.springframework.extensions.webscripts.WebScriptResponse res, java.lang.String store, java.lang.String path, java.io.InputStream content)
BaseRemoteStore
updateDocument
in class BaseRemoteStore
store
- the store idpath
- document pathcontent
- content to update the document withprotected void deleteDocument(org.springframework.extensions.webscripts.WebScriptResponse res, java.lang.String store, java.lang.String path)
BaseRemoteStore
deleteDocument
in class BaseRemoteStore
store
- the store idpath
- document pathprotected void listDocuments(org.springframework.extensions.webscripts.WebScriptResponse res, java.lang.String store, java.lang.String path, boolean recurse) throws java.io.IOException
BaseRemoteStore
listDocuments
in class BaseRemoteStore
store
- the store idpath
- document pathrecurse
- true to peform a recursive list, false for direct children only.java.io.IOException
- if an error occurs listing the documentsprotected void listDocuments(org.springframework.extensions.webscripts.WebScriptResponse res, java.lang.String store, java.lang.String path, java.lang.String pattern) throws java.io.IOException
BaseRemoteStore
listDocuments
in class BaseRemoteStore
store
- the store idpath
- document pathpattern
- file pattern to match - allows wildcards e.g. *.xml or site*.xmljava.io.IOException
- if an error occurs listing the documentsCopyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.