public class ReconciliationScript
extends com.accela.aa.emse.dom.service.BaseAAScript
implements com.accela.aa.emse.dom.service.ReconciliationScriptService
Accela Automation File: ReconciliationScript.java Accela, Inc. Copyright (C): 2009-2013 Description: TODO Notes: $Id: ReconciliationScript.java 244586 2013-02-19 05:53:04Z bruce.deng $ Revision History <Date>, <Who>, <What> 2008-12-10 david.wang Initial.
Constructor and Description |
---|
ReconciliationScript()
Constructs ...
|
ReconciliationScript(java.lang.String servProvCode,
java.lang.String callerId)
Constructs ...
|
Modifier and Type | Method and Description |
---|---|
ScriptResult |
generateApprovedTransactionFile()
Generate transaction file.
|
ScriptResult |
generateFailedTransactionFile()
Generate transaction file.
|
java.lang.String |
getCurrentDate()
Method getJobDate
|
java.lang.String |
getCustomContentByType(java.lang.String contentType,
java.util.Hashtable parameters)
replace parameter for Email.
|
java.lang.String |
getServiceProviderCode()
Get serviceProviderCode
|
java.util.Date |
getTransEndDate() |
java.util.Date |
getTransStartDate() |
ScriptResult |
recoverTransactionFile(java.lang.String transFileName)
Recover Transaction File.
|
ScriptResult |
sendMail()
send mail with attached files to adminstrator.
|
void |
setCcMailAddress(java.lang.String ccMailAddress) |
void |
setContent(java.lang.String content) |
void |
setFailedFileFieldNames(java.lang.String[] fileFieldNames) |
void |
setFailedFileFieldTitles(java.lang.String[] fileFieldTitles) |
void |
setFailedFileFieldValues(java.lang.String[] fileFieldValues) |
void |
setFileNamePrefix(java.lang.String fileNamePrefix) |
void |
setFromMailAddress(java.lang.String fromMailAddress) |
void |
setFtpFolder(java.lang.String ftpFolder) |
void |
setFtpPassword(java.lang.String ftpPassword) |
void |
setFtpPort(java.lang.String ftpPort) |
void |
setFtpSite(java.lang.String ftpSite) |
void |
setFtpUserName(java.lang.String ftpUserName) |
void |
setLocalDiskFolder(java.lang.String localDiskFolder) |
void |
setMessageResources(java.util.Map resources)
Method setMessageResources
|
void |
setProvider(java.lang.String provider) |
void |
setSubject(java.lang.String subject) |
void |
setSuccessFileFieldNames(java.lang.String[] fileFieldNames) |
void |
setSuccessFileFieldTitles(java.lang.String[] fileFieldTitles) |
void |
setSuccessFileFieldValues(java.lang.String[] fileFieldValues) |
void |
setTestMode(boolean isTestMode)
Method setTestMode
|
void |
setToMailAddress(java.lang.String toMailAddress) |
void |
setTransEndDate(java.lang.String dateString) |
void |
setTransStartDate(java.lang.String dateString) |
void |
setUploadToFTP(boolean isUploadToFTP) |
void |
setWSDateStoreId(int dateStoreId) |
void |
setWSEndPoint(java.lang.String endPoint)
Method setWSEndPoint
|
void |
setWSPassword(java.lang.String password) |
void |
setWSProjectId(int projectId) |
void |
setWSUserName(java.lang.String userName) |
ScriptResult |
updateUploadStatusLog(java.lang.String uploadFileName)
Insert or update upload status log.
|
ScriptResult |
uploadTransactionFile()
Upload Transaction File.
|
public ReconciliationScript(java.lang.String servProvCode, java.lang.String callerId) throws com.accela.aa.exception.AAException
servProvCode
- StringcallerId
- Stringcom.accela.aa.exception.AAException
public ReconciliationScript() throws com.accela.aa.exception.AAException
com.accela.aa.exception.AAException
- the AA exceptionpublic ScriptResult generateApprovedTransactionFile()
generateApprovedTransactionFile
in interface com.accela.aa.emse.dom.service.ReconciliationScriptService
public ScriptResult generateFailedTransactionFile()
generateFailedTransactionFile
in interface com.accela.aa.emse.dom.service.ReconciliationScriptService
public ScriptResult uploadTransactionFile()
uploadTransactionFile
in interface com.accela.aa.emse.dom.service.ReconciliationScriptService
public ScriptResult recoverTransactionFile(java.lang.String transFileName)
recoverTransactionFile
in interface com.accela.aa.emse.dom.service.ReconciliationScriptService
transFileName
- Stringpublic ScriptResult updateUploadStatusLog(java.lang.String uploadFileName)
updateUploadStatusLog
in interface com.accela.aa.emse.dom.service.ReconciliationScriptService
uploadFileName
- Stringpublic ScriptResult sendMail() throws java.lang.Exception
sendMail
in interface com.accela.aa.emse.dom.service.ReconciliationScriptService
java.lang.Exception
- the exceptionpublic java.lang.String getCustomContentByType(java.lang.String contentType, java.util.Hashtable parameters)
getCustomContentByType
in interface com.accela.aa.emse.dom.service.ReconciliationScriptService
contentType
- the content typeparameters
- the parameterspublic void setSuccessFileFieldNames(java.lang.String[] fileFieldNames)
setSuccessFileFieldNames
in interface com.accela.aa.emse.dom.service.ReconciliationScriptService
fileFieldNames
- the fileFieldNames to setpublic void setSuccessFileFieldTitles(java.lang.String[] fileFieldTitles)
setSuccessFileFieldTitles
in interface com.accela.aa.emse.dom.service.ReconciliationScriptService
fileFieldTitles
- the fileFieldTitles to setpublic void setSuccessFileFieldValues(java.lang.String[] fileFieldValues)
setSuccessFileFieldValues
in interface com.accela.aa.emse.dom.service.ReconciliationScriptService
fileFieldValues
- the fileFieldValues to setpublic void setFailedFileFieldNames(java.lang.String[] fileFieldNames)
setFailedFileFieldNames
in interface com.accela.aa.emse.dom.service.ReconciliationScriptService
fileFieldNames
- the fileFieldNames to setpublic void setFailedFileFieldTitles(java.lang.String[] fileFieldTitles)
setFailedFileFieldTitles
in interface com.accela.aa.emse.dom.service.ReconciliationScriptService
fileFieldTitles
- the fileFieldTitles to setpublic void setFailedFileFieldValues(java.lang.String[] fileFieldValues)
setFailedFileFieldValues
in interface com.accela.aa.emse.dom.service.ReconciliationScriptService
fileFieldValues
- the fileFieldValues to setpublic void setProvider(java.lang.String provider)
setProvider
in interface com.accela.aa.emse.dom.service.ReconciliationScriptService
provider
- the provider to setpublic void setFileNamePrefix(java.lang.String fileNamePrefix)
setFileNamePrefix
in interface com.accela.aa.emse.dom.service.ReconciliationScriptService
fileNamePrefix
- the fileNamePrefix to setpublic void setTransEndDate(java.lang.String dateString)
setTransEndDate
in interface com.accela.aa.emse.dom.service.ReconciliationScriptService
dateString
- Stringpublic void setTransStartDate(java.lang.String dateString)
setTransStartDate
in interface com.accela.aa.emse.dom.service.ReconciliationScriptService
dateString
- Datepublic void setFtpFolder(java.lang.String ftpFolder)
setFtpFolder
in interface com.accela.aa.emse.dom.service.ReconciliationScriptService
ftpFolder
- the ftpFolder to setpublic void setFtpPassword(java.lang.String ftpPassword)
setFtpPassword
in interface com.accela.aa.emse.dom.service.ReconciliationScriptService
ftpPassword
- the ftpPassword to setpublic void setFtpPort(java.lang.String ftpPort)
setFtpPort
in interface com.accela.aa.emse.dom.service.ReconciliationScriptService
ftpPort
- the ftpPort to setpublic void setFtpSite(java.lang.String ftpSite)
setFtpSite
in interface com.accela.aa.emse.dom.service.ReconciliationScriptService
ftpSite
- the ftpSite to setpublic void setFtpUserName(java.lang.String ftpUserName)
setFtpUserName
in interface com.accela.aa.emse.dom.service.ReconciliationScriptService
ftpUserName
- the ftpUserName to setpublic void setUploadToFTP(boolean isUploadToFTP)
setUploadToFTP
in interface com.accela.aa.emse.dom.service.ReconciliationScriptService
isUploadToFTP
- the isUploadToFTP to setpublic void setLocalDiskFolder(java.lang.String localDiskFolder)
setLocalDiskFolder
in interface com.accela.aa.emse.dom.service.ReconciliationScriptService
localDiskFolder
- the localDiskFolder to setpublic void setCcMailAddress(java.lang.String ccMailAddress)
setCcMailAddress
in interface com.accela.aa.emse.dom.service.ReconciliationScriptService
ccMailAddress
- the ccMailAddress to setpublic void setContent(java.lang.String content)
setContent
in interface com.accela.aa.emse.dom.service.ReconciliationScriptService
content
- the content to setpublic void setFromMailAddress(java.lang.String fromMailAddress)
setFromMailAddress
in interface com.accela.aa.emse.dom.service.ReconciliationScriptService
fromMailAddress
- the fromMailAddress to setpublic void setSubject(java.lang.String subject)
setSubject
in interface com.accela.aa.emse.dom.service.ReconciliationScriptService
subject
- the subject to setpublic void setToMailAddress(java.lang.String toMailAddress)
setToMailAddress
in interface com.accela.aa.emse.dom.service.ReconciliationScriptService
toMailAddress
- the toMailAddress to setpublic void setWSPassword(java.lang.String password)
setWSPassword
in interface com.accela.aa.emse.dom.service.ReconciliationScriptService
password
- the password to setpublic void setWSUserName(java.lang.String userName)
setWSUserName
in interface com.accela.aa.emse.dom.service.ReconciliationScriptService
userName
- the userName to setpublic void setWSDateStoreId(int dateStoreId)
setWSDateStoreId
in interface com.accela.aa.emse.dom.service.ReconciliationScriptService
dateStoreId
- the dateStoreId to setpublic void setWSProjectId(int projectId)
setWSProjectId
in interface com.accela.aa.emse.dom.service.ReconciliationScriptService
projectId
- the projectId to setpublic void setWSEndPoint(java.lang.String endPoint)
setWSEndPoint
in interface com.accela.aa.emse.dom.service.ReconciliationScriptService
endPoint
- Stringpublic java.lang.String getServiceProviderCode()
com.accela.aa.emse.dom.service.BaseAAScript
getServiceProviderCode
in interface com.accela.aa.emse.dom.service.ReconciliationScriptService
getServiceProviderCode
in class com.accela.aa.emse.dom.service.BaseAAScript
public java.util.Date getTransEndDate()
getTransEndDate
in interface com.accela.aa.emse.dom.service.ReconciliationScriptService
public java.util.Date getTransStartDate()
getTransStartDate
in interface com.accela.aa.emse.dom.service.ReconciliationScriptService
public void setTestMode(boolean isTestMode)
setTestMode
in interface com.accela.aa.emse.dom.service.ReconciliationScriptService
isTestMode
- booleanpublic java.lang.String getCurrentDate()
getCurrentDate
in interface com.accela.aa.emse.dom.service.ReconciliationScriptService
public void setMessageResources(java.util.Map resources)
setMessageResources
in interface com.accela.aa.emse.dom.service.ReconciliationScriptService
resources
- Map