站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

NotificationInterceptor - JBOSS Portal 2.6 API 英文版文档


org.jboss.portlet.forums.interceptors
Class NotificationInterceptor

java.lang.Object
  extended byorg.jboss.portlet.forums.command.filter.AbstractCommandFilter
      extended byorg.jboss.portlet.forums.interceptors.NotificationInterceptor
All Implemented Interfaces:
CommandFilter

public class NotificationInterceptor
extends AbstractCommandFilter

Version:
$Revision: 5448 $
Author:
Julien Viet

Nested Class Summary
(package private)  class NotificationInterceptor.NotificationTask
          The notification task.
 
Field Summary
private  EDU.oswego.cs.dl.util.concurrent.QueuedExecutor executor
           
private  ForumsModule forumsModule
           
private  java.lang.String from
           
private  MailModule mailModule
           
private  TemplateLoader mailTemplates
           
private static int MODE_POST
           
private static int MODE_REPLY
           
private static int MODE_REPOST
           
private  javax.transaction.TransactionManager tm
           
 
Fields inherited from class org.jboss.portlet.forums.command.filter.AbstractCommandFilter
log
 
Constructor Summary
NotificationInterceptor(ForumsModule module)
           
 
Method Summary
 Result filter(Command cmd)
           
private  java.lang.String getFrom(Post post)
           
 TemplateLoader getMailTemplates()
           
private  void schedule(JBossActionRequest request, JBossActionResponse response, Post post, int mode)
           
 void setFrom(java.lang.String from)
           
 void stop()
           
 
Methods inherited from class org.jboss.portlet.forums.command.filter.AbstractCommandFilter
getNext, setNext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODE_POST

private static final int MODE_POST
See Also:
Constant Field Values

MODE_REPLY

private static final int MODE_REPLY
See Also:
Constant Field Values

MODE_REPOST

private static final int MODE_REPOST
See Also:
Constant Field Values

forumsModule

private ForumsModule forumsModule

mailTemplates

private TemplateLoader mailTemplates

from

private java.lang.String from

executor

private EDU.oswego.cs.dl.util.concurrent.QueuedExecutor executor

mailModule

private MailModule mailModule

tm

private javax.transaction.TransactionManager tm
Constructor Detail

NotificationInterceptor

public NotificationInterceptor(ForumsModule module)
Method Detail

stop

public void stop()

setFrom

public void setFrom(java.lang.String from)

getMailTemplates

public TemplateLoader getMailTemplates()

filter

public Result filter(Command cmd)
              throws CommandException
Throws:
CommandException

schedule

private void schedule(JBossActionRequest request,
                      JBossActionResponse response,
                      Post post,
                      int mode)

getFrom

private java.lang.String getFrom(Post post)