Package com.skava.cart.service.impl
Class FindCartAddressServiceImpl
java.lang.Object
com.skava.cart.service.impl.CartAddressServiceImpl
com.skava.cart.service.impl.FindCartAddressServiceImpl
- All Implemented Interfaces:
FindCartAddressService
,com.skava.core.EcommService<CartDataRequest,
AddressResponse>
@Service
public class FindCartAddressServiceImpl
extends CartAddressServiceImpl
implements FindCartAddressService
The Class FindCartAddressServiceImpl.
This class defines the operations for the retrieve address entity service. This class checks for the access level to determine if the address needs to be retrieved for the cart or item.
- Since:
- 2018.12.05
- Version:
- 8.0.0
- Author:
- Infosys Equinox
-
Field Summary
Fields inherited from class com.skava.cart.service.impl.CartAddressServiceImpl
cartAddressProcess, cartCommonProcess, cartFactory, cartNewFactory, ENTITY, messageSource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmethodFallback
(CartDataRequest request) Fall back process if there is any exception in the execution of the process.process
(CartDataRequest request) The method FindCartAddressServiceImpl.process This method is used to retrieve Address entity based on input request.Methods inherited from class com.skava.cart.service.impl.CartAddressServiceImpl
getValidator
Methods 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, getValidator
-
Constructor Details
-
FindCartAddressServiceImpl
public FindCartAddressServiceImpl()
-
-
Method Details
-
process
@HystrixCommand(commandKey="item-key", fallbackMethod="methodFallback", commandProperties=@HystrixProperty(name="execution.isolation.strategy",value="SEMAPHORE"), ignoreExceptions=com.skava.core.validation.ValidateException.class) public AddressResponse process(CartDataRequest request) The method FindCartAddressServiceImpl.process This method is used to retrieve Address entity based on input request. This also invokes the validation process to validate if the input is a valid.- Specified by:
process
in interfacecom.skava.core.EcommService<CartDataRequest,
AddressResponse> - Parameters:
request
- Contains the details required for retrieving the address entity.- Returns:
- It returns the instance of
AddressResponse
that contains the result for the create address request. - See Also:
-
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.
-