You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

RepositoryScanningConfiguration.java 5.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. package org.apache.archiva.configuration;
  2. /*
  3. * Licensed to the Apache Software Foundation (ASF) under one
  4. * or more contributor license agreements. See the NOTICE file
  5. * distributed with this work for additional information
  6. * regarding copyright ownership. The ASF licenses this file
  7. * to you under the Apache License, Version 2.0 (the
  8. * "License"); you may not use this file except in compliance
  9. * with the License. You may obtain a copy of the License at
  10. *
  11. * http://www.apache.org/licenses/LICENSE-2.0
  12. *
  13. * Unless required by applicable law or agreed to in writing,
  14. * software distributed under the License is distributed on an
  15. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  16. * KIND, either express or implied. See the License for the
  17. * specific language governing permissions and limitations
  18. * under the License.
  19. */
  20. /**
  21. * Class RepositoryScanningConfiguration.
  22. *
  23. * @version $Revision$ $Date$
  24. */
  25. @SuppressWarnings( "all" )
  26. public class RepositoryScanningConfiguration
  27. implements java.io.Serializable
  28. {
  29. //--------------------------/
  30. //- Class/Member Variables -/
  31. //--------------------------/
  32. /**
  33. * Field fileTypes.
  34. */
  35. private java.util.List<FileType> fileTypes;
  36. /**
  37. * Field knownContentConsumers.
  38. */
  39. private java.util.List<String> knownContentConsumers;
  40. /**
  41. * Field invalidContentConsumers.
  42. */
  43. private java.util.List<String> invalidContentConsumers;
  44. //-----------/
  45. //- Methods -/
  46. //-----------/
  47. /**
  48. * Method addFileType.
  49. *
  50. * @param fileType
  51. */
  52. public void addFileType( FileType fileType )
  53. {
  54. getFileTypes().add( fileType );
  55. } //-- void addFileType( FileType )
  56. /**
  57. * Method addInvalidContentConsumer.
  58. *
  59. * @param string
  60. */
  61. public void addInvalidContentConsumer( String string )
  62. {
  63. getInvalidContentConsumers().add( string );
  64. } //-- void addInvalidContentConsumer( String )
  65. /**
  66. * Method addKnownContentConsumer.
  67. *
  68. * @param string
  69. */
  70. public void addKnownContentConsumer( String string )
  71. {
  72. getKnownContentConsumers().add( string );
  73. } //-- void addKnownContentConsumer( String )
  74. /**
  75. * Method getFileTypes.
  76. *
  77. * @return List
  78. */
  79. public java.util.List<FileType> getFileTypes()
  80. {
  81. if ( this.fileTypes == null )
  82. {
  83. this.fileTypes = new java.util.ArrayList<FileType>();
  84. }
  85. return this.fileTypes;
  86. } //-- java.util.List<FileType> getFileTypes()
  87. /**
  88. * Method getInvalidContentConsumers.
  89. *
  90. * @return List
  91. */
  92. public java.util.List<String> getInvalidContentConsumers()
  93. {
  94. if ( this.invalidContentConsumers == null )
  95. {
  96. this.invalidContentConsumers = new java.util.ArrayList<String>();
  97. }
  98. return this.invalidContentConsumers;
  99. } //-- java.util.List<String> getInvalidContentConsumers()
  100. /**
  101. * Method getKnownContentConsumers.
  102. *
  103. * @return List
  104. */
  105. public java.util.List<String> getKnownContentConsumers()
  106. {
  107. if ( this.knownContentConsumers == null )
  108. {
  109. this.knownContentConsumers = new java.util.ArrayList<String>();
  110. }
  111. return this.knownContentConsumers;
  112. } //-- java.util.List<String> getKnownContentConsumers()
  113. /**
  114. * Method removeFileType.
  115. *
  116. * @param fileType
  117. */
  118. public void removeFileType( FileType fileType )
  119. {
  120. getFileTypes().remove( fileType );
  121. } //-- void removeFileType( FileType )
  122. /**
  123. * Method removeInvalidContentConsumer.
  124. *
  125. * @param string
  126. */
  127. public void removeInvalidContentConsumer( String string )
  128. {
  129. getInvalidContentConsumers().remove( string );
  130. } //-- void removeInvalidContentConsumer( String )
  131. /**
  132. * Method removeKnownContentConsumer.
  133. *
  134. * @param string
  135. */
  136. public void removeKnownContentConsumer( String string )
  137. {
  138. getKnownContentConsumers().remove( string );
  139. } //-- void removeKnownContentConsumer( String )
  140. /**
  141. * Set the FileTypes for the repository scanning configuration.
  142. *
  143. * @param fileTypes
  144. */
  145. public void setFileTypes( java.util.List<FileType> fileTypes )
  146. {
  147. this.fileTypes = fileTypes;
  148. } //-- void setFileTypes( java.util.List )
  149. /**
  150. * Set the list of active consumer IDs for invalid content.
  151. *
  152. * @param invalidContentConsumers
  153. */
  154. public void setInvalidContentConsumers( java.util.List<String> invalidContentConsumers )
  155. {
  156. this.invalidContentConsumers = invalidContentConsumers;
  157. } //-- void setInvalidContentConsumers( java.util.List )
  158. /**
  159. * Set the list of active consumers IDs for known content.
  160. *
  161. * @param knownContentConsumers
  162. */
  163. public void setKnownContentConsumers( java.util.List<String> knownContentConsumers )
  164. {
  165. this.knownContentConsumers = knownContentConsumers;
  166. } //-- void setKnownContentConsumers( java.util.List )
  167. }