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