com.atlassian.jira.web.filters
Class AppConsistencyFilter

java.lang.Object
  extended bycom.atlassian.jira.web.filters.AbstractFilter
      extended bycom.atlassian.jira.web.filters.AppConsistencyFilter

public class AppConsistencyFilter
extends AbstractFilter


Field Summary
static Category log
           
static java.lang.String URL_CONFIRM_NEW_INSTALL_WITH_OLD_LICENSE
           
static java.lang.String URL_CONFIRM_NEW_INSTALL_WITH_OLD_LICENSE_DEFAULT
           
static java.lang.String URL_ERRORS
           
static java.lang.String URL_SETUP
           
 
Constructor Summary
AppConsistencyFilter()
           
 
Method Summary
 void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain)
          This filter checks to see if there are any application consistency errors before any pages are accessed.
 boolean ignoreURI(java.lang.String uri)
          Determines whether the filter should ignore this uri
 void init(FilterConfig filterConfig)
           
 boolean isSetup()
           
 boolean isSetupPage(java.lang.String uri)
          Determines if JIRA is setup
 
Methods inherited from class com.atlassian.jira.web.filters.AbstractFilter
destroy, getFilterConfig, setFilterConfig
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public static final Category log

URL_ERRORS

public static final java.lang.String URL_ERRORS
See Also:
Constant Field Values

URL_SETUP

public static final java.lang.String URL_SETUP
See Also:
Constant Field Values

URL_CONFIRM_NEW_INSTALL_WITH_OLD_LICENSE_DEFAULT

public static final java.lang.String URL_CONFIRM_NEW_INSTALL_WITH_OLD_LICENSE_DEFAULT
See Also:
Constant Field Values

URL_CONFIRM_NEW_INSTALL_WITH_OLD_LICENSE

public static final java.lang.String URL_CONFIRM_NEW_INSTALL_WITH_OLD_LICENSE
See Also:
Constant Field Values
Constructor Detail

AppConsistencyFilter

public AppConsistencyFilter()
Method Detail

init

public void init(FilterConfig filterConfig)

doFilter

public void doFilter(ServletRequest servletRequest,
                     ServletResponse servletResponse,
                     FilterChain filterChain)
              throws java.io.IOException,
                     ServletException
This filter checks to see if there are any application consistency errors before any pages are accessed. If there are errors then a redirect to the errors page is made

Throws:
java.io.IOException
ServletException

ignoreURI

public boolean ignoreURI(java.lang.String uri)
Determines whether the filter should ignore this uri

Parameters:
uri - The uri to be checked
Returns:
true if the uri should be ignored by this filter otherwise false

isSetupPage

public boolean isSetupPage(java.lang.String uri)
Determines if JIRA is setup

Parameters:
uri - The uri of the current page
Returns:
returns false if JIRA is not setup up and the uri is not a setup page and shouldnt be ignored, otherwise false

isSetup

public boolean isSetup()