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

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