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.ContentStore
public boolean isWriteSupported()
isWriteSupported
in interface org.alfresco.repo.content.ContentStore
public String getRootLocation()
getRootLocation
in interface org.alfresco.repo.content.ContentStore
public long getSpaceFree()
getSpaceFree
in interface org.alfresco.repo.content.ContentStore
public long getSpaceTotal()
getSpaceTotal
in interface org.alfresco.repo.content.ContentStore
public boolean exists(String contentUrl) throws org.alfresco.service.cmr.repository.ContentIOException
exists
in interface org.alfresco.repo.content.ContentStore
org.alfresco.service.cmr.repository.ContentIOException
selectReadStore(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.ContentStore
EmptyContentReader
is returned.org.alfresco.service.cmr.repository.ContentIOException
public 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.ContentStore
org.alfresco.service.cmr.repository.ContentIOException
selectWriteStore(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.ContentIOException
public boolean delete(String contentUrl) throws org.alfresco.service.cmr.repository.ContentIOException
ContentStore.exists(String)
contract.delete
in interface org.alfresco.repo.content.ContentStore
org.alfresco.service.cmr.repository.ContentIOException
Copyright © 2005–2017 Alfresco Software. All rights reserved.