Class DefaultOrphanedFilesHandler
- java.lang.Object
-
- de.hybris.platform.servicelayer.internal.service.AbstractService
-
- de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
-
- de.hybris.platform.admincockpit.jalo.cronjob.DefaultOrphanedFilesHandler
-
- All Implemented Interfaces:
OrphanedFilesHandler,java.io.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 theRemoveOrphanedFilesJob
(*) files which have no corresponding media in hybris anymore- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
AbstractService.SerializableDTO
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
modelService, sessionService, txManager
-
Fields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
tenant
-
-
Constructor Summary
Constructors Constructor Description DefaultOrphanedFilesHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanprocess(java.util.Collection<java.io.File> files)Deletes the submitted files.-
Methods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManager
-
Methods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
afterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplace
-
-
-
-
Method Detail
-
process
public boolean process(java.util.Collection<java.io.File> files)
Deletes the submitted files.- Specified by:
processin interfaceOrphanedFilesHandler- Parameters:
files- which will be deleted- Returns:
- true if everything was fine
-
-