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.

ManagedRepository.java 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. package org.apache.archiva.repository;
  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 java.util.Set;
  21. /**
  22. * Represents a managed repository, that is readable and writable.
  23. */
  24. public interface ManagedRepository extends Repository {
  25. /**
  26. * Returns the interface to access the contents of this repository.
  27. *
  28. * @return The repository content.
  29. */
  30. ManagedRepositoryContent getContent();
  31. /**
  32. * Returns true, if repeated deployments of the same artifact with the same version throws exceptions.
  33. * @return
  34. */
  35. boolean blocksRedeployments();
  36. /**
  37. * Returns the release schemes that are active by this repository. E.g. for maven repositories
  38. * this may either be a release repository, a snapshot repository or a combined repository.
  39. * @return
  40. */
  41. Set<ReleaseScheme> getActiveReleaseSchemes();
  42. /**
  43. * Returns the request info object, which you can use for gathering information from the web request path.
  44. * @return Instance of a request info object that corresponds to this repository
  45. */
  46. RepositoryRequestInfo getRequestInfo();
  47. }