This project has retired. For details please refer to its Attic page.
Source code
001package org.apache.archiva.admin.model.group;
002/*
003 * Licensed to the Apache Software Foundation (ASF) under one
004 * or more contributor license agreements.  See the NOTICE file
005 * distributed with this work for additional information
006 * regarding copyright ownership.  The ASF licenses this file
007 * to you under the Apache License, Version 2.0 (the
008 * "License"); you may not use this file except in compliance
009 * with the License.  You may obtain a copy of the License at
010 *
011 *   http://www.apache.org/licenses/LICENSE-2.0
012 *
013 * Unless required by applicable law or agreed to in writing,
014 * software distributed under the License is distributed on an
015 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
016 * KIND, either express or implied.  See the License for the
017 * specific language governing permissions and limitations
018 * under the License.
019 */
020
021import org.apache.archiva.admin.model.AuditInformation;
022import org.apache.archiva.admin.model.RepositoryAdminException;
023import org.apache.archiva.admin.model.beans.RepositoryGroup;
024import org.apache.archiva.repository.storage.StorageAsset;
025
026import java.util.List;
027import java.util.Map;
028
029/**
030 * @author Olivier Lamy
031 * @since 1.4-M1
032 */
033public interface RepositoryGroupAdmin
034{
035    List<RepositoryGroup> getRepositoriesGroups()
036        throws RepositoryAdminException;
037
038    RepositoryGroup getRepositoryGroup( String repositoryGroupId )
039        throws RepositoryAdminException;
040
041    Boolean addRepositoryGroup( RepositoryGroup repositoryGroup, AuditInformation auditInformation )
042        throws RepositoryAdminException;
043
044    Boolean updateRepositoryGroup( RepositoryGroup repositoryGroup, AuditInformation auditInformation )
045        throws RepositoryAdminException;
046
047    Boolean deleteRepositoryGroup( String repositoryGroupId, AuditInformation auditInformation )
048        throws RepositoryAdminException;
049
050    Boolean addRepositoryToGroup( String repositoryGroupId, String repositoryId, AuditInformation auditInformation )
051        throws RepositoryAdminException;
052
053    Boolean deleteRepositoryFromGroup( String repositoryGroupId, String repositoryId,
054                                       AuditInformation auditInformation )
055        throws RepositoryAdminException;
056
057    /**
058     * @return Map with key repoGroupId and value repoGroup
059     * @throws RepositoryAdminException
060     */
061    Map<String, RepositoryGroup> getRepositoryGroupsAsMap()
062        throws RepositoryAdminException;
063
064    /**
065     * @return Map with key repoGroupId and value List of ManagedRepositories
066     * @throws RepositoryAdminException
067     */
068    Map<String, List<String>> getGroupToRepositoryMap()
069        throws RepositoryAdminException;
070
071    /**
072     * @return Map with key managedRepo id and value List of repositoryGroup ids where the repo is
073     * @throws RepositoryAdminException
074     */
075    Map<String, List<String>> getRepositoryToGroupMap()
076        throws RepositoryAdminException;
077
078    StorageAsset getMergedIndexDirectory(String repositoryGroupId );
079}