Class DefaultOrphanedFilesHandler

All Implemented Interfaces:
OrphanedFilesHandler, Serializable, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean

public class DefaultOrphanedFilesHandler extends AbstractBusinessService implements OrphanedFilesHandler
Deletes the submitted list of orphaned(*) files. Will be used by the RemoveOrphanedFilesJob
(*) files which have no corresponding media in hybris anymore
See Also:
  • Constructor Details

    • DefaultOrphanedFilesHandler

      public DefaultOrphanedFilesHandler()
  • Method Details

    • process

      public boolean process(Collection<File> files)
      Deletes the submitted files.
      Specified by:
      process in interface OrphanedFilesHandler
      Parameters:
      files - which will be deleted
      Returns:
      true if everything was fine