This project has retired. For details please refer to its Attic page.
EditableManagedRepository xref
View Javadoc
1   package org.apache.archiva.repository;
2   
3   /*
4    * Licensed to the Apache Software Foundation (ASF) under one
5    * or more contributor license agreements.  See the NOTICE file
6    * distributed with this work for additional information
7    * regarding copyright ownership.  The ASF licenses this file
8    * to you under the Apache License, Version 2.0 (the
9    * "License"); you may not use this file except in compliance
10   * with the License.  You may obtain a copy of the License at
11   *
12   *  http://www.apache.org/licenses/LICENSE-2.0
13   *
14   * Unless required by applicable law or agreed to in writing,
15   * software distributed under the License is distributed on an
16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17   * KIND, either express or implied.  See the License for the
18   * specific language governing permissions and limitations
19   * under the License.
20   */
21  
22  /**
23   * The editable part of a managed repository.
24   */
25  public interface EditableManagedRepository extends EditableRepository, ManagedRepository
26  {
27      /**
28       * If true, the repository blocks redeployments of artifacts with the same version.
29       * @param blocksRedeployment The flag for blocking redeployments.
30       */
31      void setBlocksRedeployment(boolean blocksRedeployment);
32  
33      /**
34       * Sets the content
35       * @param content
36       */
37      void setContent(ManagedRepositoryContent content);
38  
39      /**
40       * Adds an active release scheme. Release schemes may be combined.
41       * @param scheme the scheme to add.
42       */
43      void addActiveReleaseScheme(ReleaseScheme scheme);
44  
45      /**
46       * Removes an active release scheme from the set.
47       * @param scheme the scheme to remove.
48       */
49      void removeActiveReleaseScheme(ReleaseScheme scheme);
50  
51      /**
52       * Clears all active release schemes.
53       */
54      void clearActiveReleaseSchemes();
55  
56  }