1 18 19 package cowsultants.itracker.ejb.client.models; 20 21 import java.io.Serializable ; 22 23 public class IssueSearchQueryModel implements Serializable { 24 public static final Integer TYPE_FULL = new Integer (1); 25 public static final Integer TYPE_PROJECT = new Integer (2); 26 27 private ProjectModel[] availableProjects = new ProjectModel[0]; 28 29 private Integer [] projects = new Integer [0]; 30 private Integer [] statuses = new Integer [0]; 31 private Integer [] severities = new Integer [0]; 32 private Integer [] components = new Integer [0]; 33 private Integer [] versions = new Integer [0]; 34 private Integer targetVersion = null; 35 private String owner = null; 36 private String creator = null; 37 private String contributor = null; 38 private String text = null; 39 private String resolution = null; 40 41 private String orderBy = null; 42 43 private Integer type = new Integer (-1); 44 private ProjectModel project = null; 45 private Integer projectId = new Integer (-1); 46 private String projectName = ""; 47 48 private IssueModel[] results = null; 49 50 public IssueSearchQueryModel() { 51 } 52 53 public ProjectModel[] getAvailableProjects() { 54 return availableProjects; 55 } 56 57 public void setAvailableProjects(ProjectModel[] value) { 58 availableProjects = value; 59 } 60 61 public ProjectModel getProject() { 62 return project; 63 } 64 65 public void setProject(ProjectModel value) { 66 project = value; 67 } 68 69 public Integer getProjectId() { 70 return (project == null ? projectId : project.getId()); 71 } 72 73 public void setProjectId(Integer value) { 74 projectId = value; 75 projects = new Integer [] { value }; 76 } 77 78 public String getProjectName() { 79 return (project == null ? projectName : project.getName()); 80 } 81 82 public void setProjectName(String value) { 83 projectName = value; 84 } 85 86 public Integer [] getProjects() { 87 return projects; 88 } 89 90 public void setProjects(Integer [] value) { 91 if(value != null && value.length > 0) { 92 projects = value; 93 } 94 } 95 96 public Integer [] getSeverities() { 97 return severities; 98 } 99 100 public void setSeverities(Integer [] value) { 101 if(value != null && value.length > 0) { 102 severities = value; 103 } 104 } 105 106 public Integer [] getStatuses() { 107 return statuses; 108 } 109 110 public void setStatuses(Integer [] value) { 111 if(value != null && value.length > 0) { 112 statuses = value; 113 } 114 } 115 116 public Integer [] getComponents() { 117 return components; 118 } 119 120 public void setComponents(Integer [] value) { 121 if(value != null && value.length > 0) { 122 components = value; 123 } 124 } 125 126 public Integer [] getVersions() { 127 return versions; 128 } 129 130 public void setVersions(Integer [] value) { 131 if(value != null && value.length > 0) { 132 versions = value; 133 } 134 } 135 136 public Integer getTargetVersion() { 137 return targetVersion; 138 } 139 140 public void setTargetVersion(Integer value) { 141 targetVersion = value; 142 } 143 144 public String getOwner() { 145 return owner; 146 } 147 148 public void setOwner(String value) { 149 owner = value; 150 } 151 152 public String getCreator() { 153 return creator; 154 } 155 156 public void setCreator(String value) { 157 creator = value; 158 } 159 160 public String getContributor() { 161 return contributor; 162 } 163 164 public void setContributor(String value) { 165 contributor = value; 166 } 167 168 public String getText() { 169 return text; 170 } 171 172 public void setText(String value) { 173 text = value; 174 } 175 176 public String getResolution() { 177 return resolution; 178 } 179 180 public void setResolution(String value) { 181 resolution = value; 182 } 183 184 public String getOrderBy() { 185 return orderBy; 186 } 187 188 public void setOrderBy(String value) { 189 orderBy = value; 190 } 191 192 public Integer getType() { 193 return type; 194 } 195 196 public void setType(Integer value) { 197 type = value; 198 } 199 200 public IssueModel[] getResults() { 201 return results; 202 } 203 204 public void setResults(IssueModel[] value) { 205 results = value; 206 } 207 } 208 | Popular Tags |