org.kuali.kfs.module.cg.batch
Class CfdaBatchStep

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

public class CfdaBatchStep
extends AbstractStep

Parses data from a government web page listing the valid CFDA codes. The codes are then compared with what's in the CFDA table in Kuali. Codes set to be managed automatically are reconciled with what's on the web page. Codes managed manually are left alone. Finally an email containing a summary of what was done by the step execution is sent to the member of the CG_CFDA_BATCH_NOTIFY workgroup.


Constructor Summary
CfdaBatchStep()
           
 
Method Summary
 boolean execute(String jobName, Date jobRunDate)
          See the class description.
 org.kuali.rice.kns.service.KualiConfigurationService getConfigurationService()
          Gets the configurationService attribute.
 void setCfdaService(CfdaService cfdaService)
          Sets the CfdaService.
 void setConfigurationService(org.kuali.rice.kns.service.KualiConfigurationService configurationService)
          Sets the configurationService attribute value.
 void setMailService(org.kuali.rice.kns.service.MailService mailService)
          Set the MailService.
 void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
          Sets the ParameterService.
 
Methods inherited from class org.kuali.kfs.sys.batch.AbstractStep
getDateTimeService, getName, getParameterService, interrupt, isInterrupted, setBeanName, setDateTimeService, setInterrupted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CfdaBatchStep

public CfdaBatchStep()
Method Detail

execute

public boolean execute(String jobName,
                       Date jobRunDate)
                throws InterruptedException
See the class description.

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)

setCfdaService

public void setCfdaService(CfdaService cfdaService)
Sets the CfdaService. For use by Spring.

Parameters:
cfdaService - The service to be assigned.

setMailService

public void setMailService(org.kuali.rice.kns.service.MailService mailService)
Set the MailService. For use by Spring.

Parameters:
mailService - The service to be assigned.

setParameterService

public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
Sets the ParameterService. For use by Spring.

Overrides:
setParameterService in class AbstractStep
Parameters:
parameterService - The service to be assigned.

getConfigurationService

public org.kuali.rice.kns.service.KualiConfigurationService getConfigurationService()
Gets the configurationService attribute.

Returns:
Returns the configurationService.

setConfigurationService

public void setConfigurationService(org.kuali.rice.kns.service.KualiConfigurationService configurationService)
Sets the configurationService attribute value.

Parameters:
configurationService - The configurationService to set.


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