public class RepoStore
extends org.springframework.extensions.webscripts.AbstractStore
implements org.alfresco.repo.tenant.TenantDeployer
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map |
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 java.lang.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(java.lang.String documentPath,
java.lang.String content) |
void |
destroy() |
static java.lang.String |
encodePathISO9075(java.lang.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(java.lang.String documentPath)
Gets the node ref for the specified path within this repo store
|
java.lang.String[] |
getAllDocumentPaths() |
java.lang.String |
getBasePath() |
java.lang.String[] |
getDescriptionDocumentPaths() |
java.io.InputStream |
getDocument(java.lang.String documentPath) |
java.lang.String[] |
getDocumentPaths(java.lang.String path,
boolean includeSubPaths,
java.lang.String documentPattern) |
protected java.lang.String |
getPath(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Gets the display path for the specified node
|
java.lang.String[] |
getScriptDocumentPaths(org.springframework.extensions.webscripts.WebScript script) |
org.springframework.extensions.webscripts.ScriptLoader |
getScriptLoader() |
freemarker.cache.TemplateLoader |
getTemplateLoader() |
boolean |
hasDocument(java.lang.String documentPath) |
void |
init() |
boolean |
isSecure() |
long |
lastModified(java.lang.String documentPath) |
void |
onDisableTenant() |
void |
onEnableTenant() |
boolean |
removeDocument(java.lang.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(java.lang.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(java.lang.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
|
java.lang.String |
toString() |
void |
updateDocument(java.lang.String documentPath,
java.lang.String content) |
protected boolean mustExist
protected org.alfresco.service.cmr.repository.StoreRef repoStore
protected java.lang.String repoPath
protected java.util.Map baseNodeRefs
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 - public void setStore(java.lang.String repoStore)
public void setPath(java.lang.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 java.lang.String getBasePath()
getBasePath in interface org.springframework.extensions.webscripts.Storeprotected java.lang.String getPath(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef - protected org.alfresco.service.cmr.repository.NodeRef findNodeRef(java.lang.String documentPath)
documentPath - public java.lang.String[] getScriptDocumentPaths(org.springframework.extensions.webscripts.WebScript script)
getScriptDocumentPaths in interface org.springframework.extensions.webscripts.Storepublic java.lang.String[] getDocumentPaths(java.lang.String path,
boolean includeSubPaths,
java.lang.String documentPattern)
getDocumentPaths in interface org.springframework.extensions.webscripts.Storepublic static java.lang.String encodePathISO9075(java.lang.String path)
path - Path to encode, elements separated by '/'public java.lang.String[] getDescriptionDocumentPaths()
getDescriptionDocumentPaths in interface org.springframework.extensions.webscripts.Storepublic java.lang.String[] getAllDocumentPaths()
getAllDocumentPaths in interface org.springframework.extensions.webscripts.Storepublic long lastModified(java.lang.String documentPath)
throws java.io.IOException
lastModified in interface org.springframework.extensions.webscripts.Storejava.io.IOExceptionpublic boolean hasDocument(java.lang.String documentPath)
hasDocument in interface org.springframework.extensions.webscripts.Storepublic java.io.InputStream getDocument(java.lang.String documentPath)
throws java.io.IOException
getDocument in interface org.springframework.extensions.webscripts.Storejava.io.IOExceptionpublic void createDocument(java.lang.String documentPath,
java.lang.String content)
throws java.io.IOException
createDocument in interface org.springframework.extensions.webscripts.Storejava.io.IOExceptionpublic void updateDocument(java.lang.String documentPath,
java.lang.String content)
throws java.io.IOException
updateDocument in interface org.springframework.extensions.webscripts.Storejava.io.IOExceptionpublic boolean removeDocument(java.lang.String documentPath)
throws java.io.IOException
removeDocument in interface org.springframework.extensions.webscripts.Storejava.io.IOExceptionpublic 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.TenantDeployerpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.