I18N test message sent success message.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@47503 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Mark Rogers
2013-03-04 12:15:45 +00:00
parent b029353cfc
commit 353d040659
3 changed files with 11 additions and 1 deletions

View File

@@ -26,6 +26,8 @@ email.server.err.incorrect_message_part=Incorrect message part: {0}
email.outbound.err.send.failed=Failed to send email to: {0} cause {1} email.outbound.err.send.failed=Failed to send email to: {0} cause {1}
email.outbound.test.send.success=Sent test message to: {0}
email.outbound.err.test.no.to=Unable to send test message 'testMessageTo' is empty email.outbound.err.test.no.to=Unable to send test message 'testMessageTo' is empty
email.outbound.err.test.no.subject=Unable to send test message 'subject' is empty email.outbound.err.test.no.subject=Unable to send test message 'subject' is empty
email.outbound.err.test.no.text=Unable to send test message 'text' is empty email.outbound.err.test.no.text=Unable to send test message 'text' is empty

View File

@@ -248,6 +248,11 @@ public class MailActionExecuter extends ActionExecuterAbstractBase
this.testMessageTo = testMessageTo; this.testMessageTo = testMessageTo;
} }
public String getTestMessageTo()
{
return testMessageTo;
}
public void setTestMessageSubject(String testMessageSubject) public void setTestMessageSubject(String testMessageSubject)
{ {
this.testMessageSubject = testMessageSubject; this.testMessageSubject = testMessageSubject;

View File

@@ -1,6 +1,7 @@
package org.alfresco.repo.action.executer; package org.alfresco.repo.action.executer;
import org.alfresco.error.AlfrescoRuntimeException; import org.alfresco.error.AlfrescoRuntimeException;
import org.springframework.extensions.surf.util.I18NUtil;
public class MailActionExecuterMonitor public class MailActionExecuterMonitor
{ {
@@ -11,7 +12,9 @@ public class MailActionExecuterMonitor
try try
{ {
mailActionExceuter.sendTestMessage(); mailActionExceuter.sendTestMessage();
return "email message sent"; Object[] params = {mailActionExceuter.getTestMessageTo()};
String message = I18NUtil.getMessage("email.outbound.test.send.success", params);
return message;
} }
catch catch
(AlfrescoRuntimeException are) (AlfrescoRuntimeException are)