Class ConditionalActionInterceptor

java.lang.Object
com.atlassian.bamboo.ww2.interceptors.ConditionalActionInterceptor
All Implemented Interfaces:
com.opensymphony.xwork2.interceptor.Interceptor, Serializable

@Component public class ConditionalActionInterceptor extends Object implements com.opensymphony.xwork2.interceptor.Interceptor
Interceptor that checks for conditional accessibility annotations on an action and runs the condition to check if action should be executed or intercepted.

Current limitation is that Condition classes need to be visible for HostContainer.

See Also:
  • Constructor Details

    • ConditionalActionInterceptor

      public ConditionalActionInterceptor()
  • Method Details

    • destroy

      public void destroy()
      Specified by:
      destroy in interface com.opensymphony.xwork2.interceptor.Interceptor
    • init

      public void init()
      Specified by:
      init in interface com.opensymphony.xwork2.interceptor.Interceptor
    • intercept

      public String intercept(com.opensymphony.xwork2.ActionInvocation invocation) throws Exception
      Specified by:
      intercept in interface com.opensymphony.xwork2.interceptor.Interceptor
      Throws:
      Exception