1
2
3
4
5
6
7
8 package org.apache.maven.continuum.xmlrpc.project;
9
10
11
12
13
14 import org.apache.continuum.xmlrpc.release.ContinuumReleaseResult;
15 import org.apache.continuum.xmlrpc.repository.AbstractPurgeConfiguration;
16 import org.apache.continuum.xmlrpc.repository.DirectoryPurgeConfiguration;
17 import org.apache.continuum.xmlrpc.repository.LocalRepository;
18 import org.apache.continuum.xmlrpc.repository.RepositoryPurgeConfiguration;
19 import org.apache.continuum.xmlrpc.utils.BuildTrigger;
20 import org.apache.maven.continuum.xmlrpc.scm.ChangeFile;
21 import org.apache.maven.continuum.xmlrpc.scm.ChangeSet;
22 import org.apache.maven.continuum.xmlrpc.scm.ScmResult;
23 import org.apache.maven.continuum.xmlrpc.system.Installation;
24 import org.apache.maven.continuum.xmlrpc.system.Profile;
25 import org.apache.maven.continuum.xmlrpc.system.SystemConfiguration;
26
27
28
29
30
31
32 @SuppressWarnings( "all" )
33 public class ProjectSummary
34 implements java.io.Serializable
35 {
36
37
38
39
40
41
42
43
44 private int id = 0;
45
46
47
48
49 private String groupId;
50
51
52
53
54 private String artifactId;
55
56
57
58
59 private String executorId;
60
61
62
63
64 private String name;
65
66
67
68
69 private String description;
70
71
72
73
74 private String url;
75
76
77
78
79 private String scmUrl;
80
81
82
83
84 private String scmTag;
85
86
87
88
89 private String scmUsername;
90
91
92
93
94 private String scmPassword;
95
96
97
98
99 private boolean scmUseCache = false;
100
101
102
103
104 private String version;
105
106
107
108
109 private int state = 1;
110
111
112
113
114 private int oldState = 0;
115
116
117
118
119 private int latestBuildId = 0;
120
121
122
123
124 private int buildNumber = 0;
125
126
127
128
129 private String workingDirectory;
130
131
132
133
134 private String relativePath;
135
136
137
138
139 private ProjectGroupSummary projectGroup;
140
141
142
143
144
145
146
147
148
149
150
151
152 public boolean equals( Object other )
153 {
154 if ( this == other )
155 {
156 return true;
157 }
158
159 if ( !( other instanceof ProjectSummary ) )
160 {
161 return false;
162 }
163
164 ProjectSummary that = (ProjectSummary) other;
165 boolean result = true;
166
167 result = result && id == that.id;
168
169 return result;
170 }
171
172
173
174
175
176
177 public String getArtifactId()
178 {
179 return this.artifactId;
180 }
181
182
183
184
185
186
187 public int getBuildNumber()
188 {
189 return this.buildNumber;
190 }
191
192
193
194
195
196
197 public String getDescription()
198 {
199 return this.description;
200 }
201
202
203
204
205
206
207 public String getExecutorId()
208 {
209 return this.executorId;
210 }
211
212
213
214
215
216
217 public String getGroupId()
218 {
219 return this.groupId;
220 }
221
222
223
224
225
226
227 public int getId()
228 {
229 return this.id;
230 }
231
232
233
234
235
236
237 public int getLatestBuildId()
238 {
239 return this.latestBuildId;
240 }
241
242
243
244
245
246
247 public String getName()
248 {
249 return this.name;
250 }
251
252
253
254
255
256
257 public int getOldState()
258 {
259 return this.oldState;
260 }
261
262
263
264
265
266
267 public ProjectGroupSummary getProjectGroup()
268 {
269 return this.projectGroup;
270 }
271
272
273
274
275
276
277 public String getRelativePath()
278 {
279 return this.relativePath;
280 }
281
282
283
284
285
286
287 public String getScmPassword()
288 {
289 return this.scmPassword;
290 }
291
292
293
294
295
296
297 public String getScmTag()
298 {
299 return this.scmTag;
300 }
301
302
303
304
305
306
307 public String getScmUrl()
308 {
309 return this.scmUrl;
310 }
311
312
313
314
315
316
317 public String getScmUsername()
318 {
319 return this.scmUsername;
320 }
321
322
323
324
325
326
327 public int getState()
328 {
329 return this.state;
330 }
331
332
333
334
335
336
337 public String getUrl()
338 {
339 return this.url;
340 }
341
342
343
344
345
346
347 public String getVersion()
348 {
349 return this.version;
350 }
351
352
353
354
355
356
357 public String getWorkingDirectory()
358 {
359 return this.workingDirectory;
360 }
361
362
363
364
365
366
367 public int hashCode()
368 {
369 int result = 17;
370
371 result = 37 * result + (int) id;
372
373 return result;
374 }
375
376
377
378
379
380
381 public boolean isScmUseCache()
382 {
383 return this.scmUseCache;
384 }
385
386
387
388
389
390
391 public void setArtifactId( String artifactId )
392 {
393 this.artifactId = artifactId;
394 }
395
396
397
398
399
400
401 public void setBuildNumber( int buildNumber )
402 {
403 this.buildNumber = buildNumber;
404 }
405
406
407
408
409
410
411 public void setDescription( String description )
412 {
413 this.description = description;
414 }
415
416
417
418
419
420
421 public void setExecutorId( String executorId )
422 {
423 this.executorId = executorId;
424 }
425
426
427
428
429
430
431 public void setGroupId( String groupId )
432 {
433 this.groupId = groupId;
434 }
435
436
437
438
439
440
441 public void setId( int id )
442 {
443 this.id = id;
444 }
445
446
447
448
449
450
451 public void setLatestBuildId( int latestBuildId )
452 {
453 this.latestBuildId = latestBuildId;
454 }
455
456
457
458
459
460
461 public void setName( String name )
462 {
463 this.name = name;
464 }
465
466
467
468
469
470
471 public void setOldState( int oldState )
472 {
473 this.oldState = oldState;
474 }
475
476
477
478
479
480
481 public void setProjectGroup( ProjectGroupSummary projectGroup )
482 {
483 this.projectGroup = projectGroup;
484 }
485
486
487
488
489
490
491 public void setRelativePath( String relativePath )
492 {
493 this.relativePath = relativePath;
494 }
495
496
497
498
499
500
501 public void setScmPassword( String scmPassword )
502 {
503 this.scmPassword = scmPassword;
504 }
505
506
507
508
509
510
511 public void setScmTag( String scmTag )
512 {
513 this.scmTag = scmTag;
514 }
515
516
517
518
519
520
521 public void setScmUrl( String scmUrl )
522 {
523 this.scmUrl = scmUrl;
524 }
525
526
527
528
529
530
531 public void setScmUseCache( boolean scmUseCache )
532 {
533 this.scmUseCache = scmUseCache;
534 }
535
536
537
538
539
540
541 public void setScmUsername( String scmUsername )
542 {
543 this.scmUsername = scmUsername;
544 }
545
546
547
548
549
550
551 public void setState( int state )
552 {
553 this.state = state;
554 }
555
556
557
558
559
560
561 public void setUrl( String url )
562 {
563 this.url = url;
564 }
565
566
567
568
569
570
571 public void setVersion( String version )
572 {
573 this.version = version;
574 }
575
576
577
578
579
580
581 public void setWorkingDirectory( String workingDirectory )
582 {
583 this.workingDirectory = workingDirectory;
584 }
585
586
587
588
589
590
591 public java.lang.String toString()
592 {
593 StringBuilder buf = new StringBuilder( 128 );
594
595 buf.append( "id = '" );
596 buf.append( getId() );
597 buf.append( "'" );
598
599 return buf.toString();
600 }
601
602 }