com.atlassian.bamboo.ww2.interceptors
Class ConditionallyAvailableInterceptor

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

@Component
public class ConditionallyAvailableInterceptor
extends Object
implements com.opensymphony.xwork2.interceptor.Interceptor

Interceptor that checks for ConditionallySupported annotation on an action and runs the condition to check if action should be displayed. Current limitation is that Condition classes need to be visible for HostContainer.

See Also:
Serialized Form

Constructor Summary
ConditionallyAvailableInterceptor()
           
 
Method Summary
 void destroy()
           
 void init()
           
 String intercept(com.opensymphony.xwork2.ActionInvocation invocation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConditionallyAvailableInterceptor

public ConditionallyAvailableInterceptor()
Method Detail

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


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.