Package com.skava.promotion.process
Class PromoCodeListItemsProcess
java.lang.Object
com.skava.promotion.process.PromoCodeListItemsProcess
A class to perform CRUD operation on promo code list Items
- Since:
- 8.0
- Version:
- 8.0
- Author:
- Infosys Equinox
-
Field Summary
FieldsModifier and TypeFieldDescriptionHolds the instance of CollectionAttributeProcessHolds the instance of promoCodeListItemsRepositoryHolds the instance of PromoCodeListRepository -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
createListItems
(PromoCodeListDO promoCodeListDO) Provides a functionality to create the promocode list itemsvoid
deleteListItems
(PromoCodeListDO promoCodeListDO) Deletes the promocode List ItemsloadAllPromocodes
(PromoCodeListDO promoCodeListDO) Loads all promocodes based on the given list idloadListItems
(PromoCodeListDO promoCodeListDO) Loads all promocodes based on the given list id
-
Field Details
-
promoCodeListRepository
Holds the instance of PromoCodeListRepository -
promoCodeListItemsRepository
Holds the instance of promoCodeListItemsRepository -
collectionAttributeProcess
Holds the instance of CollectionAttributeProcess
-
-
Constructor Details
-
PromoCodeListItemsProcess
public PromoCodeListItemsProcess()
-
-
Method Details
-
createListItems
Provides a functionality to create the promocode list items- Parameters:
promoCodeListDO
- HOlds the instance ofPromoCodeListDO
- Returns:
- Returns true if the list item is created else false would be returned
-
loadListItems
Loads all promocodes based on the given list id- Parameters:
promoCodeListDO
- Holds the instance ofPromoCodeListDO
- Returns:
- Instance of
Set
<String
>
-
deleteListItems
Deletes the promocode List Items- Parameters:
promoCodeListDO
- Holds the data to delete promocode list items
-
loadAllPromocodes
Loads all promocodes based on the given list id- Parameters:
promoCodeListDO
- Holds the instance ofPromoCodeListDO
- Returns:
- Instance of
Set
<String
>
-