Class ChangelogProcess

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

@Component public class ChangelogProcess extends Object
This class Contains functionality to perfom CURD on changelog entity
Since:
8.17
Version:
8.17
Author:
Infosys Equinox
  • Constructor Details

    • ChangelogProcess

      public ChangelogProcess()
  • Method Details

    • findAll

      public List<ChangelogDO> findAll(ChangelogDO changelogDORequest)
      findALL Changelog
      Parameters:
      changelogDORequest -
      Returns:
    • getListFromIterator

      public static List<Changelog> getListFromIterator(Iterator<Changelog> changelogsable)
      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

      public void buildChangelogPromotionCreate(List<Promotion> promotionCreated)
      Generate the changelog for the created promotion
      Parameters:
      promotionCreated -
    • buidChangeLogPromotionUpdate

      public void buidChangeLogPromotionUpdate(Promotion sourcepromo, Promotion updatedPromoo)
      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

      public void buildChangelogForPGCreate(List<PromotionGroup> createdPG)
      Generate changelog entity for create Promotion group
      Parameters:
      createdPG -
    • buildChangeLogForPGUpdate

      public void buildChangeLogForPGUpdate(PromotionGroup sourcePG, PromotionGroup updatedPG)
      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

      public void sendChangeLogEvents(long collection, String projectId)
      write changelog for project flow
      Parameters:
      collectionId -
      projectId -