public class CleaningTempFileProvider
extends org.gytheio.content.file.TempFileProvider
The contents of ALFRESCO_TEMP_FILE_DIR [%java.io.tmpdir%/Alfresco] are managed by this class. Temporary files and directories are cleaned by TempFileCleanerJob so that after a delay [default 1 hour] the contents of the alfresco temp dir, both files and directories are removed.
Some temporary files may need to live longer than 1 hour. The temp file provider allows special sub folders which are cleaned less frequently. By default, files in the long life folders will remain for 24 hours unless cleaned by the application code earlier.
The other contents of %java.io.tmpdir% are not touched by the cleaner job.
TempFileCleanerJob Job Data: protectHours, number of hours to keep temporary files, default 1 hour.
| Modifier and Type | Class and Description |
|---|---|
static class |
CleaningTempFileProvider.TempFileCleanerJob
Cleans up all Alfresco temporary files that are older than the
given number of hours.
|
| Constructor and Description |
|---|
CleaningTempFileProvider() |
Copyright © 2015 Alfresco Software. All rights reserved.