Package com.skava.cart.service.impl
Class PatchUpdateCartPropertiesServiceImpl
java.lang.Object
com.skava.cart.service.impl.CartPropertiesServiceImpl
com.skava.cart.service.impl.PatchUpdateCartPropertiesServiceImpl
- All Implemented Interfaces:
PatchUpdateCartPropertiesService
,com.skava.core.EcommService<CartDataRequest,
CartPropertiesResponse>
@Service
public class PatchUpdateCartPropertiesServiceImpl
extends CartPropertiesServiceImpl
implements PatchUpdateCartPropertiesService
The Class PatchUpdateCartPropertiesServiceImpl.
-
Field Summary
Fields inherited from class com.skava.cart.service.impl.CartPropertiesServiceImpl
cartNewFactory, cartPropertiesProcess, ENTITY, messageSource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<com.skava.core.validation.ValidatorComponent>
getValidator
(CartDataRequest cartDataRequest) This method returns the list of a validator componentmethodFallback
(CartDataRequest request) Fall back process if there is any exception in the execution of the process.process
(CartDataRequest request) Process. this method used to update the CartProperties based on inputsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.skava.core.EcommService
getValidateException, getValidator
-
Constructor Details
-
PatchUpdateCartPropertiesServiceImpl
public PatchUpdateCartPropertiesServiceImpl()
-
-
Method Details
-
getValidator
@ValidatorEvent(serviceName="cartcheckout", webhookName="cartservices/validator/cartproperties", actionType="patch") public List<com.skava.core.validation.ValidatorComponent> getValidator(CartDataRequest cartDataRequest) This method returns the list of a validator component- Specified by:
getValidator
in interfacecom.skava.core.EcommService<CartDataRequest,
CartPropertiesResponse> - Overrides:
getValidator
in classCartPropertiesServiceImpl
-
process
@SendEvent(eventType="cartservices/cartproperty/patch", identifier="request_cartId") @HystrixCommand(commandKey="item-key", fallbackMethod="methodFallback", commandProperties=@HystrixProperty(name="execution.isolation.strategy",value="SEMAPHORE"), ignoreExceptions=com.skava.core.validation.ValidateException.class) public CartPropertiesResponse process(CartDataRequest request) Process. this method used to update the CartProperties based on inputs- Specified by:
process
in interfacecom.skava.core.EcommService<CartDataRequest,
CartPropertiesResponse> - Parameters:
request
- the input- Returns:
- the instance of
CartPropertiesResponse
object.
-
methodFallback
Fall back process if there is any exception in the execution of the process.- Parameters:
request
- The request for the process- Returns:
- The response from the fall back process.
-