public class UndoCronJobAction extends ItemAction
CronJob editors to start the undo process. Add the following tag
to the editor configuration (as subtag of either the <td> or the <listlayout> tag) of your hmc.tmpl to
add this action:
<action type="item"
classname="de.hybris.platform.hmc.ext.cronjob.UndoCronJobAction"
name="action.undocronjob"/>
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.UndoCronJobAction' to find the definition.| Constructor and Description |
|---|
UndoCronJobAction() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isActive(ActionEvent event)
Returns
true, if the action is active. |
ActionResult |
perform(ActionEvent event)
Start the undo process of
CronJob, which is passed as part of the ActionEvent. |
canChange, canRead, canRemove, createDialogChip, getConfirmationMessage, getEditorContext, getHMCContext, getItem, getNodeParams, hasDialogChip, initialize, isAutoSave, isVisible, needConfirmation, needSaveBeforePerform, setAutoSavepublic ActionResult perform(ActionEvent event) throws JaloBusinessException
CronJob, which is passed as part of the ActionEvent. 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)CronJob must be undoableperform 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 ActionEventCronJob must be changeable (the current user must have sufficent rights to change the
CronJob)CronJob must be undoableisActive 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.