1 package org.apache.archiva.admin.repository.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.AuditInformation;
22 import org.apache.archiva.admin.repository.RepositoryAdminException;
24 import java.util.List;
28 * @author Olivier Lamy
31 public interface RepositoryGroupAdmin
33 List<RepositoryGroup> getRepositoriesGroups()
34 throws RepositoryAdminException;
36 RepositoryGroup getRepositoryGroup( String repositoryGroupId )
37 throws RepositoryAdminException;
39 Boolean addRepositoryGroup( RepositoryGroup repositoryGroup, AuditInformation auditInformation )
40 throws RepositoryAdminException;
42 Boolean updateRepositoryGroup( RepositoryGroup repositoryGroup, AuditInformation auditInformation )
43 throws RepositoryAdminException;
45 Boolean deleteRepositoryGroup( String repositoryGroupId, AuditInformation auditInformation )
46 throws RepositoryAdminException;
48 Boolean addRepositoryToGroup( String repositoryGroupId, String repositoryId, AuditInformation auditInformation )
49 throws RepositoryAdminException;
51 Boolean deleteRepositoryFromGroup( String repositoryGroupId, String repositoryId,
52 AuditInformation auditInformation )
53 throws RepositoryAdminException;
56 * @return Map with key repoGroupId and value repoGroup
57 * @throws RepositoryAdminException
59 Map<String, RepositoryGroup> getRepositoryGroupsAsMap()
60 throws RepositoryAdminException;
63 * @return Map with key repoGroupId and value List of ManagedRepositories
64 * @throws RepositoryAdminException
66 Map<String, List<String>> getGroupToRepositoryMap()
67 throws RepositoryAdminException;
70 * @return Map with key managedRepo id and value List of repositoryGroup ids where the repo is
71 * @throws RepositoryAdminException
73 Map<String, List<String>> getRepositoryToGroupMap()
74 throws RepositoryAdminException;