Package com.skava.promotion.process
Class ChangelogProcess
java.lang.Object
com.skava.promotion.process.ChangelogProcess
This class Contains functionality to perfom CURD on changelog entity
- Since:
- 8.17
- Version:
- 8.17
- Author:
- Infosys Equinox
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
buidChangeLogPromotionUpdate
(Promotion sourcepromo, Promotion updatedPromoo) Generate the change log for the updated promotionbuildAndSaveChangelogFromPromo
(ActionLog actionlog, String sourceProjectId, Promotion updatedPromoo) Generate changelog for the given promotionvoid
buildChangelogForPGCreate
(List<PromotionGroup> createdPG) Generate changelog entity for create Promotion groupvoid
buildChangeLogForPGUpdate
(PromotionGroup sourcePG, PromotionGroup updatedPG) Generate changelog entity for Update promotionGroupvoid
buildChangelogForPromotionDelete
(long collectionId, String identifier, String promotionGroupId, String sourceProjectId, long deletedBy) Write changelog for promotion to deletevoid
buildChangelogForPromotionGroupDelete
(long collectionId, String identifier, String sourceProjectId, long deletedBy) write changelog for promotiongroup for DELETEbuildChangelogForSavePromotionGroup
(ActionLog actionlog, PromotionGroup updatedPG, String sourceProjectId) Generate changelog entity for given promotiongroupvoid
buildChangelogPromotionCreate
(List<Promotion> promotionCreated) Generate the changelog for the created promotionfindAll
(ChangelogDO changelogDORequest) findALL ChangeloggetListFromIterator
(Iterator<Changelog> changelogsable) return list of the entity from the changeloglist iteratorstatic org.springframework.data.domain.Sort
Genrate the SORT entityvoid
sendChangeLogEvents
(long collection, String projectId) write changelog for project flow
-
Constructor Details
-
ChangelogProcess
public ChangelogProcess()
-
-
Method Details
-
findAll
findALL Changelog- Parameters:
changelogDORequest
-- Returns:
-
getListFromIterator
return list of the entity from the changeloglist iterator- Parameters:
changelogsable
-- Returns:
-
getSort
public static org.springframework.data.domain.Sort getSort(Class<?> entityClazz, EcomSorts ecomSort) Genrate the SORT entity- Parameters:
entityClazz
-ecomSort
-- Returns:
-
buildChangelogPromotionCreate
Generate the changelog for the created promotion- Parameters:
promotionCreated
-
-
buidChangeLogPromotionUpdate
Generate the change log for the updated promotion- Parameters:
sourcepromo
-updatedPromoo
-
-
buildAndSaveChangelogFromPromo
public Changelog buildAndSaveChangelogFromPromo(ActionLog actionlog, String sourceProjectId, Promotion updatedPromoo) Generate changelog for the given promotion- Parameters:
businessId
-collectionId
-sourceProjectId
-updatedPromoo
-timeZone
-- Returns:
-
buildChangelogForPGCreate
Generate changelog entity for create Promotion group- Parameters:
createdPG
-
-
buildChangeLogForPGUpdate
Generate changelog entity for Update promotionGroup- Parameters:
sourcePG
-updatedPG
-
-
buildChangelogForSavePromotionGroup
public Changelog buildChangelogForSavePromotionGroup(ActionLog actionlog, PromotionGroup updatedPG, String sourceProjectId) Generate changelog entity for given promotiongroup- Parameters:
businessId
-collectionId
-updatedPG
-sourceProjectId
-timeZone
-- Returns:
-
buildChangelogForPromotionDelete
public void buildChangelogForPromotionDelete(long collectionId, String identifier, String promotionGroupId, String sourceProjectId, long deletedBy) Write changelog for promotion to delete- Parameters:
collectionId
-identifier
-promotionGroupId
-sourceProjectId
-deletedBy
-
-
buildChangelogForPromotionGroupDelete
public void buildChangelogForPromotionGroupDelete(long collectionId, String identifier, String sourceProjectId, long deletedBy) write changelog for promotiongroup for DELETE- Parameters:
collectionId
-identifier
-sourceProjectId
-deletedBy
-
-
sendChangeLogEvents
write changelog for project flow- Parameters:
collectionId
-projectId
-
-