public class ModulePatchExecuterImpl extends org.alfresco.repo.module.AbstractModuleComponent implements ModulePatchExecuter
| Modifier and Type | Field and Description |
|---|---|
protected org.alfresco.service.cmr.attributes.AttributeService |
attributeService
attribute service
|
protected static org.apache.commons.logging.Log |
LOGGER
logger
|
protected Map<String,ModulePatch> |
modulePatches
module patches
|
protected int |
moduleSchema
configured module schema version
|
| Constructor and Description |
|---|
ModulePatchExecuterImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
executeInternal() |
protected int |
getCurrentSchema()
Get the currently recorded schema version for the module
|
void |
initSchemaVersion()
Init the schema version number
|
void |
register(ModulePatch modulePatch)
Register module patch with the module patch executer
|
void |
setAttributeService(org.alfresco.service.cmr.attributes.AttributeService attributeService) |
void |
setModuleSchema(int moduleSchema) |
protected void |
updateSchema(int newSchema)
Update the recorded schema version for the module.
|
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, toStringprotected static final org.apache.commons.logging.Log LOGGER
protected int moduleSchema
protected org.alfresco.service.cmr.attributes.AttributeService attributeService
protected Map<String,ModulePatch> modulePatches
public void setAttributeService(org.alfresco.service.cmr.attributes.AttributeService attributeService)
attributeService - attribute servicepublic void setModuleSchema(int moduleSchema)
moduleSchema - configured module schema versionpublic void register(ModulePatch modulePatch)
ModulePatchExecuterregister in interface ModulePatchExecutermodulePatch - module patchModulePatchExecuter.register(org.alfresco.module.org_alfresco_module_rm.patch.ModulePatch)protected void executeInternal()
executeInternal in class org.alfresco.repo.module.AbstractModuleComponentAbstractModuleComponent.executeInternal()protected int getCurrentSchema()
protected void updateSchema(int newSchema)
newSchema - new schema versionpublic void initSchemaVersion()
ModulePatchExecuterinitSchemaVersion in interface ModulePatchExecuterModulePatchExecuter.initSchemaVersion()Copyright © 2005–2018 Alfresco Software. All rights reserved.