Package com.skava.oms.service.order.impl
Class ShippingLabelServiceImpl
java.lang.Object
com.skava.oms.service.order.impl.ShippingLabelServiceImpl
- All Implemented Interfaces:
com.skava.core.EcommService<ReturnLabelRequest,
,OmsServiceEntityResponse<ReturnLabelResponse>> CustomEcommService<ReturnLabelRequest,
,OmsServiceEntityResponse<ReturnLabelResponse>> ShippingLabelService
The class ShippingLabelServiceImpl used to handle return label operations.
The class implements the class ReturnLabelService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<com.skava.core.validation.ValidatorComponent>
getValidator
(ReturnLabelRequest returnLabelRequest) the method is initially called to set the validators The validators needed for the create order will be presentvoid
init()
the method is initially called to set the validators The validators needed for the create order will be presentmethodFallback
(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
(ReturnLabelRequest returnLabelRequest) (non-Javadoc) This method will create order for the User based on the given inputs.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
-
Field Details
-
collectionRepository
-
shippingLabelProcess
-
-
Constructor Details
-
ShippingLabelServiceImpl
public ShippingLabelServiceImpl()
-
-
Method Details
-
getValidator
public List<com.skava.core.validation.ValidatorComponent> getValidator(ReturnLabelRequest returnLabelRequest) the method is initially called to set the validators The validators needed for the create order will be present- Specified by:
getValidator
in interfacecom.skava.core.EcommService<ReturnLabelRequest,
OmsServiceEntityResponse<ReturnLabelResponse>>
-
init
@EventListener(org.springframework.boot.context.event.ApplicationReadyEvent.class) public void init()the method is initially called to set the validators The validators needed for the create order will be present -
process
@HystrixCommand(commandKey="oms-key", fallbackMethod="methodFallback", ignoreExceptions={com.skava.core.validation.ValidateException.class,OmsServiceException.class}) public OmsServiceEntityResponse<ReturnLabelResponse> process(@AuditField(field="CreateOrderRequest") ReturnLabelRequest returnLabelRequest) (non-Javadoc) This method will create order for the User based on the given inputs.- Specified by:
process
in interfacecom.skava.core.EcommService<ReturnLabelRequest,
OmsServiceEntityResponse<ReturnLabelResponse>> - See Also:
-
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
-