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.

ArchivaDefaultConfiguration.java 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. *
  22. * Archiva default settings.
  23. *
  24. *
  25. * @version $Revision$ $Date$
  26. */
  27. @SuppressWarnings( "all" )
  28. public class ArchivaDefaultConfiguration
  29. implements java.io.Serializable
  30. {
  31. //--------------------------/
  32. //- Class/Member Variables -/
  33. //--------------------------/
  34. /**
  35. * Field defaultCheckPaths.
  36. */
  37. private java.util.List<RepositoryCheckPath> defaultCheckPaths;
  38. //-----------/
  39. //- Methods -/
  40. //-----------/
  41. /**
  42. * Method addDefaultCheckPath.
  43. *
  44. * @param repositoryCheckPath
  45. */
  46. public void addDefaultCheckPath( RepositoryCheckPath repositoryCheckPath )
  47. {
  48. getDefaultCheckPaths().add( repositoryCheckPath );
  49. } //-- void addDefaultCheckPath( RepositoryCheckPath )
  50. /**
  51. * Method getDefaultCheckPaths.
  52. *
  53. * @return List
  54. */
  55. public java.util.List<RepositoryCheckPath> getDefaultCheckPaths()
  56. {
  57. if ( this.defaultCheckPaths == null )
  58. {
  59. this.defaultCheckPaths = new java.util.ArrayList<RepositoryCheckPath>();
  60. }
  61. return this.defaultCheckPaths;
  62. } //-- java.util.List<RepositoryCheckPath> getDefaultCheckPaths()
  63. /**
  64. * Method removeDefaultCheckPath.
  65. *
  66. * @param repositoryCheckPath
  67. */
  68. public void removeDefaultCheckPath( RepositoryCheckPath repositoryCheckPath )
  69. {
  70. getDefaultCheckPaths().remove( repositoryCheckPath );
  71. } //-- void removeDefaultCheckPath( RepositoryCheckPath )
  72. /**
  73. * Set the default check paths for certain remote repositories.
  74. *
  75. * @param defaultCheckPaths
  76. */
  77. public void setDefaultCheckPaths( java.util.List<RepositoryCheckPath> defaultCheckPaths )
  78. {
  79. this.defaultCheckPaths = defaultCheckPaths;
  80. } //-- void setDefaultCheckPaths( java.util.List )
  81. }