com.atlassian.confluence.pages.actions
Class CommentAwareInterceptor

java.lang.Object
  extended by com.atlassian.confluence.setup.webwork.AbstractAwareInterceptor
      extended by com.atlassian.confluence.pages.actions.CommentAwareInterceptor
All Implemented Interfaces:
com.opensymphony.xwork.interceptor.Interceptor

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.)


Constructor Summary
CommentAwareInterceptor()
           
 
Method Summary
 java.lang.String intercept(com.opensymphony.xwork.ActionInvocation actionInvocation)
           
 
Methods inherited from class com.atlassian.confluence.setup.webwork.AbstractAwareInterceptor
destroy, getParameter, getUser, hasParameter, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommentAwareInterceptor

public CommentAwareInterceptor()
Method Detail

intercept

public java.lang.String intercept(com.opensymphony.xwork.ActionInvocation actionInvocation)
                           throws java.lang.Exception
Specified by:
intercept in interface com.opensymphony.xwork.interceptor.Interceptor
Specified by:
intercept in class AbstractAwareInterceptor
Throws:
java.lang.Exception


Copyright © 2003-2009 Atlassian Pty Ltd. All Rights Reserved.