| 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 |
|
|
|
|
|
| 0% |
Uncovered Elements: 114 (114) |
Complexity: 40 |
Complexity Density: 0.62 |
|
| 32 |
|
public class SearchForm extends ValidatorForm { |
| 33 |
|
|
| 34 |
|
|
| 35 |
|
|
| 36 |
|
private static final long serialVersionUID = 1L; |
| 37 |
|
private String action; |
| 38 |
|
private Integer[] components; |
| 39 |
|
private Integer creator; |
| 40 |
|
private String orderBy; |
| 41 |
|
private Integer owner; |
| 42 |
|
private Integer project; |
| 43 |
|
private Integer[] projects; |
| 44 |
|
private String resolution; |
| 45 |
|
private Integer[] severities; |
| 46 |
|
private Integer[] statuses; |
| 47 |
|
private Integer targetVersion; |
| 48 |
|
private String textphrase; |
| 49 |
|
private Integer type; |
| 50 |
|
private Integer[] versions; |
| 51 |
|
|
|
|
|
| 0% |
Uncovered Elements: 14 (14) |
Complexity: 1 |
Complexity Density: 0.07 |
|
| 52 |
0
|
public void reset(ActionMapping mapping, HttpServletRequest request) {... |
| 53 |
0
|
action = null; |
| 54 |
0
|
components = null; |
| 55 |
0
|
creator = null; |
| 56 |
0
|
orderBy = null; |
| 57 |
0
|
owner = null; |
| 58 |
0
|
project = null; |
| 59 |
0
|
projects = null; |
| 60 |
0
|
resolution = null; |
| 61 |
0
|
severities = null; |
| 62 |
0
|
statuses = null; |
| 63 |
0
|
targetVersion = null; |
| 64 |
0
|
textphrase = null; |
| 65 |
0
|
type = null; |
| 66 |
0
|
versions = null; |
| 67 |
|
|
| 68 |
|
} |
| 69 |
|
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
| 70 |
0
|
public ActionErrors validate(ActionMapping mapping,... |
| 71 |
|
HttpServletRequest request) { |
| 72 |
0
|
ActionErrors errors = super.validate(mapping, request); |
| 73 |
|
|
| 74 |
0
|
return errors; |
| 75 |
|
} |
| 76 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 77 |
0
|
public String getAction() {... |
| 78 |
0
|
return action; |
| 79 |
|
} |
| 80 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 81 |
0
|
public void setAction(String action) {... |
| 82 |
0
|
this.action = action; |
| 83 |
|
} |
| 84 |
|
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
| 85 |
0
|
public Integer[] getComponents() {... |
| 86 |
0
|
if (null == components) |
| 87 |
0
|
return null; |
| 88 |
0
|
return components.clone(); |
| 89 |
|
} |
| 90 |
|
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
| 91 |
0
|
public void setComponents(Integer[] components) {... |
| 92 |
0
|
if (null == components) |
| 93 |
0
|
this.components = null; |
| 94 |
|
else |
| 95 |
0
|
this.components = components.clone(); |
| 96 |
|
} |
| 97 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 98 |
0
|
public Integer getCreator() {... |
| 99 |
0
|
return creator; |
| 100 |
|
} |
| 101 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 102 |
0
|
public void setCreator(Integer creator) {... |
| 103 |
0
|
this.creator = creator; |
| 104 |
|
} |
| 105 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 106 |
0
|
public String getOrderBy() {... |
| 107 |
0
|
return orderBy; |
| 108 |
|
} |
| 109 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 110 |
0
|
public void setOrderBy(String orderBy) {... |
| 111 |
0
|
this.orderBy = orderBy; |
| 112 |
|
} |
| 113 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 114 |
0
|
public Integer getOwner() {... |
| 115 |
0
|
return owner; |
| 116 |
|
} |
| 117 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 118 |
0
|
public void setOwner(Integer owner) {... |
| 119 |
0
|
this.owner = owner; |
| 120 |
|
} |
| 121 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 122 |
0
|
public Integer getProject() {... |
| 123 |
0
|
return project; |
| 124 |
|
} |
| 125 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 126 |
0
|
public void setProject(Integer project) {... |
| 127 |
0
|
this.project = project; |
| 128 |
|
} |
| 129 |
|
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
| 130 |
0
|
public Integer[] getProjects() {... |
| 131 |
0
|
if (null == projects) |
| 132 |
0
|
return null; |
| 133 |
0
|
return projects.clone(); |
| 134 |
|
} |
| 135 |
|
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
| 136 |
0
|
public void setProjects(Integer[] projects) {... |
| 137 |
0
|
if (null == projects) |
| 138 |
0
|
this.projects = null; |
| 139 |
|
else |
| 140 |
0
|
this.projects = projects.clone(); |
| 141 |
|
} |
| 142 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 143 |
0
|
public String getResolution() {... |
| 144 |
0
|
return resolution; |
| 145 |
|
} |
| 146 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 147 |
0
|
public void setResolution(String resolution) {... |
| 148 |
0
|
this.resolution = resolution; |
| 149 |
|
} |
| 150 |
|
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
| 151 |
0
|
public Integer[] getSeverities() {... |
| 152 |
0
|
if (null == severities) |
| 153 |
0
|
return null; |
| 154 |
0
|
return severities.clone(); |
| 155 |
|
} |
| 156 |
|
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
| 157 |
0
|
public void setSeverities(Integer[] severities) {... |
| 158 |
0
|
if (null == severities) |
| 159 |
0
|
this.severities = null; |
| 160 |
|
else |
| 161 |
0
|
this.severities = severities.clone(); |
| 162 |
|
} |
| 163 |
|
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
| 164 |
0
|
public Integer[] getStatuses() {... |
| 165 |
0
|
if (null == statuses) |
| 166 |
0
|
return null; |
| 167 |
0
|
return statuses.clone(); |
| 168 |
|
} |
| 169 |
|
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
| 170 |
0
|
public void setStatuses(Integer[] statuses) {... |
| 171 |
0
|
if (null == statuses) |
| 172 |
0
|
this.statuses = null; |
| 173 |
|
else |
| 174 |
0
|
this.statuses = statuses.clone(); |
| 175 |
|
} |
| 176 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 177 |
0
|
public Integer getTargetVersion() {... |
| 178 |
0
|
return targetVersion; |
| 179 |
|
} |
| 180 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 181 |
0
|
public void setTargetVersion(Integer targetVersion) {... |
| 182 |
0
|
this.targetVersion = targetVersion; |
| 183 |
|
} |
| 184 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 185 |
0
|
public String getTextphrase() {... |
| 186 |
0
|
return textphrase; |
| 187 |
|
} |
| 188 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 189 |
0
|
public void setTextphrase(String textphrase) {... |
| 190 |
0
|
this.textphrase = textphrase; |
| 191 |
|
} |
| 192 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 193 |
0
|
public Integer getType() {... |
| 194 |
0
|
return type; |
| 195 |
|
} |
| 196 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 197 |
0
|
public void setType(Integer type) {... |
| 198 |
0
|
this.type = type; |
| 199 |
|
} |
| 200 |
|
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
| 201 |
0
|
public Integer[] getVersions() {... |
| 202 |
0
|
if (null == this.versions) |
| 203 |
0
|
return null; |
| 204 |
0
|
return versions.clone(); |
| 205 |
|
} |
| 206 |
|
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
| 207 |
0
|
public void setVersions(Integer[] versions) {... |
| 208 |
0
|
if (null == versions) |
| 209 |
0
|
this.versions = null; |
| 210 |
|
else |
| 211 |
0
|
this.versions = versions.clone(); |
| 212 |
|
} |
| 213 |
|
|
| 214 |
|
} |