KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > cowsultants > itracker > ejb > client > models > IssueSearchQueryModel


1 /*
2  * This software was designed and created by Jason Carroll.
3  * Copyright (c) 2002, 2003, 2004 Jason Carroll.
4  * The author can be reached at jcarroll@cowsultants.com
5  * ITracker website: http://www.cowsultants.com
6  * ITracker forums: http://www.cowsultants.com/phpBB/index.php
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it only under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  */

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