This project has retired. For details please refer to its Attic page.
Source code
001package org.apache.archiva.repository;
002
003/*
004 * Licensed to the Apache Software Foundation (ASF) under one
005 * or more contributor license agreements.  See the NOTICE file
006 * distributed with this work for additional information
007 * regarding copyright ownership.  The ASF licenses this file
008 * to you under the Apache License, Version 2.0 (the
009 * "License"); you may not use this file except in compliance
010 * with the License.  You may obtain a copy of the License at
011 *
012 *  http://www.apache.org/licenses/LICENSE-2.0
013 *
014 * Unless required by applicable law or agreed to in writing,
015 * software distributed under the License is distributed on an
016 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
017 * KIND, either express or implied.  See the License for the
018 * specific language governing permissions and limitations
019 * under the License.
020 */
021
022
023import java.util.Set;
024
025/**
026 * Represents a managed repository, that is readable and writable.
027 */
028public interface ManagedRepository extends Repository {
029
030    /**
031     * Returns the interface to access the contents of this repository.
032     *
033     * @return The repository content.
034     */
035    ManagedRepositoryContent getContent();
036
037    /**
038     * Returns true, if repeated deployments of the same artifact with the same version throws exceptions.
039     * @return
040     */
041    boolean blocksRedeployments();
042
043    /**
044     * Returns the release schemes that are active by this repository. E.g. for maven repositories
045     * this may either be a release repository, a snapshot repository or a combined repository.
046     * @return
047     */
048    Set<ReleaseScheme> getActiveReleaseSchemes();
049
050
051    /**
052     * Returns the request info object, which you can use for gathering information from the web request path.
053     * @return Instance of a request info object that corresponds to this repository
054     */
055    RepositoryRequestInfo getRequestInfo();
056
057}