Class CloseCustomerAccountCronJobPerformable

java.lang.Object
de.hybris.platform.servicelayer.cronjob.AbstractJobPerformable<CronJobModel>
de.hybris.platform.gigya.gigyauserdeleteservices.jobs.CloseCustomerAccountCronJobPerformable
All Implemented Interfaces:
de.hybris.platform.servicelayer.cronjob.JobPerformable<CronJobModel>

public class CloseCustomerAccountCronJobPerformable extends de.hybris.platform.servicelayer.cronjob.AbstractJobPerformable<CronJobModel>
Cronjob that reads a list of files which are generated by CDC containing a list of customers that are deleted in CDC and these customer accounts are then closed in Commerce by setting the deactivationDate value
  • Constructor Details

    • CloseCustomerAccountCronJobPerformable

      public CloseCustomerAccountCronJobPerformable()
  • Method Details

    • perform

      public de.hybris.platform.servicelayer.cronjob.PerformResult perform(CronJobModel cronJob)
      Specified by:
      perform in interface de.hybris.platform.servicelayer.cronjob.JobPerformable<CronJobModel>
      Specified by:
      perform in class de.hybris.platform.servicelayer.cronjob.AbstractJobPerformable<CronJobModel>
    • processFile

      protected void processFile(CronJobModel cronJob, com.amazonaws.services.s3.AmazonS3 s3Service, String bucketId, com.amazonaws.services.s3.model.S3ObjectSummary s3ObjectSummary)
      Method to process a file on S3 to read the header and then the list of entries and close the customer accounts in Commerce by setting the de-activation date. Finally the processed files are renamed in S3.
    • getPosition

      protected int getPosition(String[] keys, String string)
    • renameFileInS3Bucket

      protected void renameFileInS3Bucket(CronJobModel cronJob, com.amazonaws.services.s3.AmazonS3 s3Service, String bucketId, String objectName)
    • getFormatterCurrentDate

      protected String getFormatterCurrentDate()
    • processCustomerDeactivation

      protected void processCustomerDeactivation(String line, int uidPosition, int timestampPosition)
    • initializeEvent

      protected de.hybris.platform.commerceservices.event.AbstractCommerceUserEvent initializeEvent(de.hybris.platform.commerceservices.event.AbstractCommerceUserEvent event, CustomerModel customer)
    • getEventService

      public de.hybris.platform.servicelayer.event.EventService getEventService()
    • setEventService

      public void setEventService(de.hybris.platform.servicelayer.event.EventService eventService)
    • getGigyaLoginService

      public GigyaLoginService getGigyaLoginService()
    • setGigyaLoginService

      public void setGigyaLoginService(GigyaLoginService gigyaLoginService)
    • getConfigurationService

      public de.hybris.platform.servicelayer.config.ConfigurationService getConfigurationService()
    • setConfigurationService

      public void setConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService)
    • getGigyaConfigGenericDao

      public de.hybris.platform.servicelayer.internal.dao.GenericDao<GigyaConfigModel> getGigyaConfigGenericDao()
    • setGigyaConfigGenericDao

      public void setGigyaConfigGenericDao(de.hybris.platform.servicelayer.internal.dao.GenericDao<GigyaConfigModel> gigyaConfigGenericDao)
    • getS3StorageServiceFactory

      public de.hybris.platform.amazon.media.services.S3StorageServiceFactory getS3StorageServiceFactory()
    • setS3StorageServiceFactory

      public void setS3StorageServiceFactory(de.hybris.platform.amazon.media.services.S3StorageServiceFactory s3StorageServiceFactory)