001// =================== DO NOT EDIT THIS FILE ==================== 002// Generated by Modello 1.7, 003// any modifications will be overwritten. 004// ============================================================== 005 006package org.apache.archiva.configuration; 007 008/** 009 * Class ManagedRepositoryConfiguration. 010 * 011 * @version $Revision$ $Date$ 012 */ 013@SuppressWarnings( "all" ) 014public class ManagedRepositoryConfiguration 015 extends AbstractRepositoryConfiguration 016 implements java.io.Serializable 017{ 018 019 //--------------------------/ 020 //- Class/Member Variables -/ 021 //--------------------------/ 022 023 /** 024 * 025 * The file system location for this repository. 026 * 027 */ 028 private String location; 029 030 /** 031 * True if this repository contains release versioned artifacts. 032 */ 033 private boolean releases = true; 034 035 /** 036 * True if re-deployment of artifacts already in the repository 037 * will be blocked. 038 */ 039 private boolean blockRedeployments = false; 040 041 /** 042 * True if this repository contains snapshot versioned artifacts 043 */ 044 private boolean snapshots = false; 045 046 /** 047 * True if this repository should be scanned and processed. 048 */ 049 private boolean scanned = true; 050 051 /** 052 * 053 * When to run the refresh task. 054 * Default is every hour 055 * . 056 */ 057 private String refreshCronExpression = "0 0 * * * ?"; 058 059 /** 060 * 061 * The total count of the artifact to be retained 062 * for each snapshot. 063 * 064 */ 065 private int retentionCount = 2; 066 067 /** 068 * 069 * The number of days old which will be the basis 070 * for removing a snapshot. 071 * 072 */ 073 private int daysOlder = 100; 074 075 /** 076 * 077 * True if the released snapshots are to be removed 078 * from the repo during repository purge. 079 * 080 */ 081 private boolean deleteReleasedSnapshots = false; 082 083 /** 084 * 085 * True to not generate packed index (note you 086 * won't be able to export your index. 087 * 088 */ 089 private boolean skipPackedIndexCreation = false; 090 091 /** 092 * 093 * Need a staging repository 094 * . 095 */ 096 private boolean stageRepoNeeded = false; 097 098 099 //-----------/ 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}