1
2
3
4
5
6
7
8 package org.apache.continuum.model.release;
9
10
11
12
13
14 import org.apache.continuum.model.project.ProjectScmRoot;
15 import org.apache.continuum.model.repository.AbstractPurgeConfiguration;
16 import org.apache.continuum.model.repository.DirectoryPurgeConfiguration;
17 import org.apache.continuum.model.repository.DistributedDirectoryPurgeConfiguration;
18 import org.apache.continuum.model.repository.LocalRepository;
19 import org.apache.continuum.model.repository.RepositoryPurgeConfiguration;
20 import org.apache.maven.continuum.model.project.BuildDefinition;
21 import org.apache.maven.continuum.model.project.BuildDefinitionTemplate;
22 import org.apache.maven.continuum.model.project.BuildQueue;
23 import org.apache.maven.continuum.model.project.BuildResult;
24 import org.apache.maven.continuum.model.project.ContinuumDatabase;
25 import org.apache.maven.continuum.model.project.Project;
26 import org.apache.maven.continuum.model.project.ProjectDependency;
27 import org.apache.maven.continuum.model.project.ProjectDeveloper;
28 import org.apache.maven.continuum.model.project.ProjectGroup;
29 import org.apache.maven.continuum.model.project.ProjectNotifier;
30 import org.apache.maven.continuum.model.project.Schedule;
31 import org.apache.maven.continuum.model.scm.ChangeFile;
32 import org.apache.maven.continuum.model.scm.ChangeSet;
33 import org.apache.maven.continuum.model.scm.ScmResult;
34 import org.apache.maven.continuum.model.system.Installation;
35 import org.apache.maven.continuum.model.system.NotificationAddress;
36 import org.apache.maven.continuum.model.system.Profile;
37 import org.apache.maven.continuum.model.system.SystemConfiguration;
38 import org.apache.maven.continuum.project.ContinuumProjectState;
39
40
41
42
43
44
45 @SuppressWarnings( "all" )
46 public class ContinuumReleaseResult
47 implements java.io.Serializable
48 {
49
50
51
52
53
54
55
56
57 private int id = 0;
58
59
60
61
62 private long startTime = 0L;
63
64
65
66
67 private long endTime = 0L;
68
69
70
71
72 private int resultCode = 0;
73
74
75
76
77 private ProjectGroup projectGroup;
78
79
80
81
82 private Project project;
83
84
85
86
87 private String releaseGoal;
88
89
90
91
92 private String username;
93
94
95
96
97
98
99
100
101
102
103
104
105 public boolean equals( Object other )
106 {
107 if ( this == other )
108 {
109 return true;
110 }
111
112 if ( !( other instanceof ContinuumReleaseResult ) )
113 {
114 return false;
115 }
116
117 ContinuumReleaseResult that = (ContinuumReleaseResult) other;
118 boolean result = true;
119
120 result = result && id == that.id;
121
122 return result;
123 }
124
125
126
127
128
129
130 public long getEndTime()
131 {
132 return this.endTime;
133 }
134
135
136
137
138
139
140 public int getId()
141 {
142 return this.id;
143 }
144
145
146
147
148
149
150 public Project getProject()
151 {
152 return this.project;
153 }
154
155
156
157
158
159
160 public ProjectGroup getProjectGroup()
161 {
162 return this.projectGroup;
163 }
164
165
166
167
168
169
170 public String getReleaseGoal()
171 {
172 return this.releaseGoal;
173 }
174
175
176
177
178
179
180 public int getResultCode()
181 {
182 return this.resultCode;
183 }
184
185
186
187
188
189
190 public long getStartTime()
191 {
192 return this.startTime;
193 }
194
195
196
197
198
199
200 public String getUsername()
201 {
202 return this.username;
203 }
204
205
206
207
208
209
210 public int hashCode()
211 {
212 int result = 17;
213
214 result = 37 * result + (int) id;
215
216 return result;
217 }
218
219
220
221
222
223
224 public void setEndTime( long endTime )
225 {
226 this.endTime = endTime;
227 }
228
229
230
231
232
233
234 public void setId( int id )
235 {
236 this.id = id;
237 }
238
239
240
241
242
243
244 public void setProject( Project project )
245 {
246 this.project = project;
247 }
248
249
250
251
252
253
254 public void setProjectGroup( ProjectGroup projectGroup )
255 {
256 this.projectGroup = projectGroup;
257 }
258
259
260
261
262
263
264 public void setReleaseGoal( String releaseGoal )
265 {
266 this.releaseGoal = releaseGoal;
267 }
268
269
270
271
272
273
274 public void setResultCode( int resultCode )
275 {
276 this.resultCode = resultCode;
277 }
278
279
280
281
282
283
284 public void setStartTime( long startTime )
285 {
286 this.startTime = startTime;
287 }
288
289
290
291
292
293
294 public void setUsername( String username )
295 {
296 this.username = username;
297 }
298
299
300
301
302
303
304 public java.lang.String toString()
305 {
306 StringBuilder buf = new StringBuilder( 128 );
307
308 buf.append( "id = '" );
309 buf.append( getId() );
310 buf.append( "'" );
311
312 return buf.toString();
313 }
314
315 }