org.kuali.kfs.sys.batch
Class FilePurgeStep

java.lang.Object
  extended by org.kuali.kfs.sys.batch.AbstractStep
      extended by org.kuali.kfs.sys.batch.FilePurgeStep
All Implemented Interfaces:
Step, org.springframework.beans.factory.BeanNameAware

public class FilePurgeStep
extends AbstractStep

Purges old files from the reports directory specified in build.properties


Constructor Summary
FilePurgeStep()
           
 
Method Summary
 boolean execute(String jobName, Date jobRunDate)
          Deletes all files in the temporary directory that are over 1 day old
 List getCustomAges()
          Gets the customAges attribute.
 List getDirectories()
          Gets the directories attribute.
 FilePurgeService getFilePurgeService()
          Gets the filePurgeService attribute.
 void setCustomAges(List customAge)
          Sets the customAges attribute value.
 void setDirectories(List directories)
          Sets the directories attribute value.
 void setFilePurgeService(FilePurgeService filePurgeService)
          Sets the filePurgeService attribute value.
 
Methods inherited from class org.kuali.kfs.sys.batch.AbstractStep
getDateTimeService, getName, getParameterService, interrupt, isInterrupted, setBeanName, setDateTimeService, setInterrupted, setParameterService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilePurgeStep

public FilePurgeStep()
Method Detail

execute

public boolean execute(String jobName,
                       Date jobRunDate)
                throws InterruptedException
Deletes all files in the temporary directory that are over 1 day old

Parameters:
jobName - the name of the job running the step
jobRunDate - the time/date the job is executed
Returns:
true if successful and continue the job, false if successful and stop the job
Throws:
InterruptedException
See Also:
Step.execute(String, Date)

getDirectories

public List getDirectories()
Gets the directories attribute.

Returns:
Returns the directories.

setDirectories

public void setDirectories(List directories)
Sets the directories attribute value.

Parameters:
directories - The directories to set.

getCustomAges

public List getCustomAges()
Gets the customAges attribute.

Returns:
Returns the customAges.

setCustomAges

public void setCustomAges(List customAge)
Sets the customAges attribute value.

Parameters:
customAges - The customAges to set.

getFilePurgeService

public FilePurgeService getFilePurgeService()
Gets the filePurgeService attribute.

Returns:
Returns the filePurgeService.

setFilePurgeService

public void setFilePurgeService(FilePurgeService filePurgeService)
Sets the filePurgeService attribute value.

Parameters:
filePurgeService - The filePurgeService to set.


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