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 SyncConnectorConfiguration. 10 * 11 * @version $Revision$ $Date$ 12 */ 13 @SuppressWarnings( "all" ) 14 public class SyncConnectorConfiguration 15 extends AbstractRepositoryConnectorConfiguration 16 implements java.io.Serializable 17 { 18 19 //--------------------------/ 20 //- Class/Member Variables -/ 21 //--------------------------/ 22 23 /** 24 * When to run the sync mechanism. Default is every hour on the 25 * hour. 26 */ 27 private String cronExpression = "0 0 * * * ?"; 28 29 /** 30 * The type of synchronization to use. 31 */ 32 private String method = "rsync"; 33 34 35 //-----------/ 36 //- Methods -/ 37 //-----------/ 38 39 /** 40 * Get when to run the sync mechanism. Default is every hour on 41 * the hour. 42 * 43 * @return String 44 */ 45 public String getCronExpression() 46 { 47 return this.cronExpression; 48 } //-- String getCronExpression() 49 50 /** 51 * Get the type of synchronization to use. 52 * 53 * @return String 54 */ 55 public String getMethod() 56 { 57 return this.method; 58 } //-- String getMethod() 59 60 /** 61 * Set when to run the sync mechanism. Default is every hour on 62 * the hour. 63 * 64 * @param cronExpression 65 */ 66 public void setCronExpression( String cronExpression ) 67 { 68 this.cronExpression = cronExpression; 69 } //-- void setCronExpression( String ) 70 71 /** 72 * Set the type of synchronization to use. 73 * 74 * @param method 75 */ 76 public void setMethod( String method ) 77 { 78 this.method = method; 79 } //-- void setMethod( String ) 80 81 }