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.Log
loggerprotected TransactionService
transaction service -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply()
Apply the module patchabstract void
Apply patch internal method.int
int
int
getId()
int
void
init()
Initiialisation methodvoid
setBeanName
(String beanName) Convenience method to set the module patch id to the bean name (if not already specified)void
setDescription
(String description) void
setFixesFromSchema
(int fixesFromSchema) void
setFixesToSchema
(int fixesToSchema) void
void
setModuleId
(String moduleId) void
setModulePatchExecuter
(ModulePatchExecuter modulePatchExecuter) void
setTargetSchema
(int targetSchema) void
setTransactionService
(TransactionService transactionService) void
setTxnReadOnly
(boolean txnReadOnly) void
setTxnRequiresNew
(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:
getId
in 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:
setBeanName
in interfaceorg.springframework.beans.factory.BeanNameAware
-
setDescription
- Parameters:
description
- module patch description
-
getDescription
- Specified by:
getDescription
in interfaceModulePatch
- Returns:
- module patch description
- See Also:
-
setModuleId
- Parameters:
moduleId
- module id
-
getModuleId
- Specified by:
getModuleId
in 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:
getFixesFromSchema
in 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:
getFixesToSchema
in 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:
getTargetSchema
in 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:ModulePatch
Apply the module patch- Specified by:
apply
in interfaceModulePatch
- See Also:
-
applyInternal
public abstract void applyInternal()Apply patch internal method. Implementations can assume a transaction has been started. -
compareTo
- Specified by:
compareTo
in interfaceComparable<ModulePatch>
- See Also:
-