1package org.apache.archiva.admin.model.proxyconnector;
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.ProxyConnector;
2425import java.util.List;
26import java.util.Map;
2728/**29 * <b>No update method for changing source and target here as id is : sourceRepoId and targetRepoId, use delete then add.</b>30 *31 * @author Olivier Lamy32 * @since 1.4-M133 */34publicinterfaceProxyConnectorAdmin35 {
36 List<ProxyConnector> getProxyConnectors()
37throws RepositoryAdminException;
3839ProxyConnector getProxyConnector( String sourceRepoId, String targetRepoId )
40throws RepositoryAdminException;
4142 Boolean addProxyConnector( ProxyConnector proxyConnector, AuditInformation auditInformation )
43throws RepositoryAdminException;
4445 Boolean deleteProxyConnector( ProxyConnector proxyConnector, AuditInformation auditInformation )
46throws RepositoryAdminException;
4748/**49 * <b>only for enabled/disable or changing bean values except target/source</b>50 *51 * @param proxyConnector52 * @param auditInformation53 * @return54 * @throws RepositoryAdminException55 */56 Boolean updateProxyConnector( ProxyConnector proxyConnector, AuditInformation auditInformation )
57throws RepositoryAdminException;
5859/**60 * @return key/value : managed repo Id / list to proxy connector ordered61 * @throws RepositoryAdminException62 */63 Map<String, List<ProxyConnector>> getProxyConnectorAsMap()
64throws RepositoryAdminException;
6566 }