Class AbstractContentStoreMapProvider
java.lang.Object
org.springframework.extensions.surf.util.AbstractLifecycleBean
org.alfresco.repo.bulkimport.impl.stores.AbstractContentStoreMapProvider
- All Implemented Interfaces:
EventListener,ContentStoreMapProvider,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationListener
- Direct Known Subclasses:
DefaultContentStoreMapProvider
public abstract class AbstractContentStoreMapProvider
extends org.springframework.extensions.surf.util.AbstractLifecycleBean
implements ContentStoreMapProvider
Common elements of the role of a
ContentStoreMapProvider.
Extending classes should implement setUpStoreMap() to initialize the Map.- Since:
- 4.0
-
Field Summary
FieldsFields inherited from class org.springframework.extensions.surf.util.AbstractLifecycleBean
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckAndGetStore(String storeName) Check that the given store name is in the list.protected voidonBootstrap(org.springframework.context.ApplicationEvent event) set up the map on startup.protected voidonShutdown(org.springframework.context.ApplicationEvent event) voidsetContentStore(ContentStore contentStore) protected abstract voidMethods inherited from class org.springframework.extensions.surf.util.AbstractLifecycleBean
getApplicationContext, onApplicationEvent, setApplicationContext
-
Field Details
-
contentStore
-
storeMap
-
-
Constructor Details
-
AbstractContentStoreMapProvider
public AbstractContentStoreMapProvider()
-
-
Method Details
-
setUpStoreMap
protected abstract void setUpStoreMap() -
onBootstrap
protected void onBootstrap(org.springframework.context.ApplicationEvent event) set up the map on startup. seesetUpStoreMap().- Specified by:
onBootstrapin classorg.springframework.extensions.surf.util.AbstractLifecycleBean
-
onShutdown
protected void onShutdown(org.springframework.context.ApplicationEvent event) - Specified by:
onShutdownin classorg.springframework.extensions.surf.util.AbstractLifecycleBean
-
checkAndGetStore
Check that the given store name is in the list. Also check it's an instance ofFileContentStore. If it's not, output a warning as non-file-based implementations have not been tested and may be unsupported.- Specified by:
checkAndGetStorein interfaceContentStoreMapProvider- Parameters:
storeName- the store name to check- Returns:
- the corresponding
ContentStore
-
getStoreMap
- Specified by:
getStoreMapin interfaceContentStoreMapProvider- Returns:
- a
Map
-
getContentStore
-
setContentStore
-