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