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  
33  
34  @SuppressWarnings( "all" )
35  public class BuildResultSummary
36      implements java.io.Serializable
37  {
38  
39        
40       
41      
42  
43      
44  
45  
46      private int id = 0;
47  
48      
49  
50  
51      private int buildNumber = 0;
52  
53      
54  
55  
56      private int state = 0;
57  
58      
59  
60  
61      private long startTime = 0L;
62  
63      
64  
65  
66      private long endTime = 0L;
67  
68      
69  
70  
71      private boolean success = false;
72  
73      
74  
75  
76      private int exitCode = 0;
77  
78      
79  
80  
81      private String error;
82  
83      
84  
85  
86      private int trigger = 0;
87  
88      
89  
90  
91      private ProjectSummary project;
92  
93      
94  
95  
96      private BuildDefinition buildDefinition;
97  
98      
99  
100 
101     private String buildUrl = "";
102 
103 
104       
105      
106     
107 
108     
109 
110 
111 
112 
113 
114     public boolean equals( Object other )
115     {
116         if ( this == other )
117         {
118             return true;
119         }
120 
121         if ( !( other instanceof BuildResultSummary ) )
122         {
123             return false;
124         }
125 
126         BuildResultSummary that = (BuildResultSummary) other;
127         boolean result = true;
128 
129         result = result && id == that.id;
130 
131         return result;
132     } 
133 
134     
135 
136 
137 
138 
139     public BuildDefinition getBuildDefinition()
140     {
141         return this.buildDefinition;
142     } 
143 
144     
145 
146 
147 
148 
149     public int getBuildNumber()
150     {
151         return this.buildNumber;
152     } 
153 
154     
155 
156 
157 
158 
159     public String getBuildUrl()
160     {
161         return this.buildUrl;
162     } 
163 
164     
165 
166 
167 
168 
169     public long getEndTime()
170     {
171         return this.endTime;
172     } 
173 
174     
175 
176 
177 
178 
179     public String getError()
180     {
181         return this.error;
182     } 
183 
184     
185 
186 
187 
188 
189     public int getExitCode()
190     {
191         return this.exitCode;
192     } 
193 
194     
195 
196 
197 
198 
199     public int getId()
200     {
201         return this.id;
202     } 
203 
204     
205 
206 
207 
208 
209     public ProjectSummary getProject()
210     {
211         return this.project;
212     } 
213 
214     
215 
216 
217 
218 
219     public long getStartTime()
220     {
221         return this.startTime;
222     } 
223 
224     
225 
226 
227 
228 
229     public int getState()
230     {
231         return this.state;
232     } 
233 
234     
235 
236 
237 
238 
239     public int getTrigger()
240     {
241         return this.trigger;
242     } 
243 
244     
245 
246 
247 
248 
249     public int hashCode()
250     {
251         int result = 17;
252 
253         result = 37 * result + (int) id;
254 
255         return result;
256     } 
257 
258     
259 
260 
261 
262 
263     public boolean isSuccess()
264     {
265         return this.success;
266     } 
267 
268     
269 
270 
271 
272 
273     public void setBuildDefinition( BuildDefinition buildDefinition )
274     {
275         this.buildDefinition = buildDefinition;
276     } 
277 
278     
279 
280 
281 
282 
283     public void setBuildNumber( int buildNumber )
284     {
285         this.buildNumber = buildNumber;
286     } 
287 
288     
289 
290 
291 
292 
293     public void setBuildUrl( String buildUrl )
294     {
295         this.buildUrl = buildUrl;
296     } 
297 
298     
299 
300 
301 
302 
303     public void setEndTime( long endTime )
304     {
305         this.endTime = endTime;
306     } 
307 
308     
309 
310 
311 
312 
313     public void setError( String error )
314     {
315         this.error = error;
316     } 
317 
318     
319 
320 
321 
322 
323     public void setExitCode( int exitCode )
324     {
325         this.exitCode = exitCode;
326     } 
327 
328     
329 
330 
331 
332 
333     public void setId( int id )
334     {
335         this.id = id;
336     } 
337 
338     
339 
340 
341 
342 
343     public void setProject( ProjectSummary project )
344     {
345         this.project = project;
346     } 
347 
348     
349 
350 
351 
352 
353     public void setStartTime( long startTime )
354     {
355         this.startTime = startTime;
356     } 
357 
358     
359 
360 
361 
362 
363     public void setState( int state )
364     {
365         this.state = state;
366     } 
367 
368     
369 
370 
371 
372 
373     public void setSuccess( boolean success )
374     {
375         this.success = success;
376     } 
377 
378     
379 
380 
381 
382 
383     public void setTrigger( int trigger )
384     {
385         this.trigger = trigger;
386     } 
387 
388     
389 
390 
391 
392 
393     public java.lang.String toString()
394     {
395         StringBuilder buf = new StringBuilder( 128 );
396 
397         buf.append( "id = '" );
398         buf.append( getId() );
399         buf.append( "'" );
400 
401         return buf.toString();
402     } 
403 
404 }