This project has retired. For details please refer to its Attic page.
Source code
001package org.apache.archiva.admin.model.proxyconnectorrule;
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.ProxyConnectorRule;
024
025import java.util.List;
026
027/**
028 * @author Olivier Lamy
029 * @since 1.4-M3
030 */
031public interface ProxyConnectorRuleAdmin
032{
033    /**
034     * @return
035     * @throws org.apache.archiva.admin.model.RepositoryAdminException
036     *
037     * @since 1.4-M3
038     */
039    List<ProxyConnectorRule> getProxyConnectorRules()
040        throws RepositoryAdminException;
041
042    /**
043     * @param proxyConnectorRule
044     * @throws RepositoryAdminException
045     * @since 1.4-M3
046     */
047    void addProxyConnectorRule( ProxyConnectorRule proxyConnectorRule, AuditInformation auditInformation )
048        throws RepositoryAdminException;
049
050    /**
051     * @param proxyConnectorRule
052     * @throws RepositoryAdminException
053     * @since 1.4-M3
054     */
055    void deleteProxyConnectorRule( ProxyConnectorRule proxyConnectorRule, AuditInformation auditInformation )
056        throws RepositoryAdminException;
057
058    /**
059     * <b>only to update attached proxy connectors to update pattern delete then add</b>
060     * @param proxyConnectorRule
061     * @throws RepositoryAdminException
062     * @since 1.4-M3
063     */
064    void updateProxyConnectorRule( ProxyConnectorRule proxyConnectorRule, AuditInformation auditInformation )
065        throws RepositoryAdminException;
066}