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 * Class RepositoryScanningConfiguration.
24 *
25 * @version $Revision$ $Date$
26 */
27 @SuppressWarnings( "all" )
28 public class RepositoryScanningConfiguration
29 implements java.io.Serializable
30 {
31
32 //--------------------------/
33 //- Class/Member Variables -/
34 //--------------------------/
35
36 /**
37 * Field fileTypes.
38 */
39 private java.util.List<FileType> fileTypes;
40
41 /**
42 * Field knownContentConsumers.
43 */
44 private java.util.List<String> knownContentConsumers;
45
46 /**
47 * Field invalidContentConsumers.
48 */
49 private java.util.List<String> invalidContentConsumers;
50
51
52 //-----------/
53 //- Methods -/
54 //-----------/
55
56 /**
57 * Method addFileType.
58 *
59 * @param fileType
60 */
61 public void addFileType( FileType fileType )
62 {
63 getFileTypes().add( fileType );
64 } //-- void addFileType( FileType )
65
66 /**
67 * Method addInvalidContentConsumer.
68 *
69 * @param string
70 */
71 public void addInvalidContentConsumer( String string )
72 {
73 getInvalidContentConsumers().add( string );
74 } //-- void addInvalidContentConsumer( String )
75
76 /**
77 * Method addKnownContentConsumer.
78 *
79 * @param string
80 */
81 public void addKnownContentConsumer( String string )
82 {
83 getKnownContentConsumers().add( string );
84 } //-- void addKnownContentConsumer( String )
85
86 /**
87 * Method getFileTypes.
88 *
89 * @return List
90 */
91 public java.util.List<FileType> getFileTypes()
92 {
93 if ( this.fileTypes == null )
94 {
95 this.fileTypes = new java.util.ArrayList<FileType>();
96 }
97
98 return this.fileTypes;
99 } //-- java.util.List<FileType> getFileTypes()
100
101 /**
102 * Method getInvalidContentConsumers.
103 *
104 * @return List
105 */
106 public java.util.List<String> getInvalidContentConsumers()
107 {
108 if ( this.invalidContentConsumers == null )
109 {
110 this.invalidContentConsumers = new java.util.ArrayList<String>();
111 }
112
113 return this.invalidContentConsumers;
114 } //-- java.util.List<String> getInvalidContentConsumers()
115
116 /**
117 * Method getKnownContentConsumers.
118 *
119 * @return List
120 */
121 public java.util.List<String> getKnownContentConsumers()
122 {
123 if ( this.knownContentConsumers == null )
124 {
125 this.knownContentConsumers = new java.util.ArrayList<String>();
126 }
127
128 return this.knownContentConsumers;
129 } //-- java.util.List<String> getKnownContentConsumers()
130
131 /**
132 * Method removeFileType.
133 *
134 * @param fileType
135 */
136 public void removeFileType( FileType fileType )
137 {
138 getFileTypes().remove( fileType );
139 } //-- void removeFileType( FileType )
140
141 /**
142 * Method removeInvalidContentConsumer.
143 *
144 * @param string
145 */
146 public void removeInvalidContentConsumer( String string )
147 {
148 getInvalidContentConsumers().remove( string );
149 } //-- void removeInvalidContentConsumer( String )
150
151 /**
152 * Method removeKnownContentConsumer.
153 *
154 * @param string
155 */
156 public void removeKnownContentConsumer( String string )
157 {
158 getKnownContentConsumers().remove( string );
159 } //-- void removeKnownContentConsumer( String )
160
161 /**
162 * Set the FileTypes for the repository scanning configuration.
163 *
164 * @param fileTypes
165 */
166 public void setFileTypes( java.util.List<FileType> fileTypes )
167 {
168 this.fileTypes = fileTypes;
169 } //-- void setFileTypes( java.util.List )
170
171 /**
172 * Set the list of active consumer IDs for invalid content.
173 *
174 * @param invalidContentConsumers
175 */
176 public void setInvalidContentConsumers( java.util.List<String> invalidContentConsumers )
177 {
178 this.invalidContentConsumers = invalidContentConsumers;
179 } //-- void setInvalidContentConsumers( java.util.List )
180
181 /**
182 * Set the list of active consumers IDs for known content.
183 *
184 * @param knownContentConsumers
185 */
186 public void setKnownContentConsumers( java.util.List<String> knownContentConsumers )
187 {
188 this.knownContentConsumers = knownContentConsumers;
189 } //-- void setKnownContentConsumers( java.util.List )
190
191 }