public class DeleteJobLogAction extends ItemAction
CronJob editors to be able to delete all JobLogs of
the CronJob. Add the following tag (as subtag of either the <td> or the <listlayout> tag) to
your hmc.tmpl to add this action:
<action type="item"
classname="de.hybris.platform.hmc.ext.cronjob.DeleteJobLogAction"
name="action.deletejoblog"/>
The action is used in the hmc.tmpl of the CronJobExtension
(<CronJobExtension-Directory>/hmc/resources/hmc.tmpl), just search for
'de.hybris.platform.hmc.ext.cronjob.DeleteJobLogAction' to find the definition.| Constructor and Description |
|---|
DeleteJobLogAction() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isActive(ActionEvent event)
Returns
true, if the action is active. |
ActionResult |
perform(ActionEvent event)
Deletes all
JobLogs of the specified CronJob. |
canChange, canRead, canRemove, createDialogChip, getConfirmationMessage, getEditorContext, getHMCContext, getItem, getNodeParams, hasDialogChip, initialize, isAutoSave, isVisible, needConfirmation, needSaveBeforePerform, setAutoSavepublic ActionResult perform(ActionEvent event) throws JaloBusinessException
JobLogs of the specified CronJob. The following preconditions must be
fulfilled, so that the CronJob can be aborted:
CronJob must be passed with the ActionEventCronJob must be changeable (the current user must have sufficent rights to change the
CronJob)perform in interface HMCActionperform in class ItemActionevent - the eventJaloBusinessExceptionHMCAction.perform(de.hybris.platform.hmc.util.action.ActionEvent)public boolean isActive(ActionEvent event)
true, if the action is active. In order to be active, the following preconditions must be
fulfilled:
CronJob must be passed with the ActionEventisActive in interface HMCStatefulActionisActive in class ItemActionevent - the actionEventtrue, if the action is activeHMCStatefulAction.isActive(de.hybris.platform.hmc.util.action.ActionEvent)Copyright © 2017 SAP SE. All Rights Reserved.