001package org.apache.archiva.configuration; 002 003/* 004 * Licensed to the Apache Software Foundation (ASF) under one 005 * or more contributor license agreements. See the NOTICE file 006 * distributed with this work for additional information 007 * regarding copyright ownership. The ASF licenses this file 008 * to you under the Apache License, Version 2.0 (the 009 * "License"); you may not use this file except in compliance 010 * with the License. You may obtain a copy of the License at 011 * 012 * http://www.apache.org/licenses/LICENSE-2.0 013 * 014 * Unless required by applicable law or agreed to in writing, 015 * software distributed under the License is distributed on an 016 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 017 * KIND, either express or implied. See the License for the 018 * specific language governing permissions and limitations 019 * under the License. 020 */ 021 022/** 023 * Class RepositoryScanningConfiguration. 024 * 025 * @version $Revision$ $Date$ 026 */ 027@SuppressWarnings( "all" ) 028public class RepositoryScanningConfiguration 029 implements java.io.Serializable 030{ 031 032 //--------------------------/ 033 //- Class/Member Variables -/ 034 //--------------------------/ 035 036 /** 037 * Field fileTypes. 038 */ 039 private java.util.List<FileType> fileTypes; 040 041 /** 042 * Field knownContentConsumers. 043 */ 044 private java.util.List<String> knownContentConsumers; 045 046 /** 047 * Field invalidContentConsumers. 048 */ 049 private java.util.List<String> invalidContentConsumers; 050 051 052 //-----------/ 053 //- Methods -/ 054 //-----------/ 055 056 /** 057 * Method addFileType. 058 * 059 * @param fileType 060 */ 061 public void addFileType( FileType fileType ) 062 { 063 getFileTypes().add( fileType ); 064 } //-- void addFileType( FileType ) 065 066 /** 067 * Method addInvalidContentConsumer. 068 * 069 * @param string 070 */ 071 public void addInvalidContentConsumer( String string ) 072 { 073 getInvalidContentConsumers().add( string ); 074 } //-- void addInvalidContentConsumer( String ) 075 076 /** 077 * Method addKnownContentConsumer. 078 * 079 * @param string 080 */ 081 public void addKnownContentConsumer( String string ) 082 { 083 getKnownContentConsumers().add( string ); 084 } //-- void addKnownContentConsumer( String ) 085 086 /** 087 * Method getFileTypes. 088 * 089 * @return List 090 */ 091 public java.util.List<FileType> getFileTypes() 092 { 093 if ( this.fileTypes == null ) 094 { 095 this.fileTypes = new java.util.ArrayList<FileType>(); 096 } 097 098 return this.fileTypes; 099 } //-- 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}