View Javadoc

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