public abstract class AbstractRoutingContentStore extends Object implements org.alfresco.repo.content.ContentStore
ContentContext| Modifier | Constructor and Description |
|---|---|
protected |
AbstractRoutingContentStore() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete(String contentUrl)
This operation has to be performed on all the stores in order to maintain the
ContentStore.exists(String) contract. |
boolean |
exists(String contentUrl) |
protected abstract List<org.alfresco.repo.content.ContentStore> |
getAllStores() |
org.alfresco.service.cmr.repository.ContentReader |
getReader(String contentUrl) |
String |
getRootLocation() |
long |
getSpaceFree() |
long |
getSpaceTotal() |
org.alfresco.service.cmr.repository.ContentWriter |
getWriter(org.alfresco.repo.content.ContentContext context)
Selects a store for the given context and caches store that was used.
|
org.alfresco.service.cmr.repository.ContentWriter |
getWriter(org.alfresco.service.cmr.repository.ContentReader existingContentReader,
String newContentUrl) |
boolean |
isContentUrlSupported(String contentUrl) |
boolean |
isWriteSupported() |
protected abstract org.alfresco.repo.content.ContentStore |
selectWriteStore(org.alfresco.repo.content.ContentContext ctx)
Get a content store based on the context provided.
|
void |
setStoresCache(org.alfresco.repo.cache.SimpleCache<org.alfresco.util.Pair<String,String>,org.alfresco.repo.content.ContentStore> storesCache) |
public void setStoresCache(org.alfresco.repo.cache.SimpleCache<org.alfresco.util.Pair<String,String>,org.alfresco.repo.content.ContentStore> storesCache)
storesCache - cache of stores used to access URLsprotected abstract List<org.alfresco.repo.content.ContentStore> getAllStores()
protected abstract org.alfresco.repo.content.ContentStore selectWriteStore(org.alfresco.repo.content.ContentContext ctx)
ctx - the context to use to make the choicepublic boolean isContentUrlSupported(String contentUrl)
isContentUrlSupported in interface org.alfresco.repo.content.ContentStorepublic boolean isWriteSupported()
isWriteSupported in interface org.alfresco.repo.content.ContentStorepublic String getRootLocation()
getRootLocation in interface org.alfresco.repo.content.ContentStorepublic long getSpaceFree()
getSpaceFree in interface org.alfresco.repo.content.ContentStorepublic long getSpaceTotal()
getSpaceTotal in interface org.alfresco.repo.content.ContentStorepublic boolean exists(String contentUrl) throws org.alfresco.service.cmr.repository.ContentIOException
exists in interface org.alfresco.repo.content.ContentStoreorg.alfresco.service.cmr.repository.ContentIOExceptionselectReadStore(String)public org.alfresco.service.cmr.repository.ContentReader getReader(String contentUrl) throws org.alfresco.service.cmr.repository.ContentIOException
getReader in interface org.alfresco.repo.content.ContentStoreEmptyContentReader is returned.org.alfresco.service.cmr.repository.ContentIOExceptionpublic org.alfresco.service.cmr.repository.ContentWriter getWriter(org.alfresco.repo.content.ContentContext context)
throws org.alfresco.service.cmr.repository.ContentIOException
getWriter in interface org.alfresco.repo.content.ContentStoreorg.alfresco.service.cmr.repository.ContentIOExceptionselectWriteStore(ContentContext)public org.alfresco.service.cmr.repository.ContentWriter getWriter(org.alfresco.service.cmr.repository.ContentReader existingContentReader,
String newContentUrl)
throws org.alfresco.service.cmr.repository.ContentIOException
org.alfresco.service.cmr.repository.ContentIOExceptionpublic boolean delete(String contentUrl) throws org.alfresco.service.cmr.repository.ContentIOException
ContentStore.exists(String) contract.delete in interface org.alfresco.repo.content.ContentStoreorg.alfresco.service.cmr.repository.ContentIOExceptionCopyright © 2005–2018 Alfresco Software. All rights reserved.