Package org.alfresco.repo.module
Class ImporterModuleComponent
java.lang.Object
org.alfresco.repo.module.AbstractModuleComponent
org.alfresco.repo.module.ImporterModuleComponent
- All Implemented Interfaces:
ModuleComponent,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
Generic module component that can be wired up to import data into the system.
- Since:
- 2.0
- Author:
- Derek Hulley
-
Field Summary
Fields inherited from class org.alfresco.repo.module.AbstractModuleComponent
authenticationComponent, moduleService, serviceRegistry -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidChecks for the presence of all generally-required properties.protected voidThe method that performs the actual work.voidsetBootstrapView(Properties bootstrapView) Set a list of bootstrap views to import.
This is an alternative tosetBootstrapViews(List).voidsetBootstrapViews(List<Properties> bootstrapViews) Set a list of bootstrap views to import.
This is an alternative tosetBootstrapView(Properties).voidsetImporter(ImporterBootstrap importer) Set the helper that has details of the store to load the data into.Methods inherited from class org.alfresco.repo.module.AbstractModuleComponent
equals, execute, getAppliesFromVersionNumber, getAppliesToVersionNumber, getDependsOn, getDescription, getModuleId, getName, getSinceVersionNumber, hashCode, init, isExecuteOnceOnly, setAppliesFromVersion, setAppliesToVersion, setAuthenticationComponent, setBeanName, setDependsOn, setDescription, setExecuteOnceOnly, setModuleId, setModuleService, setName, setServiceRegistry, setSinceVersion, setTenantAdminService, shutdown, toString
-
Constructor Details
-
ImporterModuleComponent
public ImporterModuleComponent()
-
-
Method Details
-
setImporter
Set the helper that has details of the store to load the data into. Alfresco has a set of predefined importers for all the common stores in use.- Parameters:
importer- the bootstrap bean that performs the store bootstrap.
-
setBootstrapView
Set a list of bootstrap views to import.
This is an alternative tosetBootstrapViews(List).- Parameters:
bootstrapView- the bootstrap data location- See Also:
-
setBootstrapViews
Set a list of bootstrap views to import.
This is an alternative tosetBootstrapView(Properties).- Parameters:
bootstrapViews- the bootstrap data locations- See Also:
-
checkProperties
protected void checkProperties()Description copied from class:AbstractModuleComponentChecks for the presence of all generally-required properties.- Overrides:
checkPropertiesin classAbstractModuleComponent
-
executeInternal
Description copied from class:AbstractModuleComponentThe method that performs the actual work. For the most part, derived classes will only have to override this method to be fully functional.- Specified by:
executeInternalin classAbstractModuleComponent- Throws:
Throwable- any problems, just throw them
-