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