Class ModulePatchExecuterImpl
java.lang.Object
org.alfresco.repo.module.AbstractModuleComponent
org.alfresco.module.org_alfresco_module_rm.patch.ModulePatchExecuterImpl
- All Implemented Interfaces:
ModulePatchExecuter,ModuleComponent,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
Module patch executer base implementation
- Since:
- 2.2
- Author:
- Roy Wetherall
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AttributeServiceattribute serviceprotected static final org.apache.commons.logging.Logloggerprotected Map<String,ModulePatch> module patchesprotected intconfigured module schema versionFields inherited from class org.alfresco.repo.module.AbstractModuleComponent
authenticationComponent, moduleService, serviceRegistry -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected intGet the currently recorded schema version for the modulevoidInit the schema version numbervoidregister(ModulePatch modulePatch) Register module patch with the module patch executervoidsetAttributeService(AttributeService attributeService) voidsetModuleSchema(int moduleSchema) protected voidupdateSchema(int newSchema) Update the recorded schema version for the module.Methods inherited from class org.alfresco.repo.module.AbstractModuleComponent
checkProperties, 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
-
Field Details
-
LOGGER
protected static final org.apache.commons.logging.Log LOGGERlogger -
moduleSchema
protected int moduleSchemaconfigured module schema version -
attributeService
attribute service -
modulePatches
module patches
-
-
Constructor Details
-
ModulePatchExecuterImpl
public ModulePatchExecuterImpl()
-
-
Method Details
-
setAttributeService
- Parameters:
attributeService- attribute service
-
setModuleSchema
public void setModuleSchema(int moduleSchema) - Parameters:
moduleSchema- configured module schema version
-
register
Description copied from interface:ModulePatchExecuterRegister module patch with the module patch executer- Specified by:
registerin interfaceModulePatchExecuter- Parameters:
modulePatch- module patch- See Also:
-
executeInternal
protected void executeInternal()- Specified by:
executeInternalin classAbstractModuleComponent- See Also:
-
getCurrentSchema
protected int getCurrentSchema()Get the currently recorded schema version for the module- Returns:
- int currently recorded schema version
-
updateSchema
protected void updateSchema(int newSchema) Update the recorded schema version for the module.- Parameters:
newSchema- new schema version
-
initSchemaVersion
public void initSchemaVersion()Description copied from interface:ModulePatchExecuterInit the schema version number- Specified by:
initSchemaVersionin interfaceModulePatchExecuter- See Also:
-