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 PatchExecutionModel
createPatchExecution(Patch patch)
Creates patch execution for givenPatch
.java.util.List<PatchExecutionModel>
getExecutedPatches()
Returns list of all executed patchesPatchExecutionModel
getLatestPatchExecutionById(java.lang.String patchId)
Returns the latestPatchExecutionModel
based on the execution time.PatchExecutionModel
getPatchExecutionById(java.lang.String patchId)
ReturnsPatchExecutionModel
for specific patch idPatchExecutionModel
getSessionPatchExecution()
RetrievesPatchExecutionModel
from Jalo session.void
registerPatchExecution(PatchExecutionModel patch)
Sets execution time and status for patch execution and saves thePatchExecutionModel
.void
registerPatchExecutionError(java.lang.String log)
Sets execution time, log message andExecutionStatus.ERROR
status for current patch execution stored in session and saves it.void
setConfigurationService(ConfigurationService configurationService)
void
setModelService(ModelService modelService)
void
setPatchExecutionDao(DefaultGenericDao<PatchExecutionModel> patchExecutionDao)
void
setSessionService(SessionService sessionService)
void
setTimeService(TimeService timeService)
-
-
-
Method Detail
-
getExecutedPatches
public java.util.List<PatchExecutionModel> getExecutedPatches()
Description copied from interface:PatchExecutionService
Returns list of all executed patches- Specified by:
getExecutedPatches
in interfacePatchExecutionService
- Returns:
- patches list of
PatchExecutionModel
-
getPatchExecutionById
public PatchExecutionModel getPatchExecutionById(java.lang.String patchId)
Description copied from interface:PatchExecutionService
ReturnsPatchExecutionModel
for specific patch id- Specified by:
getPatchExecutionById
in interfacePatchExecutionService
- Parameters:
patchId
- patch ID- Returns:
PatchExecutionModel
ornull
if not exists
-
getLatestPatchExecutionById
public PatchExecutionModel getLatestPatchExecutionById(java.lang.String patchId)
Description copied from interface:PatchExecutionService
Returns the latestPatchExecutionModel
based on the execution time.- Specified by:
getLatestPatchExecutionById
in interfacePatchExecutionService
- Parameters:
patchId
- patch ID- Returns:
- the latest
PatchExecutionModel
based on the execution time
-
registerPatchExecution
public void registerPatchExecution(PatchExecutionModel patch)
Description copied from interface:PatchExecutionService
Sets execution time and status for patch execution and saves thePatchExecutionModel
.- Specified by:
registerPatchExecution
in interfacePatchExecutionService
- Parameters:
patch
-PatchExecutionModel
-
registerPatchExecutionError
public void registerPatchExecutionError(java.lang.String log)
Description copied from interface:PatchExecutionService
Sets execution time, log message andExecutionStatus.ERROR
status for current patch execution stored in session and saves it.- Specified by:
registerPatchExecutionError
in interfacePatchExecutionService
- Parameters:
log
- execution error log
-
createPatchExecution
public PatchExecutionModel createPatchExecution(Patch patch)
Description copied from interface:PatchExecutionService
Creates patch execution for givenPatch
.- Specified by:
createPatchExecution
in interfacePatchExecutionService
- Parameters:
patch
-Patch
- Returns:
PatchExecutionModel
-
getSessionPatchExecution
public PatchExecutionModel getSessionPatchExecution()
Description copied from interface:PatchExecutionService
RetrievesPatchExecutionModel
from Jalo session.- Specified by:
getSessionPatchExecution
in 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)
-
-