Class DefaultPatchExecutionService
java.lang.Object
de.hybris.platform.patches.service.impl.DefaultPatchExecutionService
- All Implemented Interfaces:
PatchExecutionService
Implementation of
PatchExecutionService.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatePatchExecution(Patch patch) Creates patch execution for givenPatch.Returns list of all executed patchesgetLatestPatchExecutionById(String patchId) Returns the latestPatchExecutionModelbased on the execution time.getPatchExecutionById(String patchId) ReturnsPatchExecutionModelfor specific patch idRetrievesPatchExecutionModelfrom Jalo session.voidSets execution time and status for patch execution and saves thePatchExecutionModel.voidSets 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)
-
Constructor Details
-
DefaultPatchExecutionService
public DefaultPatchExecutionService()
-
-
Method Details
-
getExecutedPatches
Description copied from interface:PatchExecutionServiceReturns list of all executed patches- Specified by:
getExecutedPatchesin interfacePatchExecutionService- Returns:
- patches list of
PatchExecutionModel
-
getPatchExecutionById
Description copied from interface:PatchExecutionServiceReturnsPatchExecutionModelfor specific patch id- Specified by:
getPatchExecutionByIdin interfacePatchExecutionService- Parameters:
patchId- patch ID- Returns:
PatchExecutionModelornullif not exists
-
getLatestPatchExecutionById
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
Description copied from interface:PatchExecutionServiceSets execution time and status for patch execution and saves thePatchExecutionModel.- Specified by:
registerPatchExecutionin interfacePatchExecutionService- Parameters:
patch-PatchExecutionModel
-
registerPatchExecutionError
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
Description copied from interface:PatchExecutionServiceCreates patch execution for givenPatch.- Specified by:
createPatchExecutionin interfacePatchExecutionService- Parameters:
patch-Patch- Returns:
PatchExecutionModel
-
getSessionPatchExecution
Description copied from interface:PatchExecutionServiceRetrievesPatchExecutionModelfrom Jalo session.- Specified by:
getSessionPatchExecutionin interfacePatchExecutionService- Returns:
PatchExecutionModel
-
setTimeService
-
setModelService
-
setSessionService
-
setConfigurationService
-
setPatchExecutionDao
-