public class PatchServiceImpl extends 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 |
applyOutstandingPatch(Patch patch)
Apply the specified patch that is relevant to the repo, regardless of the deferred flag.
|
boolean |
applyOutstandingPatches()
Apply all outstanding patches that are relevant to the repo.
|
AppliedPatch |
getPatch(String id)
Retrieve an existing patch
|
List<AppliedPatch> |
getPatches(Date fromDate,
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 |
validatePatch(Patch patch)
Does some up-front validation on the specified patch, specifically to see
if it applies to the current server version and not some future version.
|
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)
PatchService
registerPatch
in interface PatchService
patch
- the patch to registerpublic boolean validatePatches()
validatePatches
in interface PatchService
public boolean validatePatch(Patch patch)
validatePatch
in interface PatchService
patch
- the patch objectpublic boolean applyOutstandingPatches()
PatchService
applyOutstandingPatches
in interface PatchService
public boolean applyOutstandingPatch(Patch patch)
applyOutstandingPatch
in interface PatchService
patch
- the patch objectpublic List<AppliedPatch> getPatches(Date fromDate, Date toDate)
PatchService
getPatches
in interface PatchService
fromDate
- the start date of the search, or null to get all patches from the starttoDate
- the end date of the search, or null to gpublic AppliedPatch getPatch(String id)
PatchService
getPatch
in interface PatchService
id
- the patch unique IDCopyright © 2005–2017 Alfresco Software. All rights reserved.