[jbpm-commits] JBoss JBPM SVN: r4528 - jbpm4/branches/email/modules/pvm/src/main/java/org/jbpm/pvm/internal/email/producer/impl.

do-not-reply at jboss.org do-not-reply at jboss.org
Thu Apr 9 16:08:20 EDT 2009


Author: bradsdavis
Date: 2009-04-09 16:08:20 -0400 (Thu, 09 Apr 2009)
New Revision: 4528

Modified:
   jbpm4/branches/email/modules/pvm/src/main/java/org/jbpm/pvm/internal/email/producer/impl/HtmlScriptMailProducer.java
   jbpm4/branches/email/modules/pvm/src/main/java/org/jbpm/pvm/internal/email/producer/impl/ScriptMailProducer.java
   jbpm4/branches/email/modules/pvm/src/main/java/org/jbpm/pvm/internal/email/producer/impl/SimpleMailProducer.java
Log:
Refactored method names.

Modified: jbpm4/branches/email/modules/pvm/src/main/java/org/jbpm/pvm/internal/email/producer/impl/HtmlScriptMailProducer.java
===================================================================
--- jbpm4/branches/email/modules/pvm/src/main/java/org/jbpm/pvm/internal/email/producer/impl/HtmlScriptMailProducer.java	2009-04-09 20:07:18 UTC (rev 4527)
+++ jbpm4/branches/email/modules/pvm/src/main/java/org/jbpm/pvm/internal/email/producer/impl/HtmlScriptMailProducer.java	2009-04-09 20:08:20 UTC (rev 4528)
@@ -47,13 +47,13 @@
 		this.text = (String)scriptManager.evaluateScript(this.text, exe, language);
 		this.subject = (String)scriptManager.evaluateScript(this.subject, exe, language);
 		this.html = (String)scriptManager.evaluate(this.html, exe, language);
-		this.resolveAttachments(scriptManager, exe);
+		this.resolveUrlAttachments(scriptManager, exe);
 		
 		//Create an HTML message.
 		HtmlEmail email = new HtmlEmail();
 		//Populate recipients.
 		this.populateAddresses(mailContext, email);
-		this.populateAttachments((MultiPartEmail)email);
+		this.populateUrlAttachments((MultiPartEmail)email);
 		
 		//Set the regular body [non-html] and subject.
 		email.setTextMsg(this.text);

Modified: jbpm4/branches/email/modules/pvm/src/main/java/org/jbpm/pvm/internal/email/producer/impl/ScriptMailProducer.java
===================================================================
--- jbpm4/branches/email/modules/pvm/src/main/java/org/jbpm/pvm/internal/email/producer/impl/ScriptMailProducer.java	2009-04-09 20:07:18 UTC (rev 4527)
+++ jbpm4/branches/email/modules/pvm/src/main/java/org/jbpm/pvm/internal/email/producer/impl/ScriptMailProducer.java	2009-04-09 20:08:20 UTC (rev 4528)
@@ -29,7 +29,7 @@
 		//as evaluated by the JBPM script manager.
 		this.text = (String)scriptManager.evaluateScript(this.text, exe, language);
 		this.subject = (String)scriptManager.evaluateScript(this.subject, exe, language);
-		this.resolveAttachments(scriptManager,exe);
+		this.resolveUrlAttachments(scriptManager,exe);
 		
 		
 		//Populate and produce email based on SimpleMailProducer logic now that fields
@@ -41,7 +41,7 @@
 		this.language = language;
 	}
 	
-	protected void resolveAttachments(final ScriptManager scriptManager, final Execution exe) { 
+	protected void resolveUrlAttachments(final ScriptManager scriptManager, final Execution exe) { 
 		//Resolve attachments from script to URL.
 		if(urlAttachments!=null&&!urlAttachments.isEmpty())
 		{

Modified: jbpm4/branches/email/modules/pvm/src/main/java/org/jbpm/pvm/internal/email/producer/impl/SimpleMailProducer.java
===================================================================
--- jbpm4/branches/email/modules/pvm/src/main/java/org/jbpm/pvm/internal/email/producer/impl/SimpleMailProducer.java	2009-04-09 20:07:18 UTC (rev 4527)
+++ jbpm4/branches/email/modules/pvm/src/main/java/org/jbpm/pvm/internal/email/producer/impl/SimpleMailProducer.java	2009-04-09 20:08:20 UTC (rev 4528)
@@ -55,7 +55,7 @@
 		//If there are attachments, add them to the email.
 		if(urlAttachments!=null&&!urlAttachments.isEmpty())
 		{
-			populateAttachments((MultiPartEmail)email);
+			populateUrlAttachments((MultiPartEmail)email);
 		}
 		
 		//Set subject and message.
@@ -140,7 +140,7 @@
 		return name;
 	}
 	
-	protected void populateAttachments(MultiPartEmail email) throws Exception
+	protected void populateUrlAttachments(MultiPartEmail email) throws Exception
 	{
 		if(urlAttachments!=null&&!urlAttachments.isEmpty())
 		{




More information about the jbpm-commits mailing list