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