Class RemoveOrphanedFilesJob

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.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:
    Serialized Form
    • Field Detail

      • SPRING_BEAN_NAME

        public static final java.lang.String SPRING_BEAN_NAME
        See Also:
        Constant Field Values
    • Constructor Detail

      • RemoveOrphanedFilesJob

        public RemoveOrphanedFilesJob()
    • Method Detail

      • 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:
        CronJob.getFinishedResult(boolean), CronJob.getAbortResult()
      • setOrphanedMediaService

        public void setOrphanedMediaService​(OrphanedMediaService orphanedMediaService)