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 ContentService |
contentService |
protected 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 RetryingTransactionHelper |
retryingTransactionHelper |
protected org.alfresco.service.cmr.search.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 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(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(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(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 org.alfresco.service.cmr.repository.StoreRef repoStore
protected String repoPath
protected RetryingTransactionHelper retryingTransactionHelper
protected org.alfresco.service.cmr.search.SearchService searchService
protected org.alfresco.service.cmr.repository.NodeService nodeService
protected ContentService contentService
protected FileFolderService fileService
protected org.alfresco.service.namespace.NamespaceService namespaceService
protected org.alfresco.service.cmr.security.PermissionService permissionService
protected TenantAdminService tenantAdminService
public void setTransactionHelper(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(ContentService contentService)
public void setFileFolderService(FileFolderService fileService)
public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
public void setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
public void setTenantAdminService(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.TenantDeployer
init
in interface org.springframework.extensions.webscripts.Store
public void destroy()
destroy
in interface org.alfresco.repo.tenant.TenantDeployer
public boolean isSecure()
isSecure
in interface org.springframework.extensions.webscripts.Store
public boolean exists()
exists
in interface org.springframework.extensions.webscripts.Store
public String getBasePath()
getBasePath
in interface org.springframework.extensions.webscripts.Store
protected 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.Store
public String[] getDocumentPaths(String path, boolean includeSubPaths, String documentPattern)
getDocumentPaths
in interface org.springframework.extensions.webscripts.Store
public static String encodePathISO9075(String path)
path
- Path to encode, elements separated by '/'public String[] getDescriptionDocumentPaths()
getDescriptionDocumentPaths
in interface org.springframework.extensions.webscripts.Store
public String[] getAllDocumentPaths()
getAllDocumentPaths
in interface org.springframework.extensions.webscripts.Store
public long lastModified(String documentPath) throws IOException
lastModified
in interface org.springframework.extensions.webscripts.Store
IOException
public boolean hasDocument(String documentPath)
hasDocument
in interface org.springframework.extensions.webscripts.Store
public InputStream getDocument(String documentPath) throws IOException
getDocument
in interface org.springframework.extensions.webscripts.Store
IOException
public void createDocument(String documentPath, String content) throws IOException
createDocument
in interface org.springframework.extensions.webscripts.Store
IOException
public void updateDocument(String documentPath, String content) throws IOException
updateDocument
in interface org.springframework.extensions.webscripts.Store
IOException
public boolean removeDocument(String documentPath) throws IOException
removeDocument
in interface org.springframework.extensions.webscripts.Store
IOException
public freemarker.cache.TemplateLoader getTemplateLoader()
getTemplateLoader
in interface org.springframework.extensions.webscripts.Store
public org.springframework.extensions.webscripts.ScriptLoader getScriptLoader()
getScriptLoader
in interface org.springframework.extensions.webscripts.Store
public void onEnableTenant()
onEnableTenant
in interface org.alfresco.repo.tenant.TenantDeployer
public void onDisableTenant()
onDisableTenant
in interface org.alfresco.repo.tenant.TenantDeployer
Copyright © 2005–2017 Alfresco Software. All rights reserved.