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.AbstractLifecycleBean
protected void onShutdown(org.springframework.context.ApplicationEvent event)
onShutdown
in class org.springframework.extensions.surf.util.AbstractLifecycleBean
public 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 ContentStoreMapProvider
storeName
- the store name to checkContentStore
public Map<String,org.alfresco.repo.content.ContentStore> getStoreMap()
getStoreMap
in interface ContentStoreMapProvider
Map
public org.alfresco.repo.content.ContentStore getContentStore()
public void setContentStore(org.alfresco.repo.content.ContentStore contentStore)
Copyright © 2005–2017 Alfresco Software. All rights reserved.