org.alfresco.repo.admin.patch
Interface PatchService

All Known Implementing Classes:
PatchServiceImpl

public interface PatchService

Manages patches applied against the repository.

Patches are injected into this class and any attempted applications are recorded for later auditing.

Since:
1.2

Method Summary
 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.
 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.
 

Method Detail

registerPatch

void registerPatch(Patch patch)
Registers a patch with the service that executes them.

Parameters:
patch - the patch to register

validatePatches

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. This is to prevent tampering with versioning information attached to a license.

Returns:
true if validation is successful. Outputs errors and returns false otherwise.

applyOutstandingPatches

boolean applyOutstandingPatches()
Apply all outstanding patches that are relevant to the repo. If there is a failure, then the patches that were applied will remain so, but the process will not attempt to apply any further patches.

Returns:
Returns true if all outstanding patches were applied, or false if the process was termintated before all patches could be applied.

getPatches

java.util.List getPatches(java.util.Date fromDate,
                          java.util.Date toDate)
Retrieves all applied patches between two specific times.

Parameters:
from - the start date of the search, or null to get all patches from the start
to - the end date of the search, or null to g
Returns:
Returns all applied patches (successful or not)


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.