public class RepoStore
extends org.springframework.extensions.webscripts.AbstractStore
implements org.alfresco.repo.tenant.TenantDeployer
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,org.alfresco.service.cmr.repository.NodeRef> |
baseNodeRefs |
protected org.alfresco.service.cmr.repository.ContentService |
contentService |
protected org.alfresco.service.cmr.model.FileFolderService |
fileService |
protected boolean |
mustExist |
protected org.alfresco.service.namespace.NamespaceService |
namespaceService |
protected org.alfresco.service.cmr.repository.NodeService |
nodeService |
protected org.alfresco.service.cmr.security.PermissionService |
permissionService |
protected String |
repoPath |
protected org.alfresco.service.cmr.repository.StoreRef |
repoStore |
protected org.alfresco.repo.transaction.RetryingTransactionHelper |
retryingTransactionHelper |
protected org.alfresco.service.cmr.search.SearchService |
searchService |
protected org.alfresco.repo.tenant.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 org.alfresco.service.cmr.repository.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(org.alfresco.service.cmr.repository.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(org.alfresco.service.cmr.repository.ContentService contentService)
Sets the content service
|
void |
setFileFolderService(org.alfresco.service.cmr.model.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(org.alfresco.service.cmr.repository.NodeService nodeService)
Sets the node service
|
void |
setPath(String repoPath)
Sets the repo path
|
void |
setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
Sets the permission service
|
void |
setSearchService(org.alfresco.service.cmr.search.SearchService searchService)
Sets the search service
|
void |
setStore(String repoStore)
Sets the repo store
|
void |
setTenantAdminService(org.alfresco.repo.tenant.TenantAdminService tenantAdminService)
Sets the tenant admin service
|
void |
setTransactionHelper(org.alfresco.repo.transaction.RetryingTransactionHelper retryingTransactionHelper)
Sets helper that provides transaction callbacks
|
String |
toString() |
void |
updateDocument(String documentPath,
String content) |
protected boolean mustExist
protected org.alfresco.service.cmr.repository.StoreRef repoStore
protected String repoPath
protected org.alfresco.repo.transaction.RetryingTransactionHelper retryingTransactionHelper
protected org.alfresco.service.cmr.search.SearchService searchService
protected org.alfresco.service.cmr.repository.NodeService nodeService
protected org.alfresco.service.cmr.repository.ContentService contentService
protected org.alfresco.service.cmr.model.FileFolderService fileService
protected org.alfresco.service.namespace.NamespaceService namespaceService
protected org.alfresco.service.cmr.security.PermissionService permissionService
protected org.alfresco.repo.tenant.TenantAdminService tenantAdminService
public void setTransactionHelper(org.alfresco.repo.transaction.RetryingTransactionHelper retryingTransactionHelper)
public void setSearchService(org.alfresco.service.cmr.search.SearchService searchService)
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setContentService(org.alfresco.service.cmr.repository.ContentService contentService)
public void setFileFolderService(org.alfresco.service.cmr.model.FileFolderService fileService)
public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
public void setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
public void setTenantAdminService(org.alfresco.repo.tenant.TenantAdminService tenantAdminService)
public void setMustExist(boolean mustExist)
mustExist - booleanpublic void setStore(String repoStore)
public void setPath(String repoPath)
repoPath - repoPathpublic void init()
init in interface org.alfresco.repo.tenant.TenantDeployerinit in interface org.springframework.extensions.webscripts.Storepublic void destroy()
destroy in interface org.alfresco.repo.tenant.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(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef - NodeRefprotected org.alfresco.service.cmr.repository.NodeRef findNodeRef(String documentPath)
documentPath - Stringpublic 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 org.alfresco.repo.tenant.TenantDeployerpublic void onDisableTenant()
onDisableTenant in interface org.alfresco.repo.tenant.TenantDeployerCopyright © 2005–2018 Alfresco Software. All rights reserved.