public class EnterpriseFeederNotificationServiceImpl extends Object implements EnterpriseFeederNotificationService
Constructor and Description |
---|
EnterpriseFeederNotificationServiceImpl() |
Modifier and Type | Method and Description |
---|---|
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)
Generates the "From:" address for the email
|
protected Set<String> |
generateToEmailAddresses(String feederProcessName,
EnterpriseFeederStatus status,
String doneFileDescription,
String dataFileDescription,
String reconFileDescription,
List<Message> errorMessages)
Generates the destination address(s) for the email notifications, possibly depending on the parameter values
|
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.
|
String |
getFileFeedStatusMessage(String feederProcessName,
EnterpriseFeederStatus status,
String doneFileDescription,
InputStream doneFileContents,
String dataFileDescription,
InputStream dataFileContents,
String reconFileDescription,
InputStream reconFileContents,
List<Message> errorMessages)
Generates the status message that would be generated by a call to notifyFileFeedStatus with the same parameters.
|
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)
Returns whether a notification is necessary given the values of the parameters
|
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.
|
void |
notifyFileFeedStatus(String feederProcessName,
EnterpriseFeederStatus status,
String doneFileDescription,
InputStream doneFileContents,
String dataFileDescription,
InputStream dataFileContents,
String reconFileDescription,
InputStream reconFileContents,
List<Message> errorMessages)
Performs notifications
|
void |
setConfigurationService(org.kuali.rice.core.api.config.property.ConfigurationService configurationService) |
void |
setMailService(org.kuali.rice.krad.service.MailService mailService)
Sets the mailService attribute value.
|
void |
setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService) |
public EnterpriseFeederNotificationServiceImpl()
public void notifyFileFeedStatus(String feederProcessName, EnterpriseFeederStatus status, File doneFile, File dataFile, File reconFile, List<Message> errorMessages)
notifyFileFeedStatus
in interface EnterpriseFeederNotificationService
feederProcessName
- The name of the feeder process; this may correspond to the name of the Spring definition of the
feeder step, but each implementation may define how to use the value of this parameter and/or restrictions on its
value.event
- The event/status of the upload of the file setdoneFile
- The done filedataFile
- The data filereconFile
- The recon fileerrorMessages
- Any error messages for which to provide notificationorg.kuali.ole.gl.batch.service.EnterpriseFeederNotificationService#notifyFileFeedStatus(java.lang.String,
org.kuali.module.gl.util.EnterpriseFeederEvent, java.io.File, java.io.File, java.io.File, java.util.List)
public void notifyFileFeedStatus(String feederProcessName, EnterpriseFeederStatus status, String doneFileDescription, InputStream doneFileContents, String dataFileDescription, InputStream dataFileContents, String reconFileDescription, InputStream reconFileContents, List<Message> errorMessages)
notifyFileFeedStatus
in interface EnterpriseFeederNotificationService
feederProcessName
- The name of the feeder process; this may correspond to the name of the Spring definition of the
feeder step, but each implementation may define how to use the value of this parameter and/or restrictions on its
value.status
- The event/status of the upload of the file setdoneFileDescription
- The file namedoneFileContents
- Not used; can be set to nulldataFileDescription
- The file namedataFileContents
- Not used; can be set to nullreconFileDescription
- The file namereconFileContents
- Not used; can be set to nullerrorMessages
- Any error messages for which to provide notificationorg.kuali.ole.gl.batch.service.EnterpriseFeederNotificationService#notifyFileFeedStatus(java.lang.String,
org.kuali.module.gl.util.EnterpriseFeederEvent, java.lang.String, java.io.InputStream, java.lang.String,
java.io.InputStream, java.lang.String, java.io.InputStream, java.util.List)
protected Set<String> generateToEmailAddresses(String feederProcessName, EnterpriseFeederStatus status, String doneFileDescription, String dataFileDescription, String reconFileDescription, List<Message> errorMessages)
feederProcessName
- The name of the feeder process; this may correspond to the name of the Spring definition of the
feeder step, but each implementation may define how to use the value of this parameter and/or restrictions on its
value.status
- The event/status of the upload of the file setdoneFileDescription
- The file namedataFileDescription
- The file namereconFileDescription
- The file nameerrorMessages
- Any error messages for which to provide notificationprotected String generateFromEmailAddress(String feederProcessName, EnterpriseFeederStatus status, String doneFileDescription, String dataFileDescription, String reconFileDescription, List<Message> errorMessages)
feederProcessName
- The name of the feeder process; this may correspond to the name of the Spring definition of the
feeder step, but each implementation may define how to use the value of this parameter and/or restrictions on its
value.status
- The event/status of the upload of the file setdoneFileDescription
- The file namedataFileDescription
- The file namereconFileDescription
- The file nameerrorMessages
- Any error messages for which to provide notificationpublic String getFileFeedStatusMessage(String feederProcessName, EnterpriseFeederStatus status, File doneFile, File dataFile, File reconFile, List<Message> errorMessages)
getFileFeedStatusMessage
in interface EnterpriseFeederNotificationService
feederProcessName
- The name of the feeder process; this may correspond to the name of the Spring definition of the
feeder step, but each implementation may define how to use the value of this parameter and/or restrictions on its
value.event
- The event/status of the upload of the file setdoneFile
- The done filedataFile
- The data filereconFile
- The recon fileerrorMessages
- Any error messages for which to provide notificationorg.kuali.ole.gl.batch.service.EnterpriseFeederNotificationService#getFileFeedStatusMessage(java.lang.String,
org.kuali.module.gl.util.EnterpriseFeederEvent, java.io.File, java.io.File, java.io.File, java.util.List)
public String getFileFeedStatusMessage(String feederProcessName, EnterpriseFeederStatus status, String doneFileDescription, InputStream doneFileContents, String dataFileDescription, InputStream dataFileContents, String reconFileDescription, InputStream reconFileContents, List<Message> errorMessages)
EnterpriseFeederNotificationService
getFileFeedStatusMessage
in interface EnterpriseFeederNotificationService
feederProcessName
- The name of the feeder process; this may correspond to the name of the Spring definition of the
feeder step, but each implementation may define how to use the value of this parameter and/or restrictions on its
value.doneFileDescription
- The description of the done file to be output during notificationdoneFileContents
- An input stream for the contents of the done file. If the implementation does not require the
contents of the file, then null
may be passed in.dataFileDescription
- The description of the done file to be output during notificationdataFileContents
- An input stream for the contents of the data file. If the implementation does not require the
contents of the file, then null
may be passed in.reconFileDescription
- The description of the done file to be output during notificationreconFileContents
- An input stream for the contents of the recon file. If the implementation does not require the
contents of the file, then null
may be passed in.errorMessages
- Any error messages for which to provide notificationorg.kuali.ole.gl.batch.service.EnterpriseFeederNotificationService#getFileFeedStatusMessage(java.lang.String,
org.kuali.module.gl.util.EnterpriseFeederEvent, java.lang.String, java.io.InputStream, java.lang.String,
java.io.InputStream, java.lang.String, java.io.InputStream, java.util.List)
protected String getSubjectLine(String doneFileDescription, String dataFileDescription, String reconFileDescription, List<Message> errorMessages, String feederProcessName, EnterpriseFeederStatus status)
doneFileDescription
- the name of the done filedataFileDescription
- the name of the file to read data fromreconFileDescription
- the name of the reconciliation fileerrorMessages
- a List of error messagesfeederProcessName
- the name of the feeder processprotected String buildFileFeedStatusMessage(String doneFileName, String dataFileName, String reconFileName, List<Message> errorMessages, String feederProcessName, EnterpriseFeederStatus status)
doneFileName
- the name of the done filedataFileName
- the name of the file to get data fromreconFileName
- the reconciliation fileerrorMessages
- a List of error messages generated during the processfeederProcessName
- the name of the feeder processprotected boolean isStatusNotifiable(String feederProcessName, EnterpriseFeederStatus status, String doneFileDescription, String dataFileDescription, String reconFileDescription, List<Message> errorMessages)
feederProcessName
- the name of the process that invoked the feederstatus
- the status of the feeddoneFileDescription
- the done file descriptiondataFileDescription
- the data file descriptionreconFileDescription
- the recon file descriptionerrorMessages
- a list of error messagespublic void setMailService(org.kuali.rice.krad.service.MailService mailService)
mailService
- The mailService to set.public void setConfigurationService(org.kuali.rice.core.api.config.property.ConfigurationService configurationService)
public void setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.