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