public class RepoStore extends org.springframework.extensions.webscripts.AbstractStore implements TenantDeployer
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,NodeRef> |
baseNodeRefs |
protected ContentService |
contentService |
protected FileFolderService |
fileService |
protected boolean |
mustExist |
protected org.alfresco.service.namespace.NamespaceService |
namespaceService |
protected NodeService |
nodeService |
protected PermissionService |
permissionService |
protected String |
repoPath |
protected StoreRef |
repoStore |
protected RetryingTransactionHelper |
retryingTransactionHelper |
protected SearchService |
searchService |
protected TenantAdminService |
tenantAdminService |
| Constructor and Description |
|---|
RepoStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
createDocument(String documentPath,
String content) |
void |
destroy() |
static String |
encodePathISO9075(String path)
Helper to encode the elements of a path to be used as a Lucene PATH statement
using the ISO9075 encoding.
|
boolean |
exists() |
protected NodeRef |
findNodeRef(String documentPath)
Gets the node ref for the specified path within this repo store
|
String[] |
getAllDocumentPaths() |
String |
getBasePath() |
String[] |
getDescriptionDocumentPaths() |
InputStream |
getDocument(String documentPath) |
String[] |
getDocumentPaths(String path,
boolean includeSubPaths,
String documentPattern) |
protected String |
getPath(NodeRef nodeRef)
Gets the display path for the specified node
|
String[] |
getScriptDocumentPaths(org.springframework.extensions.webscripts.WebScript script) |
org.springframework.extensions.webscripts.ScriptLoader |
getScriptLoader() |
freemarker.cache.TemplateLoader |
getTemplateLoader() |
boolean |
hasDocument(String documentPath) |
void |
init() |
boolean |
isSecure() |
long |
lastModified(String documentPath) |
void |
onDisableTenant() |
void |
onEnableTenant() |
boolean |
removeDocument(String documentPath) |
void |
setContentService(ContentService contentService)
Sets the content service
|
void |
setFileFolderService(FileFolderService fileService)
Sets the file service
|
void |
setMustExist(boolean mustExist)
Sets whether the repo store must exist
|
void |
setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
Sets the namespace service
|
void |
setNodeService(NodeService nodeService)
Sets the node service
|
void |
setPath(String repoPath)
Sets the repo path
|
void |
setPermissionService(PermissionService permissionService)
Sets the permission service
|
void |
setSearchService(SearchService searchService)
Sets the search service
|
void |
setStore(String repoStore)
Sets the repo store
|
void |
setTenantAdminService(TenantAdminService tenantAdminService)
Sets the tenant admin service
|
void |
setTransactionHelper(RetryingTransactionHelper retryingTransactionHelper)
Sets helper that provides transaction callbacks
|
String |
toString() |
void |
updateDocument(String documentPath,
String content) |
protected boolean mustExist
protected StoreRef repoStore
protected String repoPath
protected RetryingTransactionHelper retryingTransactionHelper
protected SearchService searchService
protected NodeService nodeService
protected ContentService contentService
protected FileFolderService fileService
protected org.alfresco.service.namespace.NamespaceService namespaceService
protected PermissionService permissionService
protected TenantAdminService tenantAdminService
public void setTransactionHelper(RetryingTransactionHelper retryingTransactionHelper)
public void setSearchService(SearchService searchService)
public void setNodeService(NodeService nodeService)
public void setContentService(ContentService contentService)
public void setFileFolderService(FileFolderService fileService)
public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
public void setPermissionService(PermissionService permissionService)
public void setTenantAdminService(TenantAdminService tenantAdminService)
public void setMustExist(boolean mustExist)
mustExist - public void setStore(String repoStore)
public void setPath(String repoPath)
repoPath - repoPathpublic void init()
init in interface TenantDeployerinit in interface org.springframework.extensions.webscripts.Storepublic void destroy()
destroy in interface TenantDeployerpublic boolean isSecure()
isSecure in interface org.springframework.extensions.webscripts.Storepublic boolean exists()
exists in interface org.springframework.extensions.webscripts.Storepublic String getBasePath()
getBasePath in interface org.springframework.extensions.webscripts.Storeprotected String getPath(NodeRef nodeRef)
nodeRef - protected NodeRef findNodeRef(String documentPath)
documentPath - public String[] getScriptDocumentPaths(org.springframework.extensions.webscripts.WebScript script)
getScriptDocumentPaths in interface org.springframework.extensions.webscripts.Storepublic String[] getDocumentPaths(String path, boolean includeSubPaths, String documentPattern)
getDocumentPaths in interface org.springframework.extensions.webscripts.Storepublic static String encodePathISO9075(String path)
path - Path to encode, elements separated by '/'public String[] getDescriptionDocumentPaths()
getDescriptionDocumentPaths in interface org.springframework.extensions.webscripts.Storepublic String[] getAllDocumentPaths()
getAllDocumentPaths in interface org.springframework.extensions.webscripts.Storepublic long lastModified(String documentPath) throws IOException
lastModified in interface org.springframework.extensions.webscripts.StoreIOExceptionpublic boolean hasDocument(String documentPath)
hasDocument in interface org.springframework.extensions.webscripts.Storepublic InputStream getDocument(String documentPath) throws IOException
getDocument in interface org.springframework.extensions.webscripts.StoreIOExceptionpublic void createDocument(String documentPath, String content) throws IOException
createDocument 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 freemarker.cache.TemplateLoader getTemplateLoader()
getTemplateLoader in interface org.springframework.extensions.webscripts.Storepublic org.springframework.extensions.webscripts.ScriptLoader getScriptLoader()
getScriptLoader in interface org.springframework.extensions.webscripts.Storepublic void onEnableTenant()
onEnableTenant in interface TenantDeployerpublic void onDisableTenant()
onDisableTenant in interface TenantDeployerCopyright © 2005–2014 Alfresco Software. All rights reserved.