1 package org.apache.archiva.configuration;
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements. See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership. The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the
9 * "License"); you may not use this file except in compliance
10 * with the License. You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing,
15 * software distributed under the License is distributed on an
16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 * KIND, either express or implied. See the License for the
18 * specific language governing permissions and limitations
23 * Class RepositoryGroupConfiguration.
25 * @version $Revision$ $Date$
27 @SuppressWarnings( "all" )
28 public class RepositoryGroupConfiguration
29 implements java.io.Serializable
32 //--------------------------/
33 //- Class/Member Variables -/
34 //--------------------------/
37 * The id of the repository group.
42 * The path of the merged index.
44 private String mergedIndexPath = ".indexer";
47 * The time to live of the merged index of the repository group.
49 private int mergedIndexTtl = 30;
53 * When to run the index merging for this group.
57 private String cronExpression = "";
62 private java.util.List<String> repositories;
70 * Method addRepository.
74 public void addRepository( String string )
76 getRepositories().add( string );
77 } //-- void addRepository( String )
80 * Get when to run the index merging for this group.
85 public String getCronExpression()
87 return this.cronExpression;
88 } //-- String getCronExpression()
91 * Get the id of the repository group.
101 * Get the path of the merged index.
105 public String getMergedIndexPath()
107 return this.mergedIndexPath;
108 } //-- String getMergedIndexPath()
111 * Get the time to live of the merged index of the repository
116 public int getMergedIndexTtl()
118 return this.mergedIndexTtl;
119 } //-- int getMergedIndexTtl()
122 * Method getRepositories.
126 public java.util.List<String> getRepositories()
128 if ( this.repositories == null )
130 this.repositories = new java.util.ArrayList<String>();
133 return this.repositories;
134 } //-- java.util.List<String> getRepositories()
137 * Method removeRepository.
141 public void removeRepository( String string )
143 getRepositories().remove( string );
144 } //-- void removeRepository( String )
147 * Set when to run the index merging for this group.
150 * @param cronExpression
152 public void setCronExpression( String cronExpression )
154 this.cronExpression = cronExpression;
155 } //-- void setCronExpression( String )
158 * Set the id of the repository group.
162 public void setId( String id )
165 } //-- void setId( String )
168 * Set the path of the merged index.
170 * @param mergedIndexPath
172 public void setMergedIndexPath( String mergedIndexPath )
174 this.mergedIndexPath = mergedIndexPath;
175 } //-- void setMergedIndexPath( String )
178 * Set the time to live of the merged index of the repository
181 * @param mergedIndexTtl
183 public void setMergedIndexTtl( int mergedIndexTtl )
185 this.mergedIndexTtl = mergedIndexTtl;
186 } //-- void setMergedIndexTtl( int )
189 * Set the list of repository ids under the group.
191 * @param repositories
193 public void setRepositories( java.util.List<String> repositories )
195 this.repositories = repositories;
196 } //-- void setRepositories( java.util.List )