|
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.RecentHistoryInterceptor
public class RecentHistoryInterceptor
A WebWork interceptor which records the last 'X' objects a user has viewed. This is designed to intercept an action which views a thread. Set the type as to which type of object is being viewed. Thread views are supported.
Field Summary | |
---|---|
static int |
DEFAULT_HISTORY_NUMBER
Jive Property Default value for number of objects to store |
static java.lang.String |
PROPERTY_HISTORY_ENABLED
Jive Property key for enabling user history |
static java.lang.String |
PROPERTY_HISTORY_NUMBER
Jive Property key for number of objects to store |
static java.lang.String |
SESSION_HISTORY
Jive Session key for storing object history |
static java.lang.String |
THREAD
Indicates a thread view. |
Fields inherited from class com.opensymphony.xwork.interceptor.AroundInterceptor |
---|
log |
Constructor Summary | |
---|---|
RecentHistoryInterceptor()
|
Method Summary | |
---|---|
protected void |
after(com.opensymphony.xwork.ActionInvocation in,
java.lang.String result)
Records the given object in the user history. |
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 THREAD
public static final java.lang.String PROPERTY_HISTORY_ENABLED
public static final java.lang.String PROPERTY_HISTORY_NUMBER
public static final int DEFAULT_HISTORY_NUMBER
public static final java.lang.String SESSION_HISTORY
Constructor Detail |
---|
public RecentHistoryInterceptor()
Method Detail |
---|
public java.lang.String getType()
THREAD
public void setType(java.lang.String type)
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 |