public class PerformCronJobAction extends ItemAction
CronJob editors to be able to abort start the execution of
Cronjobs. Add the following tag (as subtag of either the <td> or the <listlayout> tag) to your hmc.tmpl
to add the perform action:
<action type="item"
classname="de.hybris.platform.hmc.ext.cronjob.PerformCronJobAction"
name="action.performcronjob"/>
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.PerformCronJobAction' to find the definition.| Constructor and Description |
|---|
PerformCronJobAction() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isActive(ActionEvent event)
Returns
true, if the action is active. |
ActionResult |
perform(ActionEvent event)
Executes the
CronJob, which is passed as part of the ActionEvent. |
protected void |
runFromServiceLayer(CronJob cronJob) |
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 performableperform in interface HMCActionperform in class ItemActionevent - the eventJaloBusinessExceptionHMCAction.perform(de.hybris.platform.hmc.util.action.ActionEvent)protected void runFromServiceLayer(CronJob cronJob)
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 performableisActive 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.