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.

ArchivaAdministration.java 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. package org.apache.archiva.admin.model.admin;
  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. import org.apache.archiva.admin.model.AuditInformation;
  21. import org.apache.archiva.admin.model.RepositoryAdminException;
  22. import org.apache.archiva.admin.model.beans.FileType;
  23. import org.apache.archiva.admin.model.beans.LegacyArtifactPath;
  24. import org.apache.archiva.admin.model.beans.NetworkConfiguration;
  25. import org.apache.archiva.admin.model.beans.OrganisationInformation;
  26. import org.apache.archiva.admin.model.beans.UiConfiguration;
  27. import java.util.List;
  28. /**
  29. * Base administration interface for Archiva. Provides methods for managing archiva base tasks.
  30. * @author Olivier Lamy
  31. * @since 1.4-M1
  32. */
  33. public interface ArchivaAdministration
  34. {
  35. List<LegacyArtifactPath> getLegacyArtifactPaths()
  36. throws RepositoryAdminException;
  37. void addLegacyArtifactPath( LegacyArtifactPath legacyArtifactPath, AuditInformation auditInformation )
  38. throws RepositoryAdminException;
  39. void deleteLegacyArtifactPath( String path, AuditInformation auditInformation )
  40. throws RepositoryAdminException;
  41. void addFileTypePattern( String fileTypeId, String pattern, AuditInformation auditInformation )
  42. throws RepositoryAdminException;
  43. void removeFileTypePattern( String fileTypeId, String pattern, AuditInformation auditInformation )
  44. throws RepositoryAdminException;
  45. List<FileType> getFileTypes()
  46. throws RepositoryAdminException;
  47. FileType getFileType( String fileTypeId )
  48. throws RepositoryAdminException;
  49. void addFileType( FileType fileType, AuditInformation auditInformation )
  50. throws RepositoryAdminException;
  51. void removeFileType( String fileTypeId, AuditInformation auditInformation )
  52. throws RepositoryAdminException;
  53. void addKnownContentConsumer( String knownContentConsumer, AuditInformation auditInformation )
  54. throws RepositoryAdminException;
  55. void setKnownContentConsumers( List<String> knownContentConsumers, AuditInformation auditInformation )
  56. throws RepositoryAdminException;
  57. List<String> getKnownContentConsumers()
  58. throws RepositoryAdminException;
  59. void removeKnownContentConsumer( String knownContentConsumer, AuditInformation auditInformation )
  60. throws RepositoryAdminException;
  61. void addInvalidContentConsumer( String invalidContentConsumer, AuditInformation auditInformation )
  62. throws RepositoryAdminException;
  63. void setInvalidContentConsumers( List<String> invalidContentConsumers, AuditInformation auditInformation )
  64. throws RepositoryAdminException;
  65. List<String> getInvalidContentConsumers()
  66. throws RepositoryAdminException;
  67. void removeInvalidContentConsumer( String invalidContentConsumer, AuditInformation auditInformation )
  68. throws RepositoryAdminException;
  69. OrganisationInformation getOrganisationInformation()
  70. throws RepositoryAdminException;
  71. void setOrganisationInformation( OrganisationInformation organisationInformation )
  72. throws RepositoryAdminException;
  73. UiConfiguration getUiConfiguration()
  74. throws RepositoryAdminException;
  75. void updateUiConfiguration( UiConfiguration uiConfiguration )
  76. throws RepositoryAdminException;
  77. NetworkConfiguration getNetworkConfiguration()
  78. throws RepositoryAdminException;
  79. void setNetworkConfiguration( NetworkConfiguration networkConfiguration )
  80. throws RepositoryAdminException;
  81. }