1
2
3
4
5
6
7
8 package org.apache.continuum.xmlrpc.repository;
9
10
11
12
13
14 import org.apache.continuum.xmlrpc.release.ContinuumReleaseResult;
15 import org.apache.continuum.xmlrpc.utils.BuildTrigger;
16 import org.apache.maven.continuum.xmlrpc.project.AddingResult;
17 import org.apache.maven.continuum.xmlrpc.project.BuildAgentConfiguration;
18 import org.apache.maven.continuum.xmlrpc.project.BuildAgentGroupConfiguration;
19 import org.apache.maven.continuum.xmlrpc.project.BuildDefinition;
20 import org.apache.maven.continuum.xmlrpc.project.BuildDefinitionTemplate;
21 import org.apache.maven.continuum.xmlrpc.project.BuildProjectTask;
22 import org.apache.maven.continuum.xmlrpc.project.BuildResult;
23 import org.apache.maven.continuum.xmlrpc.project.BuildResultSummary;
24 import org.apache.maven.continuum.xmlrpc.project.ContinuumProjectState;
25 import org.apache.maven.continuum.xmlrpc.project.Project;
26 import org.apache.maven.continuum.xmlrpc.project.ProjectDependency;
27 import org.apache.maven.continuum.xmlrpc.project.ProjectDeveloper;
28 import org.apache.maven.continuum.xmlrpc.project.ProjectGroup;
29 import org.apache.maven.continuum.xmlrpc.project.ProjectGroupSummary;
30 import org.apache.maven.continuum.xmlrpc.project.ProjectNotifier;
31 import org.apache.maven.continuum.xmlrpc.project.ProjectScmRoot;
32 import org.apache.maven.continuum.xmlrpc.project.ProjectSummary;
33 import org.apache.maven.continuum.xmlrpc.project.ReleaseListenerSummary;
34 import org.apache.maven.continuum.xmlrpc.project.Schedule;
35 import org.apache.maven.continuum.xmlrpc.scm.ChangeFile;
36 import org.apache.maven.continuum.xmlrpc.scm.ChangeSet;
37 import org.apache.maven.continuum.xmlrpc.scm.ScmResult;
38 import org.apache.maven.continuum.xmlrpc.system.Installation;
39 import org.apache.maven.continuum.xmlrpc.system.Profile;
40 import org.apache.maven.continuum.xmlrpc.system.SystemConfiguration;
41
42
43
44
45
46
47 @SuppressWarnings( "all" )
48 public class AbstractPurgeConfiguration
49 implements java.io.Serializable
50 {
51
52
53
54
55
56
57
58
59 private int id = 0;
60
61
62
63
64 private String description;
65
66
67
68
69 private boolean deleteAll = false;
70
71
72
73
74
75
76
77 private int retentionCount = 2;
78
79
80
81
82
83
84
85 private int daysOlder = 100;
86
87
88
89
90 private boolean enabled = true;
91
92
93
94
95 private Schedule schedule;
96
97
98
99
100 private boolean defaultPurge = false;
101
102
103
104
105
106
107
108
109
110
111
112
113 public boolean equals( Object other )
114 {
115 if ( this == other )
116 {
117 return true;
118 }
119
120 if ( !( other instanceof AbstractPurgeConfiguration ) )
121 {
122 return false;
123 }
124
125 AbstractPurgeConfiguration that = (AbstractPurgeConfiguration) other;
126 boolean result = true;
127
128 result = result && id == that.id;
129
130 return result;
131 }
132
133
134
135
136
137
138
139 public int getDaysOlder()
140 {
141 return this.daysOlder;
142 }
143
144
145
146
147
148
149 public String getDescription()
150 {
151 return this.description;
152 }
153
154
155
156
157
158
159 public int getId()
160 {
161 return this.id;
162 }
163
164
165
166
167
168
169
170 public int getRetentionCount()
171 {
172 return this.retentionCount;
173 }
174
175
176
177
178
179
180 public Schedule getSchedule()
181 {
182 return this.schedule;
183 }
184
185
186
187
188
189
190 public int hashCode()
191 {
192 int result = 17;
193
194 result = 37 * result + (int) id;
195
196 return result;
197 }
198
199
200
201
202
203
204 public boolean isDefaultPurge()
205 {
206 return this.defaultPurge;
207 }
208
209
210
211
212
213
214 public boolean isDeleteAll()
215 {
216 return this.deleteAll;
217 }
218
219
220
221
222
223
224 public boolean isEnabled()
225 {
226 return this.enabled;
227 }
228
229
230
231
232
233
234
235 public void setDaysOlder( int daysOlder )
236 {
237 this.daysOlder = daysOlder;
238 }
239
240
241
242
243
244
245 public void setDefaultPurge( boolean defaultPurge )
246 {
247 this.defaultPurge = defaultPurge;
248 }
249
250
251
252
253
254
255 public void setDeleteAll( boolean deleteAll )
256 {
257 this.deleteAll = deleteAll;
258 }
259
260
261
262
263
264
265 public void setDescription( String description )
266 {
267 this.description = description;
268 }
269
270
271
272
273
274
275 public void setEnabled( boolean enabled )
276 {
277 this.enabled = enabled;
278 }
279
280
281
282
283
284
285 public void setId( int id )
286 {
287 this.id = id;
288 }
289
290
291
292
293
294
295
296 public void setRetentionCount( int retentionCount )
297 {
298 this.retentionCount = retentionCount;
299 }
300
301
302
303
304
305
306 public void setSchedule( Schedule schedule )
307 {
308 this.schedule = schedule;
309 }
310
311
312
313
314
315
316 public java.lang.String toString()
317 {
318 StringBuilder buf = new StringBuilder( 128 );
319
320 buf.append( "id = '" );
321 buf.append( getId() );
322 buf.append( "'" );
323
324 return buf.toString();
325 }
326
327 }