Class RemoveOrphanedFilesJob

All Implemented Interfaces:
Serializable, Comparable

public class RemoveOrphanedFilesJob extends GeneratedRemoveOrphanedFilesJob
Removes orphaned(*) files based on the following search:
 SELECT {Item.PK} FROM {Media} WHERE {Media.PK}= ?pk_based_filename OR {Media.DATAPK}=?pk_based_filename
 
Using @spring.bean orphanedFilesHandler, for dealing with these 'orphanes' (*) files which have no corresponding media in hybris anymore.
See Also:
  • Field Details

  • Constructor Details

    • RemoveOrphanedFilesJob

      public RemoveOrphanedFilesJob()
  • Method Details

    • performCronJob

      public CronJob.CronJobResult performCronJob(CronJob cronjob)
      Description copied from class: Job
      You have to implement this method in your Job. Here you can execute the job. You have to return a CronJobResult that indicates whether the Job was successfully executed or not.
      Specified by:
      performCronJob in class Job
      Parameters:
      cronjob - the CronJob to execute
      Returns:
      a CronJobResult that indicates whether the Job was successfully executed or not.

      See Also:
    • setOrphanedMediaService

      public void setOrphanedMediaService(OrphanedMediaService orphanedMediaService)