View Javadoc

1   /*
2    =================== DO NOT EDIT THIS FILE ====================
3    Generated by Modello 1.1 on 2011-09-18 11:22:14,
4    any modifications will be overwritten.
5    ==============================================================
6    */
7   
8   package org.apache.continuum.xmlrpc.repository;
9   
10    //---------------------------------/
11   //- Imported classes and packages -/
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   * Class AbstractPurgeConfiguration.
39   * 
40   * @version $Revision$ $Date$
41   */
42  @SuppressWarnings( "all" )
43  public class AbstractPurgeConfiguration
44      implements java.io.Serializable
45  {
46  
47        //--------------------------/
48       //- Class/Member Variables -/
49      //--------------------------/
50  
51      /**
52       * Field id.
53       */
54      private int id = 0;
55  
56      /**
57       * Field description.
58       */
59      private String description;
60  
61      /**
62       * Field deleteAll.
63       */
64      private boolean deleteAll = false;
65  
66      /**
67       * 
68       *           The total count of the artifact for each snapshot
69       * or the release/build output folder to be retained.
70       *           
71       */
72      private int retentionCount = 2;
73  
74      /**
75       * 
76       *           The number of days old which will be the basis for
77       * removing a snapshot or a folder.
78       *           
79       */
80      private int daysOlder = 100;
81  
82      /**
83       * Field enabled.
84       */
85      private boolean enabled = true;
86  
87      /**
88       * Field schedule.
89       */
90      private Schedule schedule;
91  
92      /**
93       * Field defaultPurge.
94       */
95      private boolean defaultPurge = false;
96  
97  
98        //-----------/
99       //- Methods -/
100     //-----------/
101 
102     /**
103      * Method equals.
104      * 
105      * @param other
106      * @return boolean
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     } //-- boolean equals( Object )
127 
128     /**
129      * Get the number of days old which will be the basis for
130      * removing a snapshot or a folder.
131      * 
132      * @return int
133      */
134     public int getDaysOlder()
135     {
136         return this.daysOlder;
137     } //-- int getDaysOlder()
138 
139     /**
140      * Get the description field.
141      * 
142      * @return String
143      */
144     public String getDescription()
145     {
146         return this.description;
147     } //-- String getDescription()
148 
149     /**
150      * Get the id field.
151      * 
152      * @return int
153      */
154     public int getId()
155     {
156         return this.id;
157     } //-- int getId()
158 
159     /**
160      * Get the total count of the artifact for each snapshot or the
161      * release/build output folder to be retained.
162      * 
163      * @return int
164      */
165     public int getRetentionCount()
166     {
167         return this.retentionCount;
168     } //-- int getRetentionCount()
169 
170     /**
171      * Get the schedule field.
172      * 
173      * @return Schedule
174      */
175     public Schedule getSchedule()
176     {
177         return this.schedule;
178     } //-- Schedule getSchedule()
179 
180     /**
181      * Method hashCode.
182      * 
183      * @return int
184      */
185     public int hashCode()
186     {
187         int result = 17;
188 
189         result = 37 * result + (int) id;
190 
191         return result;
192     } //-- int hashCode()
193 
194     /**
195      * Get the defaultPurge field.
196      * 
197      * @return boolean
198      */
199     public boolean isDefaultPurge()
200     {
201         return this.defaultPurge;
202     } //-- boolean isDefaultPurge()
203 
204     /**
205      * Get the deleteAll field.
206      * 
207      * @return boolean
208      */
209     public boolean isDeleteAll()
210     {
211         return this.deleteAll;
212     } //-- boolean isDeleteAll()
213 
214     /**
215      * Get the enabled field.
216      * 
217      * @return boolean
218      */
219     public boolean isEnabled()
220     {
221         return this.enabled;
222     } //-- boolean isEnabled()
223 
224     /**
225      * Set the number of days old which will be the basis for
226      * removing a snapshot or a folder.
227      * 
228      * @param daysOlder
229      */
230     public void setDaysOlder( int daysOlder )
231     {
232         this.daysOlder = daysOlder;
233     } //-- void setDaysOlder( int )
234 
235     /**
236      * Set the defaultPurge field.
237      * 
238      * @param defaultPurge
239      */
240     public void setDefaultPurge( boolean defaultPurge )
241     {
242         this.defaultPurge = defaultPurge;
243     } //-- void setDefaultPurge( boolean )
244 
245     /**
246      * Set the deleteAll field.
247      * 
248      * @param deleteAll
249      */
250     public void setDeleteAll( boolean deleteAll )
251     {
252         this.deleteAll = deleteAll;
253     } //-- void setDeleteAll( boolean )
254 
255     /**
256      * Set the description field.
257      * 
258      * @param description
259      */
260     public void setDescription( String description )
261     {
262         this.description = description;
263     } //-- void setDescription( String )
264 
265     /**
266      * Set the enabled field.
267      * 
268      * @param enabled
269      */
270     public void setEnabled( boolean enabled )
271     {
272         this.enabled = enabled;
273     } //-- void setEnabled( boolean )
274 
275     /**
276      * Set the id field.
277      * 
278      * @param id
279      */
280     public void setId( int id )
281     {
282         this.id = id;
283     } //-- void setId( int )
284 
285     /**
286      * Set the total count of the artifact for each snapshot or the
287      * release/build output folder to be retained.
288      * 
289      * @param retentionCount
290      */
291     public void setRetentionCount( int retentionCount )
292     {
293         this.retentionCount = retentionCount;
294     } //-- void setRetentionCount( int )
295 
296     /**
297      * Set the schedule field.
298      * 
299      * @param schedule
300      */
301     public void setSchedule( Schedule schedule )
302     {
303         this.schedule = schedule;
304     } //-- void setSchedule( Schedule )
305 
306     /**
307      * Method toString.
308      * 
309      * @return String
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     } //-- java.lang.String toString()
321 
322 }