| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
|
| 17 |
|
|
| 18 |
|
|
| 19 |
|
package org.itracker.web.forms; |
| 20 |
|
|
| 21 |
|
import javax.servlet.http.HttpServletRequest; |
| 22 |
|
|
| 23 |
|
import org.apache.struts.action.ActionErrors; |
| 24 |
|
import org.apache.struts.action.ActionMapping; |
| 25 |
|
import org.apache.struts.validator.ValidatorForm; |
| 26 |
|
|
| 27 |
|
|
| 28 |
|
|
| 29 |
|
|
| 30 |
|
@author |
| 31 |
|
|
| 32 |
|
|
|
|
|
| 0% |
Uncovered Elements: 29 (29) |
Complexity: 12 |
Complexity Density: 0.71 |
|
| 33 |
|
public class WorkflowScriptForm extends ValidatorForm { |
| 34 |
|
|
| 35 |
|
|
| 36 |
|
|
| 37 |
|
private static final long serialVersionUID = 1L; |
| 38 |
|
String action; |
| 39 |
|
Integer id; |
| 40 |
|
String name; |
| 41 |
|
Integer event; |
| 42 |
|
String script; |
| 43 |
|
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 1 |
Complexity Density: 0.2 |
|
| 44 |
0
|
public void reset(ActionMapping mapping, HttpServletRequest request) {... |
| 45 |
0
|
action = null; |
| 46 |
0
|
id = null; |
| 47 |
0
|
name = null; |
| 48 |
0
|
event = null; |
| 49 |
0
|
script = null; |
| 50 |
|
} |
| 51 |
|
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
| 52 |
0
|
public ActionErrors validate(ActionMapping mapping,... |
| 53 |
|
HttpServletRequest request) { |
| 54 |
0
|
ActionErrors errors = super.validate(mapping, request); |
| 55 |
|
|
| 56 |
0
|
return errors; |
| 57 |
|
} |
| 58 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 59 |
0
|
public String getAction() {... |
| 60 |
0
|
return action; |
| 61 |
|
} |
| 62 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 63 |
0
|
public void setAction(String action) {... |
| 64 |
0
|
this.action = action; |
| 65 |
|
} |
| 66 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 67 |
0
|
public Integer getEvent() {... |
| 68 |
0
|
return event; |
| 69 |
|
} |
| 70 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 71 |
0
|
public void setEvent(Integer event) {... |
| 72 |
0
|
this.event = event; |
| 73 |
|
} |
| 74 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 75 |
0
|
public Integer getId() {... |
| 76 |
0
|
return id; |
| 77 |
|
} |
| 78 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 79 |
0
|
public void setId(Integer id) {... |
| 80 |
0
|
this.id = id; |
| 81 |
|
} |
| 82 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 83 |
0
|
public String getName() {... |
| 84 |
0
|
return name; |
| 85 |
|
} |
| 86 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 87 |
0
|
public void setName(String name) {... |
| 88 |
0
|
this.name = name; |
| 89 |
|
} |
| 90 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 91 |
0
|
public String getScript() {... |
| 92 |
0
|
return script; |
| 93 |
|
} |
| 94 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 95 |
0
|
public void setScript(String script) {... |
| 96 |
0
|
this.script = script; |
| 97 |
|
} |
| 98 |
|
|
| 99 |
|
} |