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

Method Summary
 void createAppliedPatch(AppliedPatch appliedPatch)
          Creates and saves a new instance of the patch.
 AppliedPatch getAppliedPatch(java.lang.String id)
          Retrieve an existing patch
 java.util.List getAppliedPatches()
          Get a list of all applied patches
 java.util.List getAppliedPatches(java.util.Date from, java.util.Date to)
          Get a list of all patches applied between the given dates.
 void setAppliedOnDate(java.lang.String id, java.util.Date appliedOnDate)
          Update the patch applied on date.
 void updateAppliedPatch(AppliedPatch appliedPatch)
           
 

Method Detail

createAppliedPatch

void createAppliedPatch(AppliedPatch appliedPatch)
Creates and saves a new instance of the patch.

Parameters:
patchInfo - the patch ID and details

updateAppliedPatch

void updateAppliedPatch(AppliedPatch appliedPatch)

getAppliedPatch

AppliedPatch getAppliedPatch(java.lang.String id)
Retrieve an existing patch

Parameters:
id - the patch unique ID
Returns:
Returns the patch instance or null if one has not been persisted

getAppliedPatches

java.util.List getAppliedPatches()
Get a list of all applied patches

Returns:
Returns a list of all applied patches

getAppliedPatches

java.util.List getAppliedPatches(java.util.Date from,
                                 java.util.Date to)
Get a list of all patches applied between the given dates.

Parameters:
from - the lower date limit or null to ignore
to - the upper date limit or null to ignore
Returns:
Returns applied patches for the date range, but also patches without a date

setAppliedOnDate

void setAppliedOnDate(java.lang.String id,
                      java.util.Date appliedOnDate)
Update the patch applied on date.

Parameters:
id - the patch ID
appliedOnDate - the date applied


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