This project has retired. For details please refer to its Attic page.
ManagedRepositoryConfiguration xref
View Javadoc
1   // =================== DO NOT EDIT THIS FILE ====================
2   // Generated by Modello 1.7,
3   // any modifications will be overwritten.
4   // ==============================================================
5   
6   package org.apache.archiva.configuration;
7   
8   /**
9    * Class ManagedRepositoryConfiguration.
10   * 
11   * @version $Revision$ $Date$
12   */
13  @SuppressWarnings( "all" )
14  public class ManagedRepositoryConfiguration
15      extends AbstractRepositoryConfiguration
16      implements java.io.Serializable
17  {
18  
19        //--------------------------/
20       //- Class/Member Variables -/
21      //--------------------------/
22  
23      /**
24       * 
25       *             The file system location for this repository.
26       *           
27       */
28      private String location;
29  
30      /**
31       * True if this repository contains release versioned artifacts.
32       */
33      private boolean releases = true;
34  
35      /**
36       * True if re-deployment of artifacts already in the repository
37       * will be blocked.
38       */
39      private boolean blockRedeployments = false;
40  
41      /**
42       * True if this repository contains snapshot versioned artifacts
43       */
44      private boolean snapshots = false;
45  
46      /**
47       * True if this repository should be scanned and processed.
48       */
49      private boolean scanned = true;
50  
51      /**
52       * 
53       *             When to run the refresh task.
54       *             Default is every hour
55       *           .
56       */
57      private String refreshCronExpression = "0 0 * * * ?";
58  
59      /**
60       * 
61       *             The total count of the artifact to be retained
62       * for each snapshot.
63       *           
64       */
65      private int retentionCount = 2;
66  
67      /**
68       * 
69       *             The number of days old which will be the basis
70       * for removing a snapshot.
71       *           
72       */
73      private int daysOlder = 100;
74  
75      /**
76       * 
77       *             True if the released snapshots are to be removed
78       * from the repo during repository purge.
79       *           
80       */
81      private boolean deleteReleasedSnapshots = false;
82  
83      /**
84       * 
85       *             True to not generate packed index (note you
86       * won't be able to export your index.
87       *           
88       */
89      private boolean skipPackedIndexCreation = false;
90  
91      /**
92       * 
93       *             Need a staging repository
94       *           .
95       */
96      private boolean stageRepoNeeded = false;
97  
98  
99        //-----------/
100      //- Methods -/
101     //-----------/
102 
103     /**
104      * Get the number of days old which will be the basis for
105      * removing a snapshot.
106      * 
107      * @return int
108      */
109     public int getDaysOlder()
110     {
111         return this.daysOlder;
112     } //-- int getDaysOlder()
113 
114     /**
115      * Get the file system location for this repository.
116      * 
117      * @return String
118      */
119     public String getLocation()
120     {
121         return this.location;
122     } //-- String getLocation()
123 
124     /**
125      * Get when to run the refresh task.
126      *             Default is every hour.
127      * 
128      * @return String
129      */
130     public String getRefreshCronExpression()
131     {
132         return this.refreshCronExpression;
133     } //-- String getRefreshCronExpression()
134 
135     /**
136      * Get the total count of the artifact to be retained for each
137      * snapshot.
138      * 
139      * @return int
140      */
141     public int getRetentionCount()
142     {
143         return this.retentionCount;
144     } //-- int getRetentionCount()
145 
146     /**
147      * Get true if re-deployment of artifacts already in the
148      * repository will be blocked.
149      * 
150      * @return boolean
151      */
152     public boolean isBlockRedeployments()
153     {
154         return this.blockRedeployments;
155     } //-- boolean isBlockRedeployments()
156 
157     /**
158      * Get true if the released snapshots are to be removed from
159      * the repo during repository purge.
160      * 
161      * @return boolean
162      */
163     public boolean isDeleteReleasedSnapshots()
164     {
165         return this.deleteReleasedSnapshots;
166     } //-- boolean isDeleteReleasedSnapshots()
167 
168     /**
169      * Get true if this repository contains release versioned
170      * artifacts.
171      * 
172      * @return boolean
173      */
174     public boolean isReleases()
175     {
176         return this.releases;
177     } //-- boolean isReleases()
178 
179     /**
180      * Get true if this repository should be scanned and processed.
181      * 
182      * @return boolean
183      */
184     public boolean isScanned()
185     {
186         return this.scanned;
187     } //-- boolean isScanned()
188 
189     /**
190      * Get true to not generate packed index (note you won't be
191      * able to export your index.
192      * 
193      * @return boolean
194      */
195     public boolean isSkipPackedIndexCreation()
196     {
197         return this.skipPackedIndexCreation;
198     } //-- boolean isSkipPackedIndexCreation()
199 
200     /**
201      * Get true if this repository contains snapshot versioned
202      * artifacts.
203      * 
204      * @return boolean
205      */
206     public boolean isSnapshots()
207     {
208         return this.snapshots;
209     } //-- boolean isSnapshots()
210 
211     /**
212      * Get need a staging repository.
213      * 
214      * @return boolean
215      */
216     public boolean isStageRepoNeeded()
217     {
218         return this.stageRepoNeeded;
219     } //-- boolean isStageRepoNeeded()
220 
221     /**
222      * Set true if re-deployment of artifacts already in the
223      * repository will be blocked.
224      * 
225      * @param blockRedeployments
226      */
227     public void setBlockRedeployments( boolean blockRedeployments )
228     {
229         this.blockRedeployments = blockRedeployments;
230     } //-- void setBlockRedeployments( boolean )
231 
232     /**
233      * Set the number of days old which will be the basis for
234      * removing a snapshot.
235      * 
236      * @param daysOlder
237      */
238     public void setDaysOlder( int daysOlder )
239     {
240         this.daysOlder = daysOlder;
241     } //-- void setDaysOlder( int )
242 
243     /**
244      * Set true if the released snapshots are to be removed from
245      * the repo during repository purge.
246      * 
247      * @param deleteReleasedSnapshots
248      */
249     public void setDeleteReleasedSnapshots( boolean deleteReleasedSnapshots )
250     {
251         this.deleteReleasedSnapshots = deleteReleasedSnapshots;
252     } //-- void setDeleteReleasedSnapshots( boolean )
253 
254     /**
255      * Set the file system location for this repository.
256      * 
257      * @param location
258      */
259     public void setLocation( String location )
260     {
261         this.location = location;
262     } //-- void setLocation( String )
263 
264     /**
265      * Set when to run the refresh task.
266      *             Default is every hour.
267      * 
268      * @param refreshCronExpression
269      */
270     public void setRefreshCronExpression( String refreshCronExpression )
271     {
272         this.refreshCronExpression = refreshCronExpression;
273     } //-- void setRefreshCronExpression( String )
274 
275     /**
276      * Set true if this repository contains release versioned
277      * artifacts.
278      * 
279      * @param releases
280      */
281     public void setReleases( boolean releases )
282     {
283         this.releases = releases;
284     } //-- void setReleases( boolean )
285 
286     /**
287      * Set the total count of the artifact to be retained for each
288      * snapshot.
289      * 
290      * @param retentionCount
291      */
292     public void setRetentionCount( int retentionCount )
293     {
294         this.retentionCount = retentionCount;
295     } //-- void setRetentionCount( int )
296 
297     /**
298      * Set true if this repository should be scanned and processed.
299      * 
300      * @param scanned
301      */
302     public void setScanned( boolean scanned )
303     {
304         this.scanned = scanned;
305     } //-- void setScanned( boolean )
306 
307     /**
308      * Set true to not generate packed index (note you won't be
309      * able to export your index.
310      * 
311      * @param skipPackedIndexCreation
312      */
313     public void setSkipPackedIndexCreation( boolean skipPackedIndexCreation )
314     {
315         this.skipPackedIndexCreation = skipPackedIndexCreation;
316     } //-- void setSkipPackedIndexCreation( boolean )
317 
318     /**
319      * Set true if this repository contains snapshot versioned
320      * artifacts.
321      * 
322      * @param snapshots
323      */
324     public void setSnapshots( boolean snapshots )
325     {
326         this.snapshots = snapshots;
327     } //-- void setSnapshots( boolean )
328 
329     /**
330      * Set need a staging repository.
331      * 
332      * @param stageRepoNeeded
333      */
334     public void setStageRepoNeeded( boolean stageRepoNeeded )
335     {
336         this.stageRepoNeeded = stageRepoNeeded;
337     } //-- void setStageRepoNeeded( boolean )
338 
339 }