Class CommentAwareInterceptor
- java.lang.Object
-
- com.atlassian.confluence.setup.struts.AbstractAwareInterceptor
-
- com.atlassian.confluence.pages.actions.CommentAwareInterceptor
-
- All Implemented Interfaces:
com.opensymphony.xwork2.interceptor.Interceptor
,Serializable
public class CommentAwareInterceptor extends AbstractAwareInterceptor
Grabs the 'commentId' or 'focusedCommentId' parameter from the request and sets the associated comment on the action.If the comment cannot be found or the current user is not permitted to view it, this interceptor does nothing. (At the moment all CommentAware actions are also PageAware, and the PageAwareInterceptor redirects to the "not permitted" page if the page cannot be viewed.)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CommentAwareInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
intercept(com.opensymphony.xwork2.ActionInvocation actionInvocation)
-
Methods inherited from class com.atlassian.confluence.setup.struts.AbstractAwareInterceptor
destroy, getParameter, getUser, hasParameter, init
-
-
-
-
Method Detail
-
intercept
public String intercept(com.opensymphony.xwork2.ActionInvocation actionInvocation) throws Exception
- Specified by:
intercept
in interfacecom.opensymphony.xwork2.interceptor.Interceptor
- Specified by:
intercept
in classAbstractAwareInterceptor
- Throws:
Exception
-
-