public abstract class AbstractContentStoreMapProvider extends org.springframework.extensions.surf.util.AbstractLifecycleBean implements ContentStoreMapProvider
ContentStoreMapProvider.
Extending classes should implement setUpStoreMap() to initialize the Map.| Modifier and Type | Field and Description |
|---|---|
protected org.alfresco.repo.content.ContentStore |
contentStore |
protected Map<String,org.alfresco.repo.content.ContentStore> |
storeMap |
| Constructor and Description |
|---|
AbstractContentStoreMapProvider() |
| Modifier and Type | Method and Description |
|---|---|
org.alfresco.repo.content.ContentStore |
checkAndGetStore(String storeName)
Check that the given store name is in the list.
|
org.alfresco.repo.content.ContentStore |
getContentStore() |
Map<String,org.alfresco.repo.content.ContentStore> |
getStoreMap()
|
protected void |
onBootstrap(org.springframework.context.ApplicationEvent event)
set up the map on startup.
|
protected void |
onShutdown(org.springframework.context.ApplicationEvent event) |
void |
setContentStore(org.alfresco.repo.content.ContentStore contentStore) |
protected abstract void |
setUpStoreMap() |
protected abstract void setUpStoreMap()
protected void onBootstrap(org.springframework.context.ApplicationEvent event)
setUpStoreMap().onBootstrap in class org.springframework.extensions.surf.util.AbstractLifecycleBeanprotected void onShutdown(org.springframework.context.ApplicationEvent event)
onShutdown in class org.springframework.extensions.surf.util.AbstractLifecycleBeanpublic org.alfresco.repo.content.ContentStore checkAndGetStore(String storeName)
FileContentStore. If it's not, output a warning
as non-file-based implementations have not been tested and may be unsupported.checkAndGetStore in interface ContentStoreMapProviderstoreName - the store name to checkContentStorepublic Map<String,org.alfresco.repo.content.ContentStore> getStoreMap()
getStoreMap in interface ContentStoreMapProviderMappublic org.alfresco.repo.content.ContentStore getContentStore()
public void setContentStore(org.alfresco.repo.content.ContentStore contentStore)
Copyright © 2005–2018 Alfresco Software. All rights reserved.