Class CampaignProcess

java.lang.Object
com.skava.loyalty.process.CampaignProcess

@Component public class CampaignProcess extends Object
This class contains the functionality to perform CRUD operations of Campaign event
Since:
8.11
Version:
8.11
  • Field Details

  • Constructor Details

    • CampaignProcess

      public CampaignProcess()
  • Method Details

    • create

      public CampaignDO create(CampaignDO campaignDO)
      This method is used to create Campaign based on given LoyaltyRequest.
      Parameters:
      campaignDO - It contains the attributes required for the creation of loyalty campaign.
      Returns:
      It returns the CampaignDO.
    • get

      public CampaignDO get(CampaignDO campaignDO)
      This method is used to get Campaign based on given LoyaltyRequest.
      Parameters:
      campaignDO - It contains the attributes required for the creation of loyalty campaign.
      Returns:
      It returns the CampaignDO.
    • findAll

      public PageableDO<CampaignDO> findAll(CampaignDO campaignDO)
      This method is used to find all Collections based on given campaignRequest.
      Parameters:
      campaignDO - It contains the attributes required for the load of Collection.
      Returns:
      It returns the CampaignDO.
    • search

      public org.springframework.data.domain.Page<Campaign> search(String filters, org.springframework.data.domain.Sort sort, int page, int size)
      This method will search in the entity and provide the results based on the filters
      Parameters:
      filters - this will contains qdsl filter
      sort - this param contains the params for sorting
      page - this param contains the page count for pagination
      size - this param contains the size count for pagination
      Returns:
      It will contain the list of collection
    • update

      public CampaignDO update(CampaignDO campaignDO, String softDelete)
      This method is used to create Campaign based on given LoyaltyRequest.
      Parameters:
      campaignDO - It contains the attributes required for the creation of loyalty reward.
      softDelete - softDelete.
      Returns:
      It returns the CampaignDO.