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