[prev in list] [next in list] [prev in thread] [next in thread]
List: jboss-cvs-commits
Subject: [jboss-cvs] jboss-portal/core/src/main/org/jboss/portal/core/impl/mail MailModuleImpl.java
From: Thomas Heute <theute () users ! sourceforge ! net>
Date: 2005-01-31 20:42:56
Message-ID: E1CviNs-0004w9-BX () sc8-pr-cvs1 ! sourceforge ! net
[Download RAW message or body]
User: theute
Date: 05/01/31 12:42:55
Modified: core/src/main/org/jboss/portal/core/impl/mail
MailModuleImpl.java
Log:
* Email confirmation for new users
* Email forum notification
* New security mechanism for forums
* Interceptor command filtering is using JBossActionRequest and response
Revision Changes Path
1.2 +31 -15 \
jboss-portal/core/src/main/org/jboss/portal/core/impl/mail/MailModuleImpl.java
Index: MailModuleImpl.java
===================================================================
RCS file: /cvsroot/jboss/jboss-portal/core/src/main/org/jboss/portal/core/impl/mail/MailModuleImpl.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- MailModuleImpl.java 27 Jan 2005 15:13:48 -0000 1.1
+++ MailModuleImpl.java 31 Jan 2005 20:42:54 -0000 1.2
@@ -72,7 +72,7 @@
/**
* The SMTP gateway through which mail will be delivered.
*/
- private String gateway;
+ public String gateway;
/**
* The username for authenticating to the smtp gateway.
@@ -113,7 +113,6 @@
* A serial id used to track messages locally.
*/
private int currentSerialId = 0;
- private boolean active = true;
/**
* @jmx.managed-attribute
@@ -123,6 +122,9 @@
return SMTPConnectionTimeout;
}
+ /**
+ * @jmx.managed-attribute
+ */
public void setSMTPConnectionTimeout(int SMTPConnectionTimeout)
{
this.SMTPConnectionTimeout = SMTPConnectionTimeout;
@@ -136,6 +138,9 @@
return SMTPTimeout;
}
+ /**
+ * @jmx.managed-attribute
+ */
public void setSMTPTimeout(int SMTPTimeout)
{
this.SMTPTimeout = SMTPTimeout;
@@ -154,6 +159,9 @@
return gateway;
}
+ /**
+ * @jmx.managed-attribute
+ */
public void setGateway(String gateway)
{
this.gateway = gateway;
@@ -167,6 +175,9 @@
return smtpUser;
}
+ /**
+ * @jmx.managed-attribute
+ */
public void setSmtpUser(String smtpUser)
{
this.smtpUser = smtpUser;
@@ -180,6 +191,9 @@
return smtpPassword;
}
+ /**
+ * @jmx.managed-attribute
+ */
public void setSmtpPassword(String smtpPassword)
{
this.smtpPassword = smtpPassword;
@@ -240,6 +254,9 @@
return queueCapacity;
}
+ /**
+ * @jmx.managed-attribute
+ */
public void setQueueCapacity(int queueCapacity)
{
this.queueCapacity = queueCapacity;
@@ -253,6 +270,9 @@
return javaMailDebugEnabled;
}
+ /**
+ * @jmx.managed-attribute
+ */
public void setJavaMailDebugEnabled(boolean javaMailDebugEnabled)
{
this.javaMailDebugEnabled = javaMailDebugEnabled;
@@ -263,19 +283,16 @@
String subject,
String body)
{
- if (active)
+ try
{
- try
- {
- MyMessage runnable = new MyMessage(from, to, subject, body);
- log.debug("Enqueuing serialId=" + runnable.serialId);
- executor.execute(runnable);
- log.debug("Enqueued serialId=" + runnable.serialId);
- }
- catch (InterruptedException ignore)
- {
- log.debug("Interrupted during deliver attempt");
- }
+ MyMessage runnable = new MyMessage(from, to, subject, body);
+ log.debug("Enqueuing serialId=" + runnable.serialId);
+ executor.execute(runnable);
+ log.debug("Enqueued serialId=" + runnable.serialId);
+ }
+ catch (InterruptedException ignore)
+ {
+ log.debug("Interrupted during deliver attempt");
}
}
@@ -303,7 +320,6 @@
else
{
log.error("You did not set up any SMTP gateway, cannot send any email");
- active = false;
}
if (smtpUser != null)
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
jboss-cvs-commits mailing list
jboss-cvs-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-cvs-commits
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic