Class DefaultOrderCalculation
- java.lang.Object
-
- de.hybris.platform.servicelayer.internal.service.AbstractService
-
- de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
-
- de.hybris.platform.order.strategies.impl.DefaultOrderCalculation
-
- All Implemented Interfaces:
OrderCalculation,java.io.Serializable,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean
public class DefaultOrderCalculation extends AbstractBusinessService implements OrderCalculation
Default implementation of theOrderCalculationinterface.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
AbstractService.SerializableDTO
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
modelService, sessionService, txManager
-
Fields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
tenant
-
-
Constructor Summary
Constructors Constructor Description DefaultOrderCalculation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancalculate(AbstractOrderModel order)Calculates the givenorderand returnstrueif each entry and after this theAbstractOrderModelwas calculated.voidsetCalculationService(CalculationService calculationService)-
Methods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManager
-
Methods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
afterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplace
-
-
-
-
Method Detail
-
calculate
public boolean calculate(AbstractOrderModel order)
Description copied from interface:OrderCalculationCalculates the givenorderand returnstrueif each entry and after this theAbstractOrderModelwas calculated. Thereby any invalid entry will be automatically removed.- Specified by:
calculatein interfaceOrderCalculation- Parameters:
order- theAbstractOrderModel- Returns:
falseif theorderwas already calculated.
-
setCalculationService
public void setCalculationService(CalculationService calculationService)
-
-