1 package org.apache.archiva.admin.model.group;
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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
21 import org.apache.archiva.admin.model.AuditInformation;
22 import org.apache.archiva.admin.model.EntityNotFoundException;
23 import org.apache.archiva.admin.model.RepositoryAdminException;
24 import org.apache.archiva.admin.model.beans.RepositoryGroup;
25 import org.apache.archiva.repository.storage.StorageAsset;
27 import java.util.List;
31 * @author Olivier Lamy
34 public interface RepositoryGroupAdmin
36 List<RepositoryGroup> getRepositoriesGroups()
37 throws RepositoryAdminException;
40 * Returns the repository group. If it is not found a {@link org.apache.archiva.admin.model.EntityNotFoundException}
43 * @param repositoryGroupId the identifier of the repository group
44 * @return the repository group object
45 * @throws RepositoryAdminException
46 * @throws EntityNotFoundException
48 RepositoryGroup getRepositoryGroup( String repositoryGroupId )
49 throws RepositoryAdminException, EntityNotFoundException;
51 Boolean addRepositoryGroup( RepositoryGroup repositoryGroup, AuditInformation auditInformation )
52 throws RepositoryAdminException;
54 Boolean updateRepositoryGroup( RepositoryGroup repositoryGroup, AuditInformation auditInformation )
55 throws RepositoryAdminException;
57 Boolean deleteRepositoryGroup( String repositoryGroupId, AuditInformation auditInformation )
58 throws RepositoryAdminException;
60 Boolean addRepositoryToGroup( String repositoryGroupId, String repositoryId, AuditInformation auditInformation )
61 throws RepositoryAdminException;
63 Boolean deleteRepositoryFromGroup( String repositoryGroupId, String repositoryId,
64 AuditInformation auditInformation )
65 throws RepositoryAdminException;
68 * @return Map with key repoGroupId and value repoGroup
69 * @throws RepositoryAdminException
71 Map<String, RepositoryGroup> getRepositoryGroupsAsMap()
72 throws RepositoryAdminException;
75 * @return Map with key repoGroupId and value List of ManagedRepositories
76 * @throws RepositoryAdminException
78 Map<String, List<String>> getGroupToRepositoryMap()
79 throws RepositoryAdminException;
82 * @return Map with key managedRepo id and value List of repositoryGroup ids where the repo is
83 * @throws RepositoryAdminException
85 Map<String, List<String>> getRepositoryToGroupMap()
86 throws RepositoryAdminException;
88 StorageAsset getMergedIndexDirectory(String repositoryGroupId );