Class GetCollectionByIdServiceImpl
java.lang.Object
com.skava.oms.service.EcommCoreServices
com.skava.oms.service.collection.CollectionHelperServices
com.skava.oms.service.collection.impl.GetCollectionByIdServiceImpl
- All Implemented Interfaces:
com.skava.core.EcommService<GetCollectionByIdRequest,
,OmsServiceEntityResponse<CollectionDTO>> GetCollectionByIdService
,CustomEcommService<GetCollectionByIdRequest,
OmsServiceEntityResponse<CollectionDTO>>
@Service
public class GetCollectionByIdServiceImpl
extends CollectionHelperServices
implements GetCollectionByIdService
This class defines the Implementation of Collection entities to handle the collection request.
GetCollectionByIdServiceImpl
- Author:
- Infosys Equinox
-
Field Summary
Fields inherited from class com.skava.oms.service.collection.CollectionHelperServices
authHelper, bpmService, collectionAssembler, collectionAttributeAssembler, collectionAttributeRepository, collectionPropertiesAssembler, collectionRepository
Fields inherited from class com.skava.oms.service.EcommCoreServices
context, messageSource, orderService, redissonClient, validator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<com.skava.core.validation.ValidatorComponent>
Validations to be done for the create collection APImethodFallback
(GetCollectionByIdRequest 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
(GetCollectionByIdRequest request) Methods inherited from class com.skava.oms.service.collection.CollectionHelperServices
checkForDuplicateName
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
-
GetCollectionByIdServiceImpl
public GetCollectionByIdServiceImpl()
-
-
Method Details
-
getValidator
Validations to be done for the create collection API- Specified by:
getValidator
in interfacecom.skava.core.EcommService<GetCollectionByIdRequest,
OmsServiceEntityResponse<CollectionDTO>>
-
process
@HystrixCommand(commandKey="oms-key", fallbackMethod="methodFallback", ignoreExceptions={com.skava.core.validation.ValidateException.class,OmsServiceException.class}) public OmsServiceEntityResponse<CollectionDTO> process(GetCollectionByIdRequest request) - Specified by:
process
in interfacecom.skava.core.EcommService<GetCollectionByIdRequest,
OmsServiceEntityResponse<CollectionDTO>>
-
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 ofGetCollectionByIdRequest
- Returns:
- Instance of
OmsServiceEntityResponse
-