Class EcommCoreServices

java.lang.Object
com.skava.oms.service.EcommCoreServices
Direct Known Subclasses:
CollectionHelperServices, CollectionServices, CollectionValidatorComponent, CreateCollectionValidatorComponent, MessageHelperServices, OrderHelperServices, UpdateCollectionPropertyValidator, UpdateCollectionValidatorComponent

public class EcommCoreServices extends Object
This class defines common dependencies for the application.
Since:
Jul 13, 2018
Author:
Infosys Equinox
  • Field Details

    • context

      @Autowired protected org.springframework.context.ApplicationContext context
      The ApplicationContext object
    • messageSource

      @Autowired protected org.springframework.context.MessageSource messageSource
      The MessageSource object
    • validator

      @Autowired protected org.springframework.validation.beanvalidation.LocalValidatorFactoryBean validator
      The LocalValidatorFactoryBean object
    • redissonClient

      @Autowired @Lazy protected org.redisson.api.RedissonClient redissonClient
      The RedissonClient object
    • orderService

      @Autowired protected OrderProcessFlowService orderService
      The OrderProcessFlowService object
  • Constructor Details

    • EcommCoreServices

      public EcommCoreServices()
  • Method Details

    • createOrderNotes

      protected Note[] createOrderNotes(Order order, String description, boolean isCSRAdmin)
      This method prepares the note for the processing order.
      Parameters:
      order - - order object in the current process.
      description - - description given as a note.
      isCSRAdmin - indicate userType is CSR or Customer
      Returns:
      It returns the no. of notes for the given order
    • updateOrderNotification

      protected Notification[] updateOrderNotification(Order order, NotificationDTO[] notificationDTOs)
      This method prepares the notification for the processing order.
      Parameters:
      order - - order object in the current process.
      notificationDTOs - - updated notification information.
      Returns:
      It returns the no. of notifications for the given order Debug logger has been added to this method.
    • getItemIds

      public <T> Set<String> getItemIds(Map<String,Object> properties)
    • getItemIdsStr

      public Set<String> getItemIdsStr(Set<String> itemIds)
      Parameters:
      itemIds - set of itemIds
      Returns:
      set of itemIds