public class CfdaServiceImpl extends Object implements CfdaService
| Modifier and Type | Field and Description |
|---|---|
protected static Comparator |
cfdaComparator |
| Constructor and Description |
|---|
CfdaServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addNew(Map<String,CFDA> newCfdas)
This method adds new cfda numbers to the cfda table
|
org.apache.commons.net.ftp.FTPClient |
connect(String url)
This method connects to the FTP server.
|
protected void |
createGovURL()
This method gets the url from the parameter and creates the fileName and
the actual URL used to FTP.
|
void |
disconnect(org.apache.commons.net.ftp.FTPClient ftp)
This method disconnects from server.
|
org.kuali.rice.krad.service.BusinessObjectService |
getBusinessObjectService() |
protected String |
getCfdaFileName() |
protected SortedMap<String,CFDA> |
getCfdaValuesInDatabase()
This method gets the current CFDA values in the table.
|
protected String |
getGovURL() |
org.kuali.rice.coreservice.framework.parameter.ParameterService |
getParameterService()
Sets the parameterService.
|
SortedMap<String,CFDA> |
retrieveGovCodes()
This method retrieves cfda codes from the government site
|
void |
setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
Sets the businessObjectService.
|
protected void |
setCfdaFileName(String fileName) |
void |
setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService)
Sets the dateTimeService.
|
protected void |
setGovURL(String url) |
void |
setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService) |
protected String |
trimProgramTitleName(String programTitleName)
This method trims the program title name so it cannot be longer
than the specified length.
|
CfdaUpdateResults |
updateCfda()
This method updates the CFDA table with the values received from the
gov site.
|
protected static Comparator cfdaComparator
public SortedMap<String,CFDA> retrieveGovCodes() throws IOException
retrieveGovCodes in interface CfdaServiceIOExceptionpublic org.apache.commons.net.ftp.FTPClient connect(String url)
url - public void disconnect(org.apache.commons.net.ftp.FTPClient ftp)
throws IOException
ftp - IOExceptionprotected void createGovURL()
protected String getGovURL()
protected String getCfdaFileName()
protected void setGovURL(String url)
protected void setCfdaFileName(String fileName)
public CfdaUpdateResults updateCfda()
updateCfda in interface CfdaServiceCfdaService.updateCfda()protected SortedMap<String,CFDA> getCfdaValuesInDatabase()
protected void addNew(Map<String,CFDA> newCfdas)
newCfdas - protected String trimProgramTitleName(String programTitleName)
programTitleName - public org.kuali.rice.krad.service.BusinessObjectService getBusinessObjectService()
public void setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
public void setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService)
public void setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
public org.kuali.rice.coreservice.framework.parameter.ParameterService getParameterService()
Copyright © 2013 The Kuali Foundation. All Rights Reserved.