1package org.apache.archiva.admin.model.group;
2/*3 * Licensed to the Apache Software Foundation (ASF) under one4 * or more contributor license agreements. See the NOTICE file5 * distributed with this work for additional information6 * regarding copyright ownership. The ASF licenses this file7 * to you under the Apache License, Version 2.0 (the8 * "License"); you may not use this file except in compliance9 * with the License. You may obtain a copy of the License at10 *11 * http://www.apache.org/licenses/LICENSE-2.012 *13 * Unless required by applicable law or agreed to in writing,14 * software distributed under the License is distributed on an15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY16 * KIND, either express or implied. See the License for the17 * specific language governing permissions and limitations18 * under the License.19 */2021import org.apache.archiva.admin.model.AuditInformation;
22import org.apache.archiva.admin.model.RepositoryAdminException;
23import org.apache.archiva.admin.model.beans.RepositoryGroup;
2425import java.io.File;
26import java.util.List;
27import java.util.Map;
2829/**30 * @author Olivier Lamy31 * @since 1.4-M132 */33publicinterfaceRepositoryGroupAdmin34 {
35 List<RepositoryGroup> getRepositoriesGroups()
36throws RepositoryAdminException;
3738RepositoryGroup getRepositoryGroup( String repositoryGroupId )
39throws RepositoryAdminException;
4041 Boolean addRepositoryGroup( RepositoryGroup repositoryGroup, AuditInformation auditInformation )
42throws RepositoryAdminException;
4344 Boolean updateRepositoryGroup( RepositoryGroup repositoryGroup, AuditInformation auditInformation )
45throws RepositoryAdminException;
4647 Boolean deleteRepositoryGroup( String repositoryGroupId, AuditInformation auditInformation )
48throws RepositoryAdminException;
4950 Boolean addRepositoryToGroup( String repositoryGroupId, String repositoryId, AuditInformation auditInformation )
51throws RepositoryAdminException;
5253 Boolean deleteRepositoryFromGroup( String repositoryGroupId, String repositoryId,
54AuditInformation auditInformation )
55throws RepositoryAdminException;
5657/**58 * @return Map with key repoGroupId and value repoGroup59 * @throws RepositoryAdminException60 */61 Map<String, RepositoryGroup> getRepositoryGroupsAsMap()
62throws RepositoryAdminException;
6364/**65 * @return Map with key repoGroupId and value List of ManagedRepositories66 * @throws RepositoryAdminException67 */68 Map<String, List<String>> getGroupToRepositoryMap()
69throws RepositoryAdminException;
7071/**72 * @return Map with key managedRepo id and value List of repositoryGroup ids where the repo is73 * @throws RepositoryAdminException74 */75 Map<String, List<String>> getRepositoryToGroupMap()
76throws RepositoryAdminException;
7778 File getMergedIndexDirectory( String repositoryGroupId );
79 }