|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.kfs.gl.batch.service.impl.EnterpriseFeederNotificationServiceImpl
public class EnterpriseFeederNotificationServiceImpl
The base implementation of EnterpriseFeederNotificationService; performs email-based notifications
| Constructor Summary | |
|---|---|
EnterpriseFeederNotificationServiceImpl()
|
|
| 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)
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.kns.service.KualiConfigurationService configurationService)
|
void |
setMailService(org.kuali.rice.kns.service.MailService mailService)
Sets the mailService attribute value. |
void |
setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EnterpriseFeederNotificationServiceImpl()
| Method Detail |
|---|
public void notifyFileFeedStatus(String feederProcessName,
EnterpriseFeederStatus status,
File doneFile,
File dataFile,
File reconFile,
List<Message> errorMessages)
notifyFileFeedStatus in interface EnterpriseFeederNotificationServicefeederProcessName - 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.kfs.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 EnterpriseFeederNotificationServicefeederProcessName - 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.kfs.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 notification
protected 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 notification
public String getFileFeedStatusMessage(String feederProcessName,
EnterpriseFeederStatus status,
File doneFile,
File dataFile,
File reconFile,
List<Message> errorMessages)
getFileFeedStatusMessage in interface EnterpriseFeederNotificationServicefeederProcessName - 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.kfs.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 EnterpriseFeederNotificationServicefeederProcessName - 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.kfs.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 process
protected 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 process
protected 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 messages
public void setMailService(org.kuali.rice.kns.service.MailService mailService)
mailService - The mailService to set.public void setConfigurationService(org.kuali.rice.kns.service.KualiConfigurationService configurationService)
public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||