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