|
Jive Forums API (5.5.8) Developer Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.forum.ban.interceptor.BanMessageInterceptor
public class BanMessageInterceptor
An Interceptor to handle Banned Users and IP Addresses
| Field Summary |
|---|
| Fields inherited from interface com.jivesoftware.forum.MessageInterceptor |
|---|
TYPE_ALL, TYPE_BOTH, TYPE_EDIT, TYPE_POST, TYPE_PRE |
| Constructor Summary | |
|---|---|
BanMessageInterceptor()
|
|
BanMessageInterceptor(int objectType,
long objectID)
|
|
| Method Summary | |
|---|---|
int |
getType()
Returns the type of the interceptor. |
void |
invokeInterceptor(ForumMessage message,
int type)
Checks to see if the author or ip of the message is banned. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BanMessageInterceptor()
public BanMessageInterceptor(int objectType,
long objectID)
| Method Detail |
|---|
public int getType()
MessageInterceptor
getType in interface MessageInterceptor
public void invokeInterceptor(ForumMessage message,
int type)
throws MessageRejectedException
invokeInterceptor in interface MessageInterceptormessage - the message to check.
MessageRejectedException - if the author or ip of the message is on the banned list.
|
Jive Forums Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||