public interface PatchService
Patches are injected into this class and any attempted applications are recorded for later auditing.
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.
|
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.
|
void registerPatch(Patch patch)
patch
- the patch to registerboolean validatePatches()
boolean applyOutstandingPatches()
boolean applyOutstandingPatch(Patch patch)
patch
- the patch objectList<AppliedPatch> getPatches(Date fromDate, Date toDate)
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 gAppliedPatch getPatch(String id)
id
- the patch unique IDboolean validatePatch(Patch patch)
patch
- the patch objectCopyright © 2005–2017 Alfresco Software. All rights reserved.