public class PatchServiceImpl extends java.lang.Object implements PatchService
Patches are injected into this class and any attempted applications are recorded for later auditing.
| Constructor and Description |
|---|
PatchServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
applyOutstandingPatches()
Apply all outstanding patches that are relevant to the repo.
|
java.util.List |
getPatches(java.util.Date fromDate,
java.util.Date toDate)
Retrieves all applied patches between two specific times.
|
void |
registerPatch(Patch patch)
Registers a patch with the service that executes them.
|
void |
setAppliedPatchDAO(AppliedPatchDAO appliedPatchDAO) |
void |
setDescriptorService(DescriptorService descriptorService) |
void |
setRuleService(RuleService ruleService) |
void |
setTransactionService(TransactionServiceImpl transactionService) |
boolean |
validatePatches()
Does some up-front validation on the patches, specifically to see if they all apply to the current server version
and not some future version.
|
public void setDescriptorService(DescriptorService descriptorService)
public void setTransactionService(TransactionServiceImpl transactionService)
public void setAppliedPatchDAO(AppliedPatchDAO appliedPatchDAO)
public void setRuleService(RuleService ruleService)
public void registerPatch(Patch patch)
PatchServiceregisterPatch in interface PatchServicepatch - the patch to registerpublic boolean validatePatches()
PatchServicevalidatePatches in interface PatchServicepublic boolean applyOutstandingPatches()
PatchServiceapplyOutstandingPatches in interface PatchServicepublic java.util.List getPatches(java.util.Date fromDate,
java.util.Date toDate)
PatchServicegetPatches in interface PatchServiceCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.