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
Fields Modifier and Type Field Description protected static org.apache.commons.logging.Log
LOGGER
loggerprotected org.alfresco.service.transaction.TransactionService
transactionService
transaction service
-
Constructor Summary
Constructors Constructor Description AbstractModulePatch()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
apply()
Apply the module patchabstract void
applyInternal()
Apply patch internal method.int
compareTo(ModulePatch o)
String
getDescription()
int
getFixesFromSchema()
int
getFixesToSchema()
String
getId()
String
getModuleId()
int
getTargetSchema()
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
setId(String id)
void
setModuleId(String moduleId)
void
setModulePatchExecuter(ModulePatchExecuter modulePatchExecuter)
void
setTargetSchema(int targetSchema)
void
setTransactionService(org.alfresco.service.transaction.TransactionService transactionService)
void
setTxnReadOnly(boolean txnReadOnly)
void
setTxnRequiresNew(boolean txnRequiresNew)
-
-
-
Method Detail
-
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(org.alfresco.service.transaction.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 interfaceModulePatch
- Returns:
- module patch id
- See Also:
ModulePatch.getId()
-
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 interfaceorg.springframework.beans.factory.BeanNameAware
-
setDescription
public void setDescription(String description)
- Parameters:
description
- module patch description
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfaceModulePatch
- Returns:
- module patch description
- See Also:
ModulePatch.getDescription()
-
setModuleId
public void setModuleId(String moduleId)
- Parameters:
moduleId
- module id
-
getModuleId
public String getModuleId()
- Specified by:
getModuleId
in interfaceModulePatch
- Returns:
- module id this patch applies to
- See Also:
ModulePatch.getModuleId()
-
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:
ModulePatch.getFixesFromSchema()
-
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:
ModulePatch.getFixesToSchema()
-
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:
ModulePatch.getTargetSchema()
-
apply
public void apply()
Description copied from interface:ModulePatch
Apply the module patch- Specified by:
apply
in interfaceModulePatch
- See Also:
ModulePatch.apply()
-
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 interfaceComparable<ModulePatch>
- See Also:
Comparable.compareTo(java.lang.Object)
-
-