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 RepositoryGroupConfiguration. 10 * 11 * @version $Revision$ $Date$ 12 */ 13 @SuppressWarnings( "all" ) 14 public class RepositoryGroupConfiguration 15 implements java.io.Serializable 16 { 17 18 //--------------------------/ 19 //- Class/Member Variables -/ 20 //--------------------------/ 21 22 /** 23 * The id of the repository group. 24 */ 25 private String id; 26 27 /** 28 * The path of the merged index. 29 */ 30 private String mergedIndexPath = "/.indexer"; 31 32 /** 33 * The time to live of the merged index of the repository group. 34 */ 35 private int mergedIndexTtl = 30; 36 37 /** 38 * 39 * When to run the index merging for this group. 40 * No default value. 41 * 42 */ 43 private String cronExpression = ""; 44 45 /** 46 * Field repositories. 47 */ 48 private java.util.List<String> repositories; 49 50 51 //-----------/ 52 //- Methods -/ 53 //-----------/ 54 55 /** 56 * Method addRepository. 57 * 58 * @param string 59 */ 60 public void addRepository( String string ) 61 { 62 getRepositories().add( string ); 63 } //-- void addRepository( String ) 64 65 /** 66 * Get when to run the index merging for this group. 67 * No default value. 68 * 69 * @return String 70 */ 71 public String getCronExpression() 72 { 73 return this.cronExpression; 74 } //-- String getCronExpression() 75 76 /** 77 * Get the id of the repository group. 78 * 79 * @return String 80 */ 81 public String getId() 82 { 83 return this.id; 84 } //-- String getId() 85 86 /** 87 * Get the path of the merged index. 88 * 89 * @return String 90 */ 91 public String getMergedIndexPath() 92 { 93 return this.mergedIndexPath; 94 } //-- String getMergedIndexPath() 95 96 /** 97 * Get the time to live of the merged index of the repository 98 * group. 99 * 100 * @return int 101 */ 102 public int getMergedIndexTtl() 103 { 104 return this.mergedIndexTtl; 105 } //-- int getMergedIndexTtl() 106 107 /** 108 * Method getRepositories. 109 * 110 * @return List 111 */ 112 public java.util.List<String> getRepositories() 113 { 114 if ( this.repositories == null ) 115 { 116 this.repositories = new java.util.ArrayList<String>(); 117 } 118 119 return this.repositories; 120 } //-- java.util.List<String> getRepositories() 121 122 /** 123 * Method removeRepository. 124 * 125 * @param string 126 */ 127 public void removeRepository( String string ) 128 { 129 getRepositories().remove( string ); 130 } //-- void removeRepository( String ) 131 132 /** 133 * Set when to run the index merging for this group. 134 * No default value. 135 * 136 * @param cronExpression 137 */ 138 public void setCronExpression( String cronExpression ) 139 { 140 this.cronExpression = cronExpression; 141 } //-- void setCronExpression( String ) 142 143 /** 144 * Set the id of the repository group. 145 * 146 * @param id 147 */ 148 public void setId( String id ) 149 { 150 this.id = id; 151 } //-- void setId( String ) 152 153 /** 154 * Set the path of the merged index. 155 * 156 * @param mergedIndexPath 157 */ 158 public void setMergedIndexPath( String mergedIndexPath ) 159 { 160 this.mergedIndexPath = mergedIndexPath; 161 } //-- void setMergedIndexPath( String ) 162 163 /** 164 * Set the time to live of the merged index of the repository 165 * group. 166 * 167 * @param mergedIndexTtl 168 */ 169 public void setMergedIndexTtl( int mergedIndexTtl ) 170 { 171 this.mergedIndexTtl = mergedIndexTtl; 172 } //-- void setMergedIndexTtl( int ) 173 174 /** 175 * Set the list of repository ids under the group. 176 * 177 * @param repositories 178 */ 179 public void setRepositories( java.util.List<String> repositories ) 180 { 181 this.repositories = repositories; 182 } //-- void setRepositories( java.util.List ) 183 184 }