org.kuali.kfs.sys.batch.service
Interface FilePurgeService

All Known Implementing Classes:
FilePurgeServiceImpl

public interface FilePurgeService

Methods needed to purge files in the FilePurgeStep


Method Summary
 int getDaysBeforePurgeForCustomAge(FilePurgeCustomAge customAge)
          Returns the age in days that files matching this custom age should leave matching files before purging
 int getStandardDaysBeforePurge()
          Looks up the parameter for the standard number of days before a file should be purged
 void purgeFiles(String directory, List<FilePurgeCustomAge> customAges)
          Purges old files from the given directory
 

Method Detail

purgeFiles

void purgeFiles(String directory,
                List<FilePurgeCustomAge> customAges)
Purges old files from the given directory

Parameters:
directory - the directory to purge
customAges - the List of customized ages for files which do not follow the standard

getDaysBeforePurgeForCustomAge

int getDaysBeforePurgeForCustomAge(FilePurgeCustomAge customAge)
Returns the age in days that files matching this custom age should leave matching files before purging

Parameters:
customAge - a custom age to check
Returns:
the number of days needed to elapse before purging

getStandardDaysBeforePurge

int getStandardDaysBeforePurge()
Looks up the parameter for the standard number of days before a file should be purged

Returns:
the standard number of days before a file should be purged


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.