Class ModulePatchExecuterImpl

  • All Implemented Interfaces:
    ModulePatchExecuter, org.alfresco.repo.module.ModuleComponent, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware

    public class ModulePatchExecuterImpl
    extends org.alfresco.repo.module.AbstractModuleComponent
    implements ModulePatchExecuter
    Module patch executer base implementation
    Since:
    2.2
    Author:
    Roy Wetherall
    • Field Summary

      Fields 
      Modifier and Type Field 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
      • Fields inherited from class org.alfresco.repo.module.AbstractModuleComponent

        authenticationComponent, moduleService, serviceRegistry
    • 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 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.
      • 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 org.alfresco.service.cmr.attributes.AttributeService attributeService
        attribute service
    • Constructor Detail

      • ModulePatchExecuterImpl

        public ModulePatchExecuterImpl()
    • Method Detail

      • setAttributeService

        public void setAttributeService​(org.alfresco.service.cmr.attributes.AttributeService attributeService)
        Parameters:
        attributeService - attribute service
      • setModuleSchema

        public void setModuleSchema​(int moduleSchema)
        Parameters:
        moduleSchema - configured module schema version
      • executeInternal

        protected void executeInternal()
        Specified by:
        executeInternal in class org.alfresco.repo.module.AbstractModuleComponent
        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