com.atlassian.confluence.pages.actions
Class PageAwareInterceptor

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

public class PageAwareInterceptor
extends AbstractAwareInterceptor

Encapsulates all the complicated "how are the many ways I can look up a page so the action knows about it?" stuff. An action just needs to implement PageAware, and the interceptor will give it a page if it needs one.

Eventually this could become part of something more generic that deals with lots of different standard property->object associations.


Constructor Summary
PageAwareInterceptor()
           
 
Method Summary
 Date getPostingDate(String postingDay)
           
 String intercept(com.opensymphony.xwork.ActionInvocation actionInvocation)
           
 void setPageManager(PageManager pageManager)
           
 
Methods inherited from class com.atlassian.confluence.setup.webwork.AbstractAwareInterceptor
destroy, getParameter, getSessionAttribute, getUser, hasParameter, hasSessionAttribute, init, setResponseHeader, setSessionAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageAwareInterceptor

public PageAwareInterceptor()
Method Detail

setPageManager

public void setPageManager(PageManager pageManager)

intercept

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

getPostingDate

public Date getPostingDate(String postingDay)


Copyright © 2003-2010 Atlassian. All Rights Reserved.