Package com.skava.oms.service.order.impl
Class UpdateOrderServiceImpl
java.lang.Object
com.skava.oms.service.EcommCoreServices
com.skava.oms.service.order.OrderHelperServices
com.skava.oms.service.order.impl.UpdateOrderServiceImpl
- All Implemented Interfaces:
com.skava.core.EcommService<UpdateOrderRequest,
,OmsServiceEntityResponse<OrderDTO>> CustomEcommService<UpdateOrderRequest,
,OmsServiceEntityResponse<OrderDTO>> UpdateOrderService
@Service
public class UpdateOrderServiceImpl
extends OrderHelperServices
implements UpdateOrderService
The class UpdateOrderServiceImpl used to handle Update Order operations.
- Since:
- 30-Apr-2020 The class implements the class UpdateOrderService
- Author:
- Infosys Equinox
-
Field Summary
Fields inherited from class com.skava.oms.service.order.OrderHelperServices
assembler, authHelper, authProps, collectionAssembler, collectionAttributeRepository, collectionByIdService, collectionRepository, getOrderLock, messageSender, mongoFactoryBean, omsEventProperties, orderDataRespository, orderHelper, orderRepository, orderSummaryServices, patchOrderSummaryServices, searchUtil, taskService, tracer
Fields inherited from class com.skava.oms.service.EcommCoreServices
context, messageSource, orderService, redissonClient, validator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.redisson.api.RLock
getLockObj
(String orderId) (non-Javadoc) This method will lock order for the User based on the given inputs.List<com.skava.core.validation.ValidatorComponent>
validator componentvoid
init()
methodFallback
(CreateOrderRequest request) Circuit breaker fall-back method monitors for failures and once failures reach certain threshold, the circuit breaker trips and returns error response accordingly.process
(UpdateOrderRequest orderrequest) (non-Javadoc) This method will create order for the User based on the given inputs.Methods inherited from class com.skava.oms.service.order.OrderHelperServices
getTraceIdHeaders, isCSRAdmin, setTraceId
Methods inherited from class com.skava.oms.service.EcommCoreServices
createOrderNotes, getItemIds, getItemIdsStr, updateOrderNotification
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.skava.oms.service.CustomEcommService
getValidateException
Methods inherited from interface com.skava.core.EcommService
getValidator
-
Constructor Details
-
UpdateOrderServiceImpl
public UpdateOrderServiceImpl()
-
-
Method Details
-
init
@EventListener(org.springframework.boot.context.event.ApplicationReadyEvent.class) public void init() -
getValidator
validator component- Specified by:
getValidator
in interfacecom.skava.core.EcommService<UpdateOrderRequest,
OmsServiceEntityResponse<OrderDTO>>
-
process
@HystrixCommand(commandKey="oms-key", fallbackMethod="methodFallback", ignoreExceptions={com.skava.core.validation.ValidateException.class,OmsServiceException.class}) @SendEvent(eventType="omsservices/orders/update", identifier="request_orderId") public OmsServiceEntityResponse<OrderDTO> process(@AuditField(field="CreateOrderRequest") UpdateOrderRequest orderrequest) (non-Javadoc) This method will create order for the User based on the given inputs.- Specified by:
process
in interfacecom.skava.core.EcommService<UpdateOrderRequest,
OmsServiceEntityResponse<OrderDTO>> - See Also:
-
Checks the collection status and validation Debug logger has been added to this method.
-
getLockObj
(non-Javadoc) This method will lock order for the User based on the given inputs. Checks the collection status and validation Debug logger has been added to this method. -
methodFallback
Circuit breaker fall-back method monitors for failures and once failures reach certain threshold, the circuit breaker trips and returns error response accordingly.- Parameters:
request
- Instance ofCreateOrderRequest
- Returns:
- Instance of
OmsServiceEntityResponse
-