Class UpdateCollectionPropertyByNameServiceImpl

java.lang.Object
com.skava.oms.service.EcommCoreServices
com.skava.oms.service.collection.CollectionHelperServices
com.skava.oms.service.collection.properties.impl.UpdateCollectionPropertyByNameServiceImpl
All Implemented Interfaces:
com.skava.core.EcommService<CollectionPropertiesRequest,OmsServiceEntityResponse<Object>>, UpdateCollectionPropertyByNameService, CustomEcommService<CollectionPropertiesRequest,OmsServiceEntityResponse<Object>>

@Service public class UpdateCollectionPropertyByNameServiceImpl extends CollectionHelperServices implements UpdateCollectionPropertyByNameService
This class implements the UpdateCollectionPropertyByNameService interface to update collection property by its name.
Author:
Parthiban P
  • Constructor Details

    • UpdateCollectionPropertyByNameServiceImpl

      public UpdateCollectionPropertyByNameServiceImpl()
  • Method Details

    • process

      @Audit @HystrixCommand(commandKey="oms-key", fallbackMethod="methodFallback", ignoreExceptions=OmsServiceException.class) @SendEvent(eventType="omsservices/collectionproperties/patchupdate", identifier="request_collectionId") public OmsServiceEntityResponse<Object> process(@AuditField(field="UpdateCollectionPropertyRequest") CollectionPropertiesRequest request)
      This method is used to update CollectionProperty based on the collection property array More than 1 property can be updated Property given should already be present in the collection It throws error if the given collection id is not valid It throws error if the given property name already exist It will return collection property when it will be created Audit log has been added
      Specified by:
      process in interface com.skava.core.EcommService<CollectionPropertiesRequest,OmsServiceEntityResponse<Object>>
      Parameters:
      request - It contains the attributes required for the creation of CollectionProperty.
      Returns:
      It returns the CollectionPropertyResponse. It will throw Ecommerce exception if it process get failed. Debug logger has been added to this method.
    • getValidator

      public List<com.skava.core.validation.ValidatorComponent> getValidator()
      Specified by:
      getValidator in interface com.skava.core.EcommService<CollectionPropertiesRequest,OmsServiceEntityResponse<Object>>
    • 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 of UpdateCollectionPropertiesRequest
      Returns:
      Instance of OmsServiceEntityResponse