| 1 |
|
package com.atlassian.xwork.interceptors; |
| 2 |
|
|
| 3 |
|
import com.opensymphony.xwork.ActionInvocation; |
| 4 |
|
import com.opensymphony.xwork.ActionSupport; |
| 5 |
|
import com.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor; |
| 6 |
|
import com.opensymphony.webwork.ServletActionContext; |
| 7 |
|
import com.opensymphony.util.TextUtils; |
| 8 |
|
|
|
|
|
| 0% |
Uncovered Elements: 9 (9) |
Complexity: 3 |
Complexity Density: 0.75 |
|
| 9 |
|
public class CancelWorkflowInterceptor extends DefaultWorkflowInterceptor |
| 10 |
|
{ |
| 11 |
|
public static final String CANCEL = "cancel"; |
| 12 |
|
|
|
|
|
| 0% |
Uncovered Elements: 8 (8) |
Complexity: 3 |
Complexity Density: 0.75 |
|
| 13 |
0
|
public String intercept(ActionInvocation actionInvocation) throws Exception... |
| 14 |
|
{ |
| 15 |
0
|
if (actionInvocation.getAction() instanceof ActionSupport) |
| 16 |
|
{ |
| 17 |
0
|
if (TextUtils.stringSet(ServletActionContext.getRequest().getParameter("cancel"))) |
| 18 |
0
|
return CANCEL; |
| 19 |
|
} |
| 20 |
|
|
| 21 |
0
|
return super.intercept(actionInvocation); |
| 22 |
|
} |
| 23 |
|
} |