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 Summary
FieldsModifier and TypeFieldDescriptionprotected static final org.apache.commons.logging.Logloggerprotected TransactionServicetransaction service -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply()Apply the module patchabstract voidApply patch internal method.intintintgetId()intvoidinit()Initiialisation methodvoidsetBeanName(String beanName) Convenience method to set the module patch id to the bean name (if not already specified)voidsetDescription(String description) voidsetFixesFromSchema(int fixesFromSchema) voidsetFixesToSchema(int fixesToSchema) voidvoidsetModuleId(String moduleId) voidsetModulePatchExecuter(ModulePatchExecuter modulePatchExecuter) voidsetTargetSchema(int targetSchema) voidsetTransactionService(TransactionService transactionService) voidsetTxnReadOnly(boolean txnReadOnly) voidsetTxnRequiresNew(boolean txnRequiresNew)
-
Field Details
-
LOGGER
protected static final org.apache.commons.logging.Log LOGGERlogger -
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
- Parameters:
modulePatchExecuter- module patch executer
-
setTransactionService
- Parameters:
transactionService- transaction service
-
setId
- Parameters:
id- module patch id
-
getId
- Specified by:
getIdin interfaceModulePatch- Returns:
- module patch id
- See Also:
-
setBeanName
Convenience method to set the module patch id to the bean name (if not already specified)- Specified by:
setBeanNamein interfaceorg.springframework.beans.factory.BeanNameAware
-
setDescription
- Parameters:
description- module patch description
-
getDescription
- Specified by:
getDescriptionin interfaceModulePatch- Returns:
- module patch description
- See Also:
-
setModuleId
- Parameters:
moduleId- module id
-
getModuleId
- Specified by:
getModuleIdin interfaceModulePatch- 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:
getFixesFromSchemain interfaceModulePatch- 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:
getFixesToSchemain interfaceModulePatch- 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:
getTargetSchemain interfaceModulePatch- Returns:
- module schema number that this patch attempts to bring the repo up to
- See Also:
-
apply
public void apply()Description copied from interface:ModulePatchApply the module patch- Specified by:
applyin interfaceModulePatch- See Also:
-
applyInternal
public abstract void applyInternal()Apply patch internal method. Implementations can assume a transaction has been started. -
compareTo
- Specified by:
compareToin interfaceComparable<ModulePatch>- See Also:
-