Class FindCollectionPropertiesServiceValueImpl
java.lang.Object
com.skava.oms.service.EcommCoreServices
com.skava.oms.service.collection.CollectionHelperServices
com.skava.oms.service.collection.properties.impl.FindCollectionPropertiesServiceValueImpl
- All Implemented Interfaces:
com.skava.core.EcommService<CollectionPropertiesRequest,
,OmsServiceEntityResponse<Object>> FindCollectionPropertiesValueService
,CustomEcommService<CollectionPropertiesRequest,
OmsServiceEntityResponse<Object>>
@Service
public class FindCollectionPropertiesServiceValueImpl
extends CollectionHelperServices
implements FindCollectionPropertiesValueService
This class implements the FindCollectionPropertiesService interface.
This class is to get collection property for the given name.
- 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>
Circuit breaker fall-back method monitors for failures and once failures reach certain threshold, the circuit breaker trips and returns error response accordingly.process
(@Valid CollectionPropertiesRequest request) This method is used to find CollectionProperty value for given property name.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
-
FindCollectionPropertiesServiceValueImpl
public FindCollectionPropertiesServiceValueImpl()
-
-
Method Details
-
getValidator
- Specified by:
getValidator
in interfacecom.skava.core.EcommService<CollectionPropertiesRequest,
OmsServiceEntityResponse<Object>>
-
process
@HystrixCommand(commandKey="oms-key", fallbackMethod="methodFallback", ignoreExceptions={com.skava.core.validation.ValidateException.class,OmsServiceException.class}) public OmsServiceEntityResponse<Object> process(@Valid @Valid CollectionPropertiesRequest request) This method is used to find CollectionProperty value for given property name. It throws error if the given collection id is not valid It throws error if the given property name is not found It will get the collection property- Specified by:
process
in interfacecom.skava.core.EcommService<CollectionPropertiesRequest,
OmsServiceEntityResponse<Object>> - Parameters:
request
- It contains the attributes required to get a CollectionProperty.- Returns:
- It returns the
OmsServiceEntityResponse
. It will throw Ecommerce exception if it process get failed. 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 ofCollectionPropertiesRequest
- Returns:
- Instance of
OmsServiceEntityResponse
-