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