Class DefaultPatchExecutionService
- java.lang.Object
-
- de.hybris.platform.patches.service.impl.DefaultPatchExecutionService
-
- All Implemented Interfaces:
PatchExecutionService
public class DefaultPatchExecutionService extends java.lang.Object implements PatchExecutionService
Implementation ofPatchExecutionService.
-
-
Constructor Summary
Constructors Constructor Description DefaultPatchExecutionService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PatchExecutionModelcreatePatchExecution(Patch patch)Creates patch execution for givenPatch.java.util.List<PatchExecutionModel>getExecutedPatches()Returns list of all executed patchesPatchExecutionModelgetLatestPatchExecutionById(java.lang.String patchId)Returns the latestPatchExecutionModelbased on the execution time.PatchExecutionModelgetPatchExecutionById(java.lang.String patchId)ReturnsPatchExecutionModelfor specific patch idPatchExecutionModelgetSessionPatchExecution()RetrievesPatchExecutionModelfrom Jalo session.voidregisterPatchExecution(PatchExecutionModel patch)Sets execution time and status for patch execution and saves thePatchExecutionModel.voidregisterPatchExecutionError(java.lang.String log)Sets execution time, log message andExecutionStatus.ERRORstatus for current patch execution stored in session and saves it.voidsetConfigurationService(ConfigurationService configurationService)voidsetModelService(ModelService modelService)voidsetPatchExecutionDao(DefaultGenericDao<PatchExecutionModel> patchExecutionDao)voidsetSessionService(SessionService sessionService)voidsetTimeService(TimeService timeService)
-
-
-
Method Detail
-
getExecutedPatches
public java.util.List<PatchExecutionModel> getExecutedPatches()
Description copied from interface:PatchExecutionServiceReturns list of all executed patches- Specified by:
getExecutedPatchesin interfacePatchExecutionService- Returns:
- patches list of
PatchExecutionModel
-
getPatchExecutionById
public PatchExecutionModel getPatchExecutionById(java.lang.String patchId)
Description copied from interface:PatchExecutionServiceReturnsPatchExecutionModelfor specific patch id- Specified by:
getPatchExecutionByIdin interfacePatchExecutionService- Parameters:
patchId- patch ID- Returns:
PatchExecutionModelornullif not exists
-
getLatestPatchExecutionById
public PatchExecutionModel getLatestPatchExecutionById(java.lang.String patchId)
Description copied from interface:PatchExecutionServiceReturns the latestPatchExecutionModelbased on the execution time.- Specified by:
getLatestPatchExecutionByIdin interfacePatchExecutionService- Parameters:
patchId- patch ID- Returns:
- the latest
PatchExecutionModelbased on the execution time
-
registerPatchExecution
public void registerPatchExecution(PatchExecutionModel patch)
Description copied from interface:PatchExecutionServiceSets execution time and status for patch execution and saves thePatchExecutionModel.- Specified by:
registerPatchExecutionin interfacePatchExecutionService- Parameters:
patch-PatchExecutionModel
-
registerPatchExecutionError
public void registerPatchExecutionError(java.lang.String log)
Description copied from interface:PatchExecutionServiceSets execution time, log message andExecutionStatus.ERRORstatus for current patch execution stored in session and saves it.- Specified by:
registerPatchExecutionErrorin interfacePatchExecutionService- Parameters:
log- execution error log
-
createPatchExecution
public PatchExecutionModel createPatchExecution(Patch patch)
Description copied from interface:PatchExecutionServiceCreates patch execution for givenPatch.- Specified by:
createPatchExecutionin interfacePatchExecutionService- Parameters:
patch-Patch- Returns:
PatchExecutionModel
-
getSessionPatchExecution
public PatchExecutionModel getSessionPatchExecution()
Description copied from interface:PatchExecutionServiceRetrievesPatchExecutionModelfrom Jalo session.- Specified by:
getSessionPatchExecutionin interfacePatchExecutionService- Returns:
PatchExecutionModel
-
setTimeService
public void setTimeService(TimeService timeService)
-
setModelService
public void setModelService(ModelService modelService)
-
setSessionService
public void setSessionService(SessionService sessionService)
-
setConfigurationService
public void setConfigurationService(ConfigurationService configurationService)
-
setPatchExecutionDao
public void setPatchExecutionDao(DefaultGenericDao<PatchExecutionModel> patchExecutionDao)
-
-