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;
25import org.apache.maven.index.context.IndexingContext;
2627import java.util.List;
28import java.util.Map;
2930/**31 * @author Olivier Lamy32 * @since 1.4-M133 */34publicinterfaceManagedRepositoryAdmin35 {
3637 String REPOSITORY_LOCATION_VALID_EXPRESSION = "^[-a-zA-Z0-9._/~:?!&=\\\\]+$";
3839 List<ManagedRepository> getManagedRepositories()
40throws RepositoryAdminException;
4142 Map<String, ManagedRepository> getManagedRepositoriesAsMap()
43throws RepositoryAdminException;
4445ManagedRepository getManagedRepository( String repositoryId )
46throws RepositoryAdminException;
4748 Boolean deleteManagedRepository( String repositoryId, AuditInformation auditInformation, boolean deleteContent )
49throws RepositoryAdminException;
5051 Boolean addManagedRepository( ManagedRepository managedRepository, boolean needStageRepo,
52AuditInformation auditInformation )
53throws RepositoryAdminException;
545556 Boolean updateManagedRepository( ManagedRepository managedRepository, boolean needStageRepo,
57AuditInformation auditInformation, boolean resetStats )
58throws RepositoryAdminException;
5960/**61 *62 * @param repository63 * @return64 * @throws RepositoryAdminException65 * @since 1.4-M266 */67 IndexingContext createIndexContext( ManagedRepository repository )
68throws RepositoryAdminException;
697071 }