Class PromoCodeListItemsProcess

java.lang.Object
com.skava.promotion.process.PromoCodeListItemsProcess

@Component public class PromoCodeListItemsProcess extends Object
A class to perform CRUD operation on promo code list Items
Since:
8.0
Version:
8.0
Author:
Infosys Equinox
  • Field Details

    • promoCodeListRepository

      @Autowired public PromoCodeListRepository promoCodeListRepository
      Holds the instance of PromoCodeListRepository
    • promoCodeListItemsRepository

      @Autowired public PromoCodeListItemsRepository promoCodeListItemsRepository
      Holds the instance of promoCodeListItemsRepository
    • collectionAttributeProcess

      @Autowired public CollectionAttributeProcess collectionAttributeProcess
      Holds the instance of CollectionAttributeProcess
  • Constructor Details

    • PromoCodeListItemsProcess

      public PromoCodeListItemsProcess()
  • Method Details

    • createListItems

      public boolean createListItems(PromoCodeListDO promoCodeListDO)
      Provides a functionality to create the promocode list items
      Parameters:
      promoCodeListDO - HOlds the instance of PromoCodeListDO
      Returns:
      Returns true if the list item is created else false would be returned
    • loadListItems

      public Set<String> loadListItems(PromoCodeListDO promoCodeListDO)
      Loads all promocodes based on the given list id
      Parameters:
      promoCodeListDO - Holds the instance of PromoCodeListDO
      Returns:
      Instance of Set<String>
    • deleteListItems

      public void deleteListItems(PromoCodeListDO promoCodeListDO)
      Deletes the promocode List Items
      Parameters:
      promoCodeListDO - Holds the data to delete promocode list items
    • loadAllPromocodes

      public List<String> loadAllPromocodes(PromoCodeListDO promoCodeListDO)
      Loads all promocodes based on the given list id
      Parameters:
      promoCodeListDO - Holds the instance of PromoCodeListDO
      Returns:
      Instance of Set<String>