public abstract class AbstractContentStoreMapProvider extends org.springframework.extensions.surf.util.AbstractLifecycleBean implements ContentStoreMapProvider
ContentStoreMapProvider.
Extending classes should implement AbstractContentStoreMapProvider.setUpStoreMap() to initialize the Map.| Modifier and Type | Field and Description |
|---|---|
protected ContentStore |
contentStore |
protected java.util.Map |
storeMap |
| Constructor and Description |
|---|
AbstractContentStoreMapProvider() |
| Modifier and Type | Method and Description |
|---|---|
ContentStore |
checkAndGetStore(java.lang.String storeName)
Check that the given store name is in the list.
|
ContentStore |
getContentStore() |
java.util.Map |
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 java.util.Map storeMap
protected abstract void setUpStoreMap()
protected void onBootstrap(org.springframework.context.ApplicationEvent event)
AbstractContentStoreMapProvider.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(java.lang.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 java.util.Map getStoreMap()
getStoreMap in interface ContentStoreMapProviderMappublic ContentStore getContentStore()
public void setContentStore(ContentStore contentStore)
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.