Class AbstractModulePatch

java.lang.Object
org.alfresco.module.org_alfresco_module_rm.patch.AbstractModulePatch
All Implemented Interfaces:
Comparable<ModulePatch>, ModulePatch, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware
Direct Known Subclasses:
CapabilityPatch, RMv22DODCompliantSitePatch, RMv22DODModelSeparationModulePatch, RMv22GhostOnDestroyDispositionActionPatch, RMv22HoldReportPatch, RMv22RemoveInPlaceRolesFromAllPatch, RMv22ReportTemplatePatch, RMv23RecordContributorsGroupPatch, RMv23SavedSearchesPatch, RMv23VersionsEventPatch, RMv24FilePlanContainerRuleInheritancePatch, RMv32HoldChildAssocPatch, RMv32HoldReportUpdatePatch, RMv33HoldAuditEntryValuesPatch, RMv35HoldNewChildAssocPatch

public abstract class AbstractModulePatch extends Object implements ModulePatch, org.springframework.beans.factory.BeanNameAware
Abstract module patch implementation.
Since:
2.2
Author:
Roy Wetherall
  • Field Details

    • LOGGER

      protected static final org.apache.commons.logging.Log LOGGER
      logger
    • transactionService

      protected TransactionService transactionService
      transaction service
  • Constructor Details

    • AbstractModulePatch

      public AbstractModulePatch()
  • Method Details

    • init

      public void init()
      Initiialisation method
    • setTxnReadOnly

      public void setTxnReadOnly(boolean txnReadOnly)
    • setTxnRequiresNew

      public void setTxnRequiresNew(boolean txnRequiresNew)
    • setModulePatchExecuter

      public void setModulePatchExecuter(ModulePatchExecuter modulePatchExecuter)
      Parameters:
      modulePatchExecuter - module patch executer
    • setTransactionService

      public void setTransactionService(TransactionService transactionService)
      Parameters:
      transactionService - transaction service
    • setId

      public void setId(String id)
      Parameters:
      id - module patch id
    • getId

      public String getId()
      Specified by:
      getId in interface ModulePatch
      Returns:
      module patch id
      See Also:
    • setBeanName

      public void setBeanName(String beanName)
      Convenience method to set the module patch id to the bean name (if not already specified)
      Specified by:
      setBeanName in interface org.springframework.beans.factory.BeanNameAware
    • setDescription

      public void setDescription(String description)
      Parameters:
      description - module patch description
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface ModulePatch
      Returns:
      module patch description
      See Also:
    • setModuleId

      public void setModuleId(String moduleId)
      Parameters:
      moduleId - module id
    • getModuleId

      public String getModuleId()
      Specified by:
      getModuleId in interface ModulePatch
      Returns:
      module id this patch applies to
      See Also:
    • setFixesFromSchema

      public void setFixesFromSchema(int fixesFromSchema)
      Parameters:
      fixesFromSchema - fixes from schema value
    • getFixesFromSchema

      public int getFixesFromSchema()
      Specified by:
      getFixesFromSchema in interface ModulePatch
      Returns:
      smallest module schema number that this patch may be applied to
      See Also:
    • setFixesToSchema

      public void setFixesToSchema(int fixesToSchema)
      Parameters:
      fixesToSchema - fixes to schema value
    • getFixesToSchema

      public int getFixesToSchema()
      Specified by:
      getFixesToSchema in interface ModulePatch
      Returns:
      largest module schema number that this patch may be applied to
      See Also:
    • setTargetSchema

      public void setTargetSchema(int targetSchema)
    • getTargetSchema

      public int getTargetSchema()
      Specified by:
      getTargetSchema in interface ModulePatch
      Returns:
      module schema number that this patch attempts to bring the repo up to
      See Also:
    • apply

      public void apply()
      Description copied from interface: ModulePatch
      Apply the module patch
      Specified by:
      apply in interface ModulePatch
      See Also:
    • applyInternal

      public abstract void applyInternal()
      Apply patch internal method. Implementations can assume a transaction has been started.
    • compareTo

      public int compareTo(ModulePatch o)
      Specified by:
      compareTo in interface Comparable<ModulePatch>
      See Also: