| java.lang.Object org.kuali.module.gl.service.impl.EnterpriseFeederNotificationServiceImpl
EnterpriseFeederNotificationServiceImpl | public class EnterpriseFeederNotificationServiceImpl implements EnterpriseFeederNotificationService(Code) | | The base implementation of EnterpriseFeederNotificationService; performs email-based notifications
|
Method Summary | |
protected String | buildFileFeedStatusMessage(String doneFileName, String dataFileName, String reconFileName, List<Message> errorMessages, String feederProcessName, EnterpriseFeederStatus status) Builds the status message for the status of a feed. | protected String | generateFromEmailAddress(String feederProcessName, EnterpriseFeederStatus status, String doneFileDescription, String dataFileDescription, String reconFileDescription, List<Message> errorMessages) | protected Set<String> | generateToEmailAddresses(String feederProcessName, EnterpriseFeederStatus status, String doneFileDescription, String dataFileDescription, String reconFileDescription, List<Message> errorMessages) | public String | getFileFeedStatusMessage(String feederProcessName, EnterpriseFeederStatus status, File doneFile, File dataFile, File reconFile, List<Message> errorMessages) Generates the status message that would be generated by a call to notifyFileFeedStatus with the same parameters. | public String | getFileFeedStatusMessage(String feederProcessName, EnterpriseFeederStatus status, String doneFileDescription, InputStream doneFileContents, String dataFileDescription, InputStream dataFileContents, String reconFileDescription, InputStream reconFileContents, List<Message> errorMessages) | protected String | getSubjectLine(String doneFileDescription, String dataFileDescription, String reconFileDescription, List<Message> errorMessages, String feederProcessName, EnterpriseFeederStatus status) Builds the status message for the status of a feed. | protected boolean | isStatusNotifiable(String feederProcessName, EnterpriseFeederStatus status, String doneFileDescription, String dataFileDescription, String reconFileDescription, List<Message> errorMessages) | public void | notifyFileFeedStatus(String feederProcessName, EnterpriseFeederStatus status, File doneFile, File dataFile, File reconFile, List<Message> errorMessages) Performs notification about the status of the upload (i.e. | public void | notifyFileFeedStatus(String feederProcessName, EnterpriseFeederStatus status, String doneFileDescription, InputStream doneFileContents, String dataFileDescription, InputStream dataFileContents, String reconFileDescription, InputStream reconFileContents, List<Message> errorMessages) | public void | setConfigurationService(KualiConfigurationService configurationService) | public void | setMailService(MailService mailService) Sets the mailService attribute value. | public void | setParameterService(ParameterService parameterService) |
buildFileFeedStatusMessage | protected String buildFileFeedStatusMessage(String doneFileName, String dataFileName, String reconFileName, List<Message> errorMessages, String feederProcessName, EnterpriseFeederStatus status)(Code) | | Builds the status message for the status of a feed.
Parameters: doneFileName - the name of the done file Parameters: dataFileName - the name of the file to get data from Parameters: reconFileName - the reconciliation file Parameters: errorMessages - a List of error messages generated during the process Parameters: feederProcessName - the name of the feeder process a String with the status message |
generateFromEmailAddress | protected String generateFromEmailAddress(String feederProcessName, EnterpriseFeederStatus status, String doneFileDescription, String dataFileDescription, String reconFileDescription, List<Message> errorMessages)(Code) | | Generates the "From:" address for the email
Parameters: feederProcessName - The name of the feeder process; this may correspond to the name of the Spring definition of thefeeder step, but each implementation may define how to use the value of this parameter and/or restrictions on itsvalue. Parameters: status - The event/status of the upload of the file set Parameters: doneFileDescription - The file name Parameters: dataFileDescription - The file name Parameters: reconFileDescription - The file name Parameters: errorMessages - Any error messages for which to provide notification the source address |
generateToEmailAddresses | protected Set<String> generateToEmailAddresses(String feederProcessName, EnterpriseFeederStatus status, String doneFileDescription, String dataFileDescription, String reconFileDescription, List<Message> errorMessages)(Code) | | Generates the destination address(s) for the email notifications, possibly depending on the parameter values
Parameters: feederProcessName - The name of the feeder process; this may correspond to the name of the Spring definition of thefeeder step, but each implementation may define how to use the value of this parameter and/or restrictions on itsvalue. Parameters: status - The event/status of the upload of the file set Parameters: doneFileDescription - The file name Parameters: dataFileDescription - The file name Parameters: reconFileDescription - The file name Parameters: errorMessages - Any error messages for which to provide notification the destination addresses |
getSubjectLine | protected String getSubjectLine(String doneFileDescription, String dataFileDescription, String reconFileDescription, List<Message> errorMessages, String feederProcessName, EnterpriseFeederStatus status)(Code) | | Builds the status message for the status of a feed.
Parameters: doneFileDescription - the name of the done file Parameters: dataFileDescription - the name of the file to read data from Parameters: reconFileDescription - the name of the reconciliation file Parameters: errorMessages - a List of error messages Parameters: feederProcessName - the name of the feeder process the String of the subject line |
isStatusNotifiable | protected boolean isStatusNotifiable(String feederProcessName, EnterpriseFeederStatus status, String doneFileDescription, String dataFileDescription, String reconFileDescription, List<Message> errorMessages)(Code) | | Returns whether a notification is necessary given the values of the parameters
Parameters: feederProcessName - the name of the process that invoked the feeder Parameters: status - the status of the feed Parameters: doneFileDescription - the done file description Parameters: dataFileDescription - the data file description Parameters: reconFileDescription - the recon file description Parameters: errorMessages - a list of error messages whether to notify |
setMailService | public void setMailService(MailService mailService)(Code) | | Sets the mailService attribute value.
Parameters: mailService - The mailService to set. |
|
|