Package org.alfresco.repo.domain.patch
Interface AppliedPatchDAO
- All Known Implementing Classes:
AbstractAppliedPatchDAOImpl,AppliedPatchDAOImpl
public interface AppliedPatchDAO
Provides data access support for patch persistence in alf_applied_patch.
- Since:
- 3.4
- Author:
- Derek Hulley
-
Method Summary
Modifier and TypeMethodDescriptionvoidcreateAppliedPatch(AppliedPatch appliedPatch) Creates and saves a new instance of the patch.Retrieve an existing patchGet a list of all applied patchesgetAppliedPatches(Date from, Date to) Get a list of all patches applied between the given dates.voidsetAppliedOnDate(String id, Date appliedOnDate) Update the patch applied on date.voidupdateAppliedPatch(AppliedPatch appliedPatch)
-
Method Details
-
createAppliedPatch
Creates and saves a new instance of the patch.- Parameters:
appliedPatch- the patch
-
updateAppliedPatch
-
getAppliedPatch
Retrieve an existing patch- Parameters:
id- the patch unique ID- Returns:
- Returns the patch instance or null if one has not been persisted
-
getAppliedPatches
List<AppliedPatch> getAppliedPatches()Get a list of all applied patches- Returns:
- Returns a list of all applied patches
-
getAppliedPatches
Get a list of all patches applied between the given dates.- Parameters:
from- the lower date limit or null to ignoreto- the upper date limit or null to ignore- Returns:
- Returns applied patches for the date range, but also patches without a date
-
setAppliedOnDate
Update the patch applied on date.- Parameters:
id- the patch IDappliedOnDate- the date applied
-