|
Jive Forums API (5.5.20.2-oracle) Developer Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.opensymphony.xwork.interceptor.AroundInterceptor
com.jivesoftware.forum.action.ReadStatsInterceptor
public class ReadStatsInterceptor
A WebWork interceptor which records a read stat for a particular object. This is designed to intercept an action which views a category, forum or thread. Set the type as to which type of object is being viewed. Category, forum and thread views are supported.
Field Summary | |
---|---|
static java.lang.String |
CATEGORY
Indicates a category view. |
static java.lang.String |
FORUM
Indicates a forum view. |
static java.lang.String |
THREAD
Indicates a thread view. |
Fields inherited from class com.opensymphony.xwork.interceptor.AroundInterceptor |
---|
log |
Constructor Summary | |
---|---|
ReadStatsInterceptor()
|
Method Summary | |
---|---|
protected void |
after(com.opensymphony.xwork.ActionInvocation in,
java.lang.String result)
Records a read stat for a given object. |
protected void |
before(com.opensymphony.xwork.ActionInvocation in)
Does nothing in this implementation. |
java.lang.String |
getType()
Returns the type of object this interceptor operates on. |
void |
setType(java.lang.String type)
Sets the type of read stat to create. |
Methods inherited from class com.opensymphony.xwork.interceptor.AroundInterceptor |
---|
destroy, init, intercept |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CATEGORY
public static final java.lang.String FORUM
public static final java.lang.String THREAD
Constructor Detail |
---|
public ReadStatsInterceptor()
Method Detail |
---|
public java.lang.String getType()
CATEGORY
,
FORUM
,
THREAD
public void setType(java.lang.String type)
CATEGORY
,
FORUM
or a THREAD
type. Any other input will result in an
IllegalArgumentException
.
type
- the type of read stat to create.protected void before(com.opensymphony.xwork.ActionInvocation in) throws java.lang.Exception
before
in class com.opensymphony.xwork.interceptor.AroundInterceptor
java.lang.Exception
protected void after(com.opensymphony.xwork.ActionInvocation in, java.lang.String result) throws java.lang.Exception
after
in class com.opensymphony.xwork.interceptor.AroundInterceptor
in
- the action invocation (the context of the action).result
- the result from the action execution.
java.lang.Exception
- if an error occurs while executing the action.
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |