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 AttributeService
attribute serviceprotected static final org.apache.commons.logging.Log
loggerprotected Map<String,
ModulePatch> module patchesprotected int
configured module schema versionFields inherited from class org.alfresco.repo.module.AbstractModuleComponent
authenticationComponent, moduleService, serviceRegistry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected int
Get the currently recorded schema version for the modulevoid
Init the schema version numbervoid
register
(ModulePatch modulePatch) Register module patch with the module patch executervoid
setAttributeService
(AttributeService attributeService) void
setModuleSchema
(int moduleSchema) protected void
updateSchema
(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:ModulePatchExecuter
Register module patch with the module patch executer- Specified by:
register
in interfaceModulePatchExecuter
- Parameters:
modulePatch
- module patch- See Also:
-
executeInternal
protected void executeInternal()- Specified by:
executeInternal
in 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:ModulePatchExecuter
Init the schema version number- Specified by:
initSchemaVersion
in interfaceModulePatchExecuter
- See Also:
-