Package com.skava.promotion.process
Class PromoCodeListProcess
java.lang.Object
com.skava.promotion.process.PromoCodeListProcess
A class to perform CRUD operation on promo code list
- Since:
- 8.0
- Version:
- 8.0
- Author:
- Infosys Equinox
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CollectionAttributeProcess
Holds the instance of collectionAttributeprocessHolds the instance of PromoCodeListItemsProcessHolds the instance of promoCodeListItemsRepositoryHolds the instance of PromoCodeListRepository -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateList
(PromoCodeListDO promoCodeListDO) Provides a functionality to create the promocode listcom.querydsl.core.types.dsl.BooleanExpression
createPredicateItem
(PromoCodeListDO promoCodeListDO, String version) create predicate based on collection id ,promoCodelist id and version idvoid
deleteListItems
(PromoCodeListDO promoCodeListDO) void
deleteListItemsOnPatchUpdate
(PromoCodeListDO promoCodeListDO, Set<String> deletedItems) Delete the particular promoCodes from the listvoid
deletePromoCodeList
(PromoCodeList promoCodeList) findPromocode
(String promocode, long collectionId) loadAllLists
(PromoCodeListDO promoCodeListDO) It provides the functionality to find all promocode lists based on the given requestloadByListId
(PromoCodeListDO promoCodeListDO) Load the promocode list based on the given idloadListItemsById
(PromoCodeListDO promoCodeListDO) Loads the promoCode list based on the given list id.patchUpdateList
(PromoCodeList request) Updates the promocode list based on the request dataupdateList
(PromoCodeListDO promoCodeListDO) Updates the promo code list
-
Field Details
-
promoCodeListRepository
Holds the instance of PromoCodeListRepository -
promoCodeListItemsRepository
Holds the instance of promoCodeListItemsRepository -
promoCodeListItemsProcess
Holds the instance of PromoCodeListItemsProcess -
collectionAttributeprocess
Holds the instance of collectionAttributeprocess
-
-
Constructor Details
-
PromoCodeListProcess
public PromoCodeListProcess()
-
-
Method Details
-
createList
Provides a functionality to create the promocode list- Parameters:
promoCodeListDO
- Holds the data create a promocode list- Returns:
- Instance of
PromoCodeListDO
-
updateList
Updates the promo code list- Parameters:
promoCodeListDO
- Holds the instance ofPromoCodeListDO
- Returns:
- The instance of
PromoCodeListDO
-
patchUpdateList
Updates the promocode list based on the request data- Parameters:
request
- Holds the instance ofPromoCodeList
- Returns:
- The instance of
PromoCodeListDO
-
loadByListId
Load the promocode list based on the given id- Parameters:
promoCodeListDO
- Holds the instance ofPromoCodeListDO
- Returns:
- Instance of
PromoCodeListDO
-
loadAllLists
It provides the functionality to find all promocode lists based on the given request- Parameters:
promoCodeListDO
- Holds the instance ofPromoCodeListDO
- Returns:
- Instance of @
List
<PromoCodeListDO
>
-
deletePromoCodeList
-
deleteListItems
-
findPromocode
-
loadListItemsById
Loads the promoCode list based on the given list id.- Parameters:
promoCodeListDO
- Holds the instance ofPromoCodeListDO
- Returns:
PromoCodeListDO
;
-
createPredicateItem
public com.querydsl.core.types.dsl.BooleanExpression createPredicateItem(PromoCodeListDO promoCodeListDO, String version) create predicate based on collection id ,promoCodelist id and version id- Parameters:
promoCodeListDO
-version
-- Returns:
-
deleteListItemsOnPatchUpdate
Delete the particular promoCodes from the list- Parameters:
promoCodeListDO
-deletedItems
-
-