1 package org.apache.archiva.configuration;
2
3 /*
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
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
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
19 * under the License.
20 */
21
22 /**
23 *
24 * Archiva default settings.
25 *
26 *
27 * @version $Revision$ $Date$
28 */
29 @SuppressWarnings( "all" )
30 public class ArchivaDefaultConfiguration
31 implements java.io.Serializable
32 {
33
34 //--------------------------/
35 //- Class/Member Variables -/
36 //--------------------------/
37
38 /**
39 * Field defaultCheckPaths.
40 */
41 private java.util.List<RepositoryCheckPath> defaultCheckPaths;
42
43
44 //-----------/
45 //- Methods -/
46 //-----------/
47
48 /**
49 * Method addDefaultCheckPath.
50 *
51 * @param repositoryCheckPath
52 */
53 public void addDefaultCheckPath( RepositoryCheckPath repositoryCheckPath )
54 {
55 getDefaultCheckPaths().add( repositoryCheckPath );
56 } //-- void addDefaultCheckPath( RepositoryCheckPath )
57
58 /**
59 * Method getDefaultCheckPaths.
60 *
61 * @return List
62 */
63 public java.util.List<RepositoryCheckPath> getDefaultCheckPaths()
64 {
65 if ( this.defaultCheckPaths == null )
66 {
67 this.defaultCheckPaths = new java.util.ArrayList<RepositoryCheckPath>();
68 }
69
70 return this.defaultCheckPaths;
71 } //-- java.util.List<RepositoryCheckPath> getDefaultCheckPaths()
72
73 /**
74 * Method removeDefaultCheckPath.
75 *
76 * @param repositoryCheckPath
77 */
78 public void removeDefaultCheckPath( RepositoryCheckPath repositoryCheckPath )
79 {
80 getDefaultCheckPaths().remove( repositoryCheckPath );
81 } //-- void removeDefaultCheckPath( RepositoryCheckPath )
82
83 /**
84 * Set the default check paths for certain remote repositories.
85 *
86 * @param defaultCheckPaths
87 */
88 public void setDefaultCheckPaths( java.util.List<RepositoryCheckPath> defaultCheckPaths )
89 {
90 this.defaultCheckPaths = defaultCheckPaths;
91 } //-- void setDefaultCheckPaths( java.util.List )
92
93 }