Class CreateCartPropertiesServiceImpl

java.lang.Object
com.skava.cart.service.impl.CartPropertiesServiceImpl
com.skava.cart.service.impl.CreateCartPropertiesServiceImpl
All Implemented Interfaces:
CreateCartPropertiesService, com.skava.core.EcommService<CartDataRequest,CartPropertiesResponse>

@Service public class CreateCartPropertiesServiceImpl extends CartPropertiesServiceImpl implements CreateCartPropertiesService
The Class CreatecartPropertiesServiceImpl.
  • Constructor Details

    • CreateCartPropertiesServiceImpl

      public CreateCartPropertiesServiceImpl()
  • Method Details

    • getValidator

      @ValidatorEvent(serviceName="cartcheckout", webhookName="cartservices/validator/cartproperties", actionType="create") public List<com.skava.core.validation.ValidatorComponent> getValidator(CartDataRequest cartDataRequest)
      This method returns the list of a validator component
      Specified by:
      getValidator in interface com.skava.core.EcommService<CartDataRequest,CartPropertiesResponse>
      Overrides:
      getValidator in class CartPropertiesServiceImpl
    • process

      @SendEvent(eventType="cartservices/cartproperty/create", 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)
      This method is used to create CartProperties based on given CartProperties.
      Specified by:
      process in interface com.skava.core.EcommService<CartDataRequest,CartPropertiesResponse>
      Parameters:
      request - It contains the attributes required for the creation of CartProperties.
      Returns:
      the instance of CartPropertiesResponse object.
    • methodFallback

      public CartPropertiesResponse methodFallback(CartDataRequest request)
      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.