Class FindListItemServiceImpl

java.lang.Object
com.skava.list.service.impl.FindListItemServiceImpl
All Implemented Interfaces:
com.skava.core.EcommService<ListItemRequestInternal,ListItemResponse>, FindListItemService

@Service public class FindListItemServiceImpl extends Object implements FindListItemService

FindListItemServiceImpl class

This class contains the implemented for functionality to load find collection of list item.

  • Constructor Details

    • FindListItemServiceImpl

      @Autowired public FindListItemServiceImpl(ListWiredServices listWiredServices, com.skava.core.auth.AuthTokenHandler authTokenHandler)
    • FindListItemServiceImpl

      public FindListItemServiceImpl()
      Instantiates a new find list item service impl.
  • Method Details

    • process

      @HystrixCommand(commandKey="list-key", fallbackMethod="methodFallback", commandProperties=@HystrixProperty(name="execution.isolation.strategy",value="SEMAPHORE"), ignoreExceptions={com.skava.core.validation.ValidateException.class,com.skava.core.ECommerceException.class}) public ListItemResponse process(ListItemRequestInternal request)
      This method is used to load single ListItem based on given ListItem identifier.
      Specified by:
      process in interface com.skava.core.EcommService<ListItemRequestInternal,ListItemResponse>
      Parameters:
      request - It contains the attributes required for the load of ListItem.
      Returns:
      It returns the ListItemAPIResponse.
      Throws:
      com.skava.core.validation.ValidateException - It will throw Ecommerce exception if it process get failed.
    • getValidator

      public List<com.skava.core.validation.ValidatorComponent> getValidator()
      Specified by:
      getValidator in interface com.skava.core.EcommService<ListItemRequestInternal,ListItemResponse>
    • methodFallback

      public ListItemResponse methodFallback(ListItemRequestInternal request)
      Fall back process if there is any exception in the execution of the process.
      Parameters:
      request - The request for the process
      Returns:
      The response from the fall back process.