Class DefaultOrderPartOfMembersCloningStrategy
java.lang.Object
de.hybris.platform.servicelayer.internal.service.AbstractService
de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
de.hybris.platform.order.strategies.ordercloning.impl.DefaultOrderPartOfMembersCloningStrategy
- All Implemented Interfaces:
OrderPartOfMembersCloningStrategy,Serializable,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
PaymentOrderPartOfMembersCloningStrategy
public class DefaultOrderPartOfMembersCloningStrategy
extends AbstractBusinessService
implements OrderPartOfMembersCloningStrategy
- See Also:
-
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, txManagerFields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
tenant -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddressNeedsCloning(AddressModel address, OrderModel order) Checks according to business strategies whether given address needs to be cloned as a part of order's contract.cloneAddressForOrder(AddressModel address, OrderModel order) Clones an address and sets the order as the clone's owner.clonePaymentInfoForOrder(PaymentInfoModel paymentInfo, OrderModel order) Clones a payment info and sets the order as the clone's owner.booleanpaymentInfoNeedsCloning(PaymentInfoModel paymentInfo, OrderModel order) Checks according to business strategies whether given payment info needs to be cloned as a part of order's contract.voidsetAddressService(AddressService addressService) voidsetPaymentInfoCloningContext(ModelCloningContext paymentInfoCloningContext) Methods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManagerMethods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
afterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplace
-
Constructor Details
-
DefaultOrderPartOfMembersCloningStrategy
public DefaultOrderPartOfMembersCloningStrategy()
-
-
Method Details
-
addressNeedsCloning
Description copied from interface:OrderPartOfMembersCloningStrategyChecks according to business strategies whether given address needs to be cloned as a part of order's contract.- Specified by:
addressNeedsCloningin interfaceOrderPartOfMembersCloningStrategy- Returns:
- true if this address needs to be cloned.
-
cloneAddressForOrder
Description copied from interface:OrderPartOfMembersCloningStrategyClones an address and sets the order as the clone's owner.- Specified by:
cloneAddressForOrderin interfaceOrderPartOfMembersCloningStrategy- Parameters:
address- address to cloneorder- owning order- Returns:
- cloned but not persisted
AddressModelinstance.
-
clonePaymentInfoForOrder
Description copied from interface:OrderPartOfMembersCloningStrategyClones a payment info and sets the order as the clone's owner.- Specified by:
clonePaymentInfoForOrderin interfaceOrderPartOfMembersCloningStrategy- Parameters:
paymentInfo- payment info to cloneorder- owning order- Returns:
- cloned but not persisted
PaymentInfoModelinstance.
-
paymentInfoNeedsCloning
Description copied from interface:OrderPartOfMembersCloningStrategyChecks according to business strategies whether given payment info needs to be cloned as a part of order's contract.- Specified by:
paymentInfoNeedsCloningin interfaceOrderPartOfMembersCloningStrategy- Returns:
- true if this address needs to be cloned.
-
setAddressService
-
setPaymentInfoCloningContext
-