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 RepositoryScanningConfiguration.
25 * @version $Revision$ $Date$
27 @SuppressWarnings( "all" )
28 public class RepositoryScanningConfiguration
29 implements java.io.Serializable
32 //--------------------------/
33 //- Class/Member Variables -/
34 //--------------------------/
39 private java.util.List<FileType> fileTypes;
42 * Field knownContentConsumers.
44 private java.util.List<String> knownContentConsumers;
47 * Field invalidContentConsumers.
49 private java.util.List<String> invalidContentConsumers;
61 public void addFileType( FileType fileType )
63 getFileTypes().add( fileType );
64 } //-- void addFileType( FileType )
67 * Method addInvalidContentConsumer.
71 public void addInvalidContentConsumer( String string )
73 getInvalidContentConsumers().add( string );
74 } //-- void addInvalidContentConsumer( String )
77 * Method addKnownContentConsumer.
81 public void addKnownContentConsumer( String string )
83 getKnownContentConsumers().add( string );
84 } //-- void addKnownContentConsumer( String )
87 * Method getFileTypes.
91 public java.util.List<FileType> getFileTypes()
93 if ( this.fileTypes == null )
95 this.fileTypes = new java.util.ArrayList<FileType>();
98 return this.fileTypes;
99 } //-- java.util.List<FileType> getFileTypes()
102 * Method getInvalidContentConsumers.
106 public java.util.List<String> getInvalidContentConsumers()
108 if ( this.invalidContentConsumers == null )
110 this.invalidContentConsumers = new java.util.ArrayList<String>();
113 return this.invalidContentConsumers;
114 } //-- java.util.List<String> getInvalidContentConsumers()
117 * Method getKnownContentConsumers.
121 public java.util.List<String> getKnownContentConsumers()
123 if ( this.knownContentConsumers == null )
125 this.knownContentConsumers = new java.util.ArrayList<String>();
128 return this.knownContentConsumers;
129 } //-- java.util.List<String> getKnownContentConsumers()
132 * Method removeFileType.
136 public void removeFileType( FileType fileType )
138 getFileTypes().remove( fileType );
139 } //-- void removeFileType( FileType )
142 * Method removeInvalidContentConsumer.
146 public void removeInvalidContentConsumer( String string )
148 getInvalidContentConsumers().remove( string );
149 } //-- void removeInvalidContentConsumer( String )
152 * Method removeKnownContentConsumer.
156 public void removeKnownContentConsumer( String string )
158 getKnownContentConsumers().remove( string );
159 } //-- void removeKnownContentConsumer( String )
162 * Set the FileTypes for the repository scanning configuration.
166 public void setFileTypes( java.util.List<FileType> fileTypes )
168 this.fileTypes = fileTypes;
169 } //-- void setFileTypes( java.util.List )
172 * Set the list of active consumer IDs for invalid content.
174 * @param invalidContentConsumers
176 public void setInvalidContentConsumers( java.util.List<String> invalidContentConsumers )
178 this.invalidContentConsumers = invalidContentConsumers;
179 } //-- void setInvalidContentConsumers( java.util.List )
182 * Set the list of active consumers IDs for known content.
184 * @param knownContentConsumers
186 public void setKnownContentConsumers( java.util.List<String> knownContentConsumers )
188 this.knownContentConsumers = knownContentConsumers;
189 } //-- void setKnownContentConsumers( java.util.List )