1
2
3
4
5
6
7
8 package org.apache.maven.continuum.xmlrpc.project;
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.scm.ChangeFile;
20 import org.apache.maven.continuum.xmlrpc.scm.ChangeSet;
21 import org.apache.maven.continuum.xmlrpc.scm.ScmResult;
22 import org.apache.maven.continuum.xmlrpc.system.Installation;
23 import org.apache.maven.continuum.xmlrpc.system.Profile;
24 import org.apache.maven.continuum.xmlrpc.system.SystemConfiguration;
25
26
27
28
29
30
31
32
33 @SuppressWarnings( "all" )
34 public class Schedule
35 implements java.io.Serializable
36 {
37
38
39
40
41
42
43
44
45 private int id = 0;
46
47
48
49
50 private boolean active = false;
51
52
53
54
55 private String name;
56
57
58
59
60 private String description;
61
62
63
64
65
66
67 private int delay = 0;
68
69
70
71
72
73
74
75
76 private int maxJobExecutionTime = 3600;
77
78
79
80
81 private String cronExpression;
82
83
84
85
86
87
88
89
90
91
92
93
94 public boolean equals( Object other )
95 {
96 if ( this == other )
97 {
98 return true;
99 }
100
101 if ( !( other instanceof Schedule ) )
102 {
103 return false;
104 }
105
106 Schedule that = (Schedule) other;
107 boolean result = true;
108
109 result = result && id == that.id;
110
111 return result;
112 }
113
114
115
116
117
118
119 public String getCronExpression()
120 {
121 return this.cronExpression;
122 }
123
124
125
126
127
128
129 public int getDelay()
130 {
131 return this.delay;
132 }
133
134
135
136
137
138
139 public String getDescription()
140 {
141 return this.description;
142 }
143
144
145
146
147
148
149 public int getId()
150 {
151 return this.id;
152 }
153
154
155
156
157
158
159
160 public int getMaxJobExecutionTime()
161 {
162 return this.maxJobExecutionTime;
163 }
164
165
166
167
168
169
170 public String getName()
171 {
172 return this.name;
173 }
174
175
176
177
178
179
180 public int hashCode()
181 {
182 int result = 17;
183
184 result = 37 * result + (int) id;
185
186 return result;
187 }
188
189
190
191
192
193
194 public boolean isActive()
195 {
196 return this.active;
197 }
198
199
200
201
202
203
204 public void setActive( boolean active )
205 {
206 this.active = active;
207 }
208
209
210
211
212
213
214 public void setCronExpression( String cronExpression )
215 {
216 this.cronExpression = cronExpression;
217 }
218
219
220
221
222
223
224 public void setDelay( int delay )
225 {
226 this.delay = delay;
227 }
228
229
230
231
232
233
234 public void setDescription( String description )
235 {
236 this.description = description;
237 }
238
239
240
241
242
243
244 public void setId( int id )
245 {
246 this.id = id;
247 }
248
249
250
251
252
253
254
255 public void setMaxJobExecutionTime( int maxJobExecutionTime )
256 {
257 this.maxJobExecutionTime = maxJobExecutionTime;
258 }
259
260
261
262
263
264
265 public void setName( String name )
266 {
267 this.name = name;
268 }
269
270
271
272
273
274
275 public java.lang.String toString()
276 {
277 StringBuilder buf = new StringBuilder( 128 );
278
279 buf.append( "id = '" );
280 buf.append( getId() );
281 buf.append( "'" );
282
283 return buf.toString();
284 }
285
286 }