1package org.apache.archiva.admin.model.managed;
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 */202122import org.apache.archiva.admin.model.AuditInformation;
23import org.apache.archiva.admin.model.RepositoryAdminException;
24import org.apache.archiva.admin.model.beans.ManagedRepository;
2526import java.util.List;
27import java.util.Map;
2829/**30 * @author Olivier Lamy31 * @since 1.4-M132 */33publicinterfaceManagedRepositoryAdmin34 {
3536 String REPOSITORY_LOCATION_VALID_EXPRESSION = "^[-a-zA-Z0-9._/~:?!&=\\\\]+$";
3738 List<ManagedRepository> getManagedRepositories()
39throws RepositoryAdminException;
4041 Map<String, ManagedRepository> getManagedRepositoriesAsMap()
42throws RepositoryAdminException;
4344ManagedRepository getManagedRepository( String repositoryId )
45throws RepositoryAdminException;
4647 Boolean deleteManagedRepository( String repositoryId, AuditInformation auditInformation, boolean deleteContent )
48throws RepositoryAdminException;
4950 Boolean addManagedRepository( ManagedRepository managedRepository, boolean needStageRepo,
51AuditInformation auditInformation )
52throws RepositoryAdminException;
535455 Boolean updateManagedRepository( ManagedRepository managedRepository, boolean needStageRepo,
56AuditInformation auditInformation, boolean resetStats )
57throws RepositoryAdminException;
585960 }