public class DefaultPatchExecutionService extends java.lang.Object implements PatchExecutionService
PatchExecutionService.| Constructor and Description |
|---|
DefaultPatchExecutionService() |
| Modifier and Type | Method and Description |
|---|---|
PatchExecutionModel |
createPatchExecution(Patch patch)
Creates patch execution for given
Patch. |
java.util.List<PatchExecutionModel> |
getExecutedPatches()
Returns list of all executed patches
|
PatchExecutionModel |
getLatestPatchExecutionById(java.lang.String patchId)
Returns the latest
PatchExecutionModel based on the execution time. |
PatchExecutionModel |
getPatchExecutionById(java.lang.String patchId)
Returns
PatchExecutionModel for specific patch id |
PatchExecutionModel |
getSessionPatchExecution()
Retrieves
PatchExecutionModel from Jalo session. |
void |
registerPatchExecution(PatchExecutionModel patch)
Sets execution time and status for patch execution and saves the
PatchExecutionModel. |
void |
registerPatchExecutionError(java.lang.String log)
Sets execution time, log message and
ExecutionStatus.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) |
public java.util.List<PatchExecutionModel> getExecutedPatches()
PatchExecutionServicegetExecutedPatches in interface PatchExecutionServicePatchExecutionModelpublic PatchExecutionModel getPatchExecutionById(java.lang.String patchId)
PatchExecutionServicePatchExecutionModel for specific patch idgetPatchExecutionById in interface PatchExecutionServicepatchId - patch IDPatchExecutionModel or null if not existspublic PatchExecutionModel getLatestPatchExecutionById(java.lang.String patchId)
PatchExecutionServicePatchExecutionModel based on the execution time.getLatestPatchExecutionById in interface PatchExecutionServicepatchId - patch IDPatchExecutionModel based on the execution timepublic void registerPatchExecution(PatchExecutionModel patch)
PatchExecutionServicePatchExecutionModel.registerPatchExecution in interface PatchExecutionServicepatch - PatchExecutionModelpublic void registerPatchExecutionError(java.lang.String log)
PatchExecutionServiceExecutionStatus.ERROR status for
current patch execution stored in session and saves it.registerPatchExecutionError in interface PatchExecutionServicelog - execution error logpublic PatchExecutionModel createPatchExecution(Patch patch)
PatchExecutionServicePatch.createPatchExecution in interface PatchExecutionServicepatch - PatchPatchExecutionModelpublic PatchExecutionModel getSessionPatchExecution()
PatchExecutionServicePatchExecutionModel from Jalo session.getSessionPatchExecution in interface PatchExecutionServicePatchExecutionModelpublic void setTimeService(TimeService timeService)
public void setModelService(ModelService modelService)
public void setSessionService(SessionService sessionService)
public void setConfigurationService(ConfigurationService configurationService)
public void setPatchExecutionDao(DefaultGenericDao<PatchExecutionModel> patchExecutionDao)
Copyright © 2018 SAP SE. All Rights Reserved.