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
public class ModulePatchExecuterImpl extends AbstractModuleComponent implements ModulePatchExecuter
Module patch executer base implementation- Since:
- 2.2
- Author:
- Roy Wetherall
-
-
Field Summary
Fields Modifier and Type Field Description protected AttributeService
attributeService
attribute serviceprotected static org.apache.commons.logging.Log
LOGGER
loggerprotected Map<String,ModulePatch>
modulePatches
module patchesprotected int
moduleSchema
configured module schema version-
Fields inherited from class org.alfresco.repo.module.AbstractModuleComponent
authenticationComponent, moduleService, serviceRegistry
-
-
Constructor Summary
Constructors Constructor Description ModulePatchExecuterImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
executeInternal()
protected int
getCurrentSchema()
Get the currently recorded schema version for the modulevoid
initSchemaVersion()
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 Detail
-
LOGGER
protected static final org.apache.commons.logging.Log LOGGER
logger
-
moduleSchema
protected int moduleSchema
configured module schema version
-
attributeService
protected AttributeService attributeService
attribute service
-
modulePatches
protected Map<String,ModulePatch> modulePatches
module patches
-
-
Method Detail
-
setAttributeService
public void setAttributeService(AttributeService attributeService)
- Parameters:
attributeService
- attribute service
-
setModuleSchema
public void setModuleSchema(int moduleSchema)
- Parameters:
moduleSchema
- configured module schema version
-
register
public void register(ModulePatch modulePatch)
Description copied from interface:ModulePatchExecuter
Register module patch with the module patch executer- Specified by:
register
in interfaceModulePatchExecuter
- Parameters:
modulePatch
- module patch- See Also:
ModulePatchExecuter.register(org.alfresco.module.org_alfresco_module_rm.patch.ModulePatch)
-
executeInternal
protected void executeInternal()
- Specified by:
executeInternal
in classAbstractModuleComponent
- See Also:
AbstractModuleComponent.executeInternal()
-
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:
ModulePatchExecuter.initSchemaVersion()
-
-