1
2
3
4
5
6
7
8 package org.apache.maven.continuum.xmlrpc.system;
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.project.AddingResult;
21 import org.apache.maven.continuum.xmlrpc.project.BuildAgentConfiguration;
22 import org.apache.maven.continuum.xmlrpc.project.BuildAgentGroupConfiguration;
23 import org.apache.maven.continuum.xmlrpc.project.BuildDefinition;
24 import org.apache.maven.continuum.xmlrpc.project.BuildDefinitionTemplate;
25 import org.apache.maven.continuum.xmlrpc.project.BuildProjectTask;
26 import org.apache.maven.continuum.xmlrpc.project.BuildResult;
27 import org.apache.maven.continuum.xmlrpc.project.BuildResultSummary;
28 import org.apache.maven.continuum.xmlrpc.project.ContinuumProjectState;
29 import org.apache.maven.continuum.xmlrpc.project.Project;
30 import org.apache.maven.continuum.xmlrpc.project.ProjectDependency;
31 import org.apache.maven.continuum.xmlrpc.project.ProjectDeveloper;
32 import org.apache.maven.continuum.xmlrpc.project.ProjectGroup;
33 import org.apache.maven.continuum.xmlrpc.project.ProjectGroupSummary;
34 import org.apache.maven.continuum.xmlrpc.project.ProjectNotifier;
35 import org.apache.maven.continuum.xmlrpc.project.ProjectScmRoot;
36 import org.apache.maven.continuum.xmlrpc.project.ProjectSummary;
37 import org.apache.maven.continuum.xmlrpc.project.ReleaseListenerSummary;
38 import org.apache.maven.continuum.xmlrpc.project.Schedule;
39 import org.apache.maven.continuum.xmlrpc.scm.ChangeFile;
40 import org.apache.maven.continuum.xmlrpc.scm.ChangeSet;
41 import org.apache.maven.continuum.xmlrpc.scm.ScmResult;
42
43
44
45
46
47
48 @SuppressWarnings( "all" )
49 public class Profile
50 implements java.io.Serializable
51 {
52
53
54
55
56
57
58
59
60 private int id = 0;
61
62
63
64
65 private boolean active = false;
66
67
68
69
70 private String name;
71
72
73
74
75 private String description;
76
77
78
79
80 private int scmMode = 0;
81
82
83
84
85 private boolean buildWithoutChanges = false;
86
87
88
89
90 private Installation jdk;
91
92
93
94
95 private Installation builder;
96
97
98
99
100 private java.util.List<Installation> environmentVariables;
101
102
103
104
105 private String buildAgentGroup;
106
107
108
109
110
111
112
113
114
115
116
117 public void addEnvironmentVariable( Installation installation )
118 {
119 getEnvironmentVariables().add( installation );
120 }
121
122
123
124
125
126
127
128 public boolean equals( Object other )
129 {
130 if ( this == other )
131 {
132 return true;
133 }
134
135 if ( !( other instanceof Profile ) )
136 {
137 return false;
138 }
139
140 Profile that = (Profile) other;
141 boolean result = true;
142
143 result = result && id == that.id;
144
145 return result;
146 }
147
148
149
150
151
152
153 public String getBuildAgentGroup()
154 {
155 return this.buildAgentGroup;
156 }
157
158
159
160
161
162
163 public Installation getBuilder()
164 {
165 return this.builder;
166 }
167
168
169
170
171
172
173 public String getDescription()
174 {
175 return this.description;
176 }
177
178
179
180
181
182
183 public java.util.List<Installation> getEnvironmentVariables()
184 {
185 if ( this.environmentVariables == null )
186 {
187 this.environmentVariables = new java.util.ArrayList<Installation>();
188 }
189
190 return this.environmentVariables;
191 }
192
193
194
195
196
197
198 public int getId()
199 {
200 return this.id;
201 }
202
203
204
205
206
207
208 public Installation getJdk()
209 {
210 return this.jdk;
211 }
212
213
214
215
216
217
218 public String getName()
219 {
220 return this.name;
221 }
222
223
224
225
226
227
228 public int getScmMode()
229 {
230 return this.scmMode;
231 }
232
233
234
235
236
237
238 public int hashCode()
239 {
240 int result = 17;
241
242 result = 37 * result + (int) id;
243
244 return result;
245 }
246
247
248
249
250
251
252 public boolean isActive()
253 {
254 return this.active;
255 }
256
257
258
259
260
261
262 public boolean isBuildWithoutChanges()
263 {
264 return this.buildWithoutChanges;
265 }
266
267
268
269
270
271
272 public void removeEnvironmentVariable( Installation installation )
273 {
274 getEnvironmentVariables().remove( installation );
275 }
276
277
278
279
280
281
282 public void setActive( boolean active )
283 {
284 this.active = active;
285 }
286
287
288
289
290
291
292 public void setBuildAgentGroup( String buildAgentGroup )
293 {
294 this.buildAgentGroup = buildAgentGroup;
295 }
296
297
298
299
300
301
302 public void setBuildWithoutChanges( boolean buildWithoutChanges )
303 {
304 this.buildWithoutChanges = buildWithoutChanges;
305 }
306
307
308
309
310
311
312 public void setBuilder( Installation builder )
313 {
314 this.builder = builder;
315 }
316
317
318
319
320
321
322 public void setDescription( String description )
323 {
324 this.description = description;
325 }
326
327
328
329
330
331
332 public void setEnvironmentVariables( java.util.List<Installation> environmentVariables )
333 {
334 this.environmentVariables = environmentVariables;
335 }
336
337
338
339
340
341
342 public void setId( int id )
343 {
344 this.id = id;
345 }
346
347
348
349
350
351
352 public void setJdk( Installation jdk )
353 {
354 this.jdk = jdk;
355 }
356
357
358
359
360
361
362 public void setName( String name )
363 {
364 this.name = name;
365 }
366
367
368
369
370
371
372 public void setScmMode( int scmMode )
373 {
374 this.scmMode = scmMode;
375 }
376
377
378
379
380
381
382 public java.lang.String toString()
383 {
384 StringBuilder buf = new StringBuilder( 128 );
385
386 buf.append( "id = '" );
387 buf.append( getId() );
388 buf.append( "'" );
389
390 return buf.toString();
391 }
392
393 }