Class AbstractOrderAction<T extends OrderProcessModel>
java.lang.Object
de.hybris.platform.processengine.action.AbstractAction<T>
de.hybris.platform.travelfulfilmentprocess.actions.order.AbstractOrderAction<T>
- Type Parameters:
T- the type parameter
- All Implemented Interfaces:
de.hybris.platform.processengine.spring.Action<T>
- Direct Known Subclasses:
AbstractFraudCheckAction,OrderManualCheckedAction
public abstract class AbstractOrderAction<T extends OrderProcessModel>
extends de.hybris.platform.processengine.action.AbstractAction<T>
The type Abstract order action.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected de.hybris.platform.servicelayer.time.TimeServiceThe Time service.Fields inherited from class de.hybris.platform.processengine.action.AbstractAction
modelService, processParameterHelperFields inherited from interface de.hybris.platform.processengine.spring.Action
ERROR_RETURN_CODE, RETRY_RETURN_CODE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected OrderHistoryEntryModelcreateHistoryLog(String description, OrderModel order) Prepares order history entryOrderHistoryEntryModelfor the given order and description and with the current timestamp.protected de.hybris.platform.servicelayer.time.TimeServiceGets time service.voidsetTimeService(de.hybris.platform.servicelayer.time.TimeService timeService) Sets time service.Methods inherited from class de.hybris.platform.processengine.action.AbstractAction
createTransitions, getModelService, getProcessParameterHelper, getProcessParameterValue, refresh, save, setModelService, setOrderStatus, setProcessParameterHelperMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.processengine.spring.Action
execute, getCurrentActionDefinitionContext, getTransitions
-
Field Details
-
timeService
protected de.hybris.platform.servicelayer.time.TimeService timeServiceThe Time service.
-
-
Constructor Details
-
AbstractOrderAction
public AbstractOrderAction()
-
-
Method Details
-
createHistoryLog
Prepares order history entryOrderHistoryEntryModelfor the given order and description and with the current timestamp. TheOrderHistoryEntryModelis not saved!.- Parameters:
description- the descriptionorder- the order- Returns:
OrderHistoryEntryModel
-
getTimeService
protected de.hybris.platform.servicelayer.time.TimeService getTimeService()Gets time service.- Returns:
- the time service
-
setTimeService
public void setTimeService(de.hybris.platform.servicelayer.time.TimeService timeService) Sets time service.- Parameters:
timeService- the time service
-