1 /*
2 =================== DO NOT EDIT THIS FILE ====================
3 Generated by Modello
4 any modifications will be overwritten.
5 ==============================================================
6 */
7
8 package org.apache.maven.continuum.web.model;
9
10 /**
11 * Class ProjectSummary.
12 *
13 * @version $Revision$ $Date$
14 */
15 @SuppressWarnings( "all" )
16 public class ProjectSummary
17 implements java.io.Serializable
18 {
19
20 //--------------------------/
21 //- Class/Member Variables -/
22 //--------------------------/
23
24 /**
25 * project id of the project.
26 */
27 private int id = -1;
28
29 /**
30 * name of the project.
31 */
32 private String name;
33
34 /**
35 * version of the project.
36 */
37 private String version;
38
39 /**
40 * id of the project group this project is a member of.
41 */
42 private int projectGroupId = -1;
43
44 /**
45 * name of the project group this project is a member of.
46 */
47 private String projectGroupName;
48
49 /**
50 * latest build id of the project.
51 */
52 private int latestBuildId = -1;
53
54 /**
55 * Field buildInSuccessId.
56 */
57 private int buildInSuccessId = -1;
58
59 /**
60 * Field buildNumber.
61 */
62 private int buildNumber = -1;
63
64 /**
65 * lifecycle state of the project.
66 */
67 private int state = -1;
68
69 /**
70 * true/false depending on if the project is in the build queue
71 * or not.
72 */
73 private boolean inBuildingQueue = false;
74
75 /**
76 * true/false depending on if the project is in the checkout
77 * queue or not.
78 */
79 private boolean inCheckoutQueue = false;
80
81 /**
82 * last build dateTime of the project.
83 */
84 private long lastBuildDateTime = 0L;
85
86 /**
87 * last build duration of the project.
88 */
89 private String lastBuildDuration;
90
91 /**
92 * type of the project.
93 */
94 private String projectType;
95
96
97 //-----------/
98 //- Methods -/
99 //-----------/
100
101 /**
102 * Get the buildInSuccessId field.
103 *
104 * @return int
105 */
106 public int getBuildInSuccessId()
107 {
108 return this.buildInSuccessId;
109 } //-- int getBuildInSuccessId()
110
111 /**
112 * Get the buildNumber field.
113 *
114 * @return int
115 */
116 public int getBuildNumber()
117 {
118 return this.buildNumber;
119 } //-- int getBuildNumber()
120
121 /**
122 * Get project id of the project.
123 *
124 * @return int
125 */
126 public int getId()
127 {
128 return this.id;
129 } //-- int getId()
130
131 /**
132 * Get last build dateTime of the project.
133 *
134 * @return long
135 */
136 public long getLastBuildDateTime()
137 {
138 return this.lastBuildDateTime;
139 } //-- long getLastBuildDateTime()
140
141 /**
142 * Get last build duration of the project.
143 *
144 * @return String
145 */
146 public String getLastBuildDuration()
147 {
148 return this.lastBuildDuration;
149 } //-- String getLastBuildDuration()
150
151 /**
152 * Get latest build id of the project.
153 *
154 * @return int
155 */
156 public int getLatestBuildId()
157 {
158 return this.latestBuildId;
159 } //-- int getLatestBuildId()
160
161 /**
162 * Get name of the project.
163 *
164 * @return String
165 */
166 public String getName()
167 {
168 return this.name;
169 } //-- String getName()
170
171 /**
172 * Get id of the project group this project is a member of.
173 *
174 * @return int
175 */
176 public int getProjectGroupId()
177 {
178 return this.projectGroupId;
179 } //-- int getProjectGroupId()
180
181 /**
182 * Get name of the project group this project is a member of.
183 *
184 * @return String
185 */
186 public String getProjectGroupName()
187 {
188 return this.projectGroupName;
189 } //-- String getProjectGroupName()
190
191 /**
192 * Get type of the project.
193 *
194 * @return String
195 */
196 public String getProjectType()
197 {
198 return this.projectType;
199 } //-- String getProjectType()
200
201 /**
202 * Get lifecycle state of the project.
203 *
204 * @return int
205 */
206 public int getState()
207 {
208 return this.state;
209 } //-- int getState()
210
211 /**
212 * Get version of the project.
213 *
214 * @return String
215 */
216 public String getVersion()
217 {
218 return this.version;
219 } //-- String getVersion()
220
221 /**
222 * Get true/false depending on if the project is in the build
223 * queue or not.
224 *
225 * @return boolean
226 */
227 public boolean isInBuildingQueue()
228 {
229 return this.inBuildingQueue;
230 } //-- boolean isInBuildingQueue()
231
232 /**
233 * Get true/false depending on if the project is in the
234 * checkout queue or not.
235 *
236 * @return boolean
237 */
238 public boolean isInCheckoutQueue()
239 {
240 return this.inCheckoutQueue;
241 } //-- boolean isInCheckoutQueue()
242
243 /**
244 * Set the buildInSuccessId field.
245 *
246 * @param buildInSuccessId
247 */
248 public void setBuildInSuccessId( int buildInSuccessId )
249 {
250 this.buildInSuccessId = buildInSuccessId;
251 } //-- void setBuildInSuccessId( int )
252
253 /**
254 * Set the buildNumber field.
255 *
256 * @param buildNumber
257 */
258 public void setBuildNumber( int buildNumber )
259 {
260 this.buildNumber = buildNumber;
261 } //-- void setBuildNumber( int )
262
263 /**
264 * Set project id of the project.
265 *
266 * @param id
267 */
268 public void setId( int id )
269 {
270 this.id = id;
271 } //-- void setId( int )
272
273 /**
274 * Set true/false depending on if the project is in the build
275 * queue or not.
276 *
277 * @param inBuildingQueue
278 */
279 public void setInBuildingQueue( boolean inBuildingQueue )
280 {
281 this.inBuildingQueue = inBuildingQueue;
282 } //-- void setInBuildingQueue( boolean )
283
284 /**
285 * Set true/false depending on if the project is in the
286 * checkout queue or not.
287 *
288 * @param inCheckoutQueue
289 */
290 public void setInCheckoutQueue( boolean inCheckoutQueue )
291 {
292 this.inCheckoutQueue = inCheckoutQueue;
293 } //-- void setInCheckoutQueue( boolean )
294
295 /**
296 * Set last build dateTime of the project.
297 *
298 * @param lastBuildDateTime
299 */
300 public void setLastBuildDateTime( long lastBuildDateTime )
301 {
302 this.lastBuildDateTime = lastBuildDateTime;
303 } //-- void setLastBuildDateTime( long )
304
305 /**
306 * Set last build duration of the project.
307 *
308 * @param lastBuildDuration
309 */
310 public void setLastBuildDuration( String lastBuildDuration )
311 {
312 this.lastBuildDuration = lastBuildDuration;
313 } //-- void setLastBuildDuration( String )
314
315 /**
316 * Set latest build id of the project.
317 *
318 * @param latestBuildId
319 */
320 public void setLatestBuildId( int latestBuildId )
321 {
322 this.latestBuildId = latestBuildId;
323 } //-- void setLatestBuildId( int )
324
325 /**
326 * Set name of the project.
327 *
328 * @param name
329 */
330 public void setName( String name )
331 {
332 this.name = name;
333 } //-- void setName( String )
334
335 /**
336 * Set id of the project group this project is a member of.
337 *
338 * @param projectGroupId
339 */
340 public void setProjectGroupId( int projectGroupId )
341 {
342 this.projectGroupId = projectGroupId;
343 } //-- void setProjectGroupId( int )
344
345 /**
346 * Set name of the project group this project is a member of.
347 *
348 * @param projectGroupName
349 */
350 public void setProjectGroupName( String projectGroupName )
351 {
352 this.projectGroupName = projectGroupName;
353 } //-- void setProjectGroupName( String )
354
355 /**
356 * Set type of the project.
357 *
358 * @param projectType
359 */
360 public void setProjectType( String projectType )
361 {
362 this.projectType = projectType;
363 } //-- void setProjectType( String )
364
365 /**
366 * Set lifecycle state of the project.
367 *
368 * @param state
369 */
370 public void setState( int state )
371 {
372 this.state = state;
373 } //-- void setState( int )
374
375 /**
376 * Set version of the project.
377 *
378 * @param version
379 */
380 public void setVersion( String version )
381 {
382 this.version = version;
383 } //-- void setVersion( String )
384
385 }