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 ContentStore |
contentStore |
protected Map<String,ContentStore> |
storeMap |
| Constructor and Description |
|---|
AbstractContentStoreMapProvider() |
| Modifier and Type | Method and Description |
|---|---|
ContentStore |
checkAndGetStore(String storeName)
Check that the given store name is in the list.
|
ContentStore |
getContentStore() |
Map<String,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(ContentStore contentStore) |
protected abstract void |
setUpStoreMap() |
protected ContentStore contentStore
protected Map<String,ContentStore> storeMap
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 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,ContentStore> getStoreMap()
getStoreMap in interface ContentStoreMapProviderMappublic ContentStore getContentStore()
public void setContentStore(ContentStore contentStore)
Copyright © 2005–2014 Alfresco Software. All rights reserved.