]> source.dussan.org Git - archiva.git/commitdiff
[MRM-1520] remove duplicate beans : fix for ProxyConnector
authorOlivier Lamy <olamy@apache.org>
Thu, 15 Sep 2011 19:51:04 +0000 (19:51 +0000)
committerOlivier Lamy <olamy@apache.org>
Thu, 15 Sep 2011 19:51:04 +0000 (19:51 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1171241 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/model/ProxyConnector.java [deleted file]
archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/ProxyConnectorService.java
archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultProxyConnectorService.java

diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/model/ProxyConnector.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/model/ProxyConnector.java
deleted file mode 100644 (file)
index 79ba844..0000000
+++ /dev/null
@@ -1,180 +0,0 @@
-package org.apache.archiva.rest.api.model;
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import javax.xml.bind.annotation.XmlRootElement;
-import java.io.Serializable;
-import java.util.List;
-import java.util.Map;
-
-/**
- * @author Olivier Lamy
- * @since 1.4
- */
-@XmlRootElement( name = "proxyConnector" )
-public class ProxyConnector
-    implements Serializable
-{
-    /**
-     * The order of the proxy connectors. (0 means no order specified)
-     * .
-     */
-    private int order = 0;
-
-    /**
-     * The Repository Source for this connector.
-     */
-    private String sourceRepoId;
-
-    /**
-     * The Repository Target for this connector.
-     */
-    private String targetRepoId;
-
-    /**
-     * The network proxy ID to use for this connector.
-     */
-    private String proxyId;
-
-    /**
-     * Field blackListPatterns.
-     */
-    private List<String> blackListPatterns;
-
-    /**
-     * Field whiteListPatterns.
-     */
-    private List<String> whiteListPatterns;
-
-    /**
-     * Field policies.
-     */
-    private Map<String, String> policies;
-
-    /**
-     * Field properties.
-     */
-    private Map<String, String> properties;
-
-    /**
-     * If the the repository proxy connector is disabled or not
-     */
-    private boolean disabled = false;
-
-    /**
-     * Get the order of the proxy connectors. (0 means no order specified)
-     *
-     * @return int
-     */
-    public int getOrder()
-    {
-        return this.order;
-    }
-
-
-    /**
-     * Set the order of the proxy connectors. (0 means no order specified)
-     *
-     * @param order
-     */
-    public void setOrder( int order )
-    {
-        this.order = order;
-    }
-
-    public String getSourceRepoId()
-    {
-        return sourceRepoId;
-    }
-
-    public void setSourceRepoId( String sourceRepoId )
-    {
-        this.sourceRepoId = sourceRepoId;
-    }
-
-    public String getTargetRepoId()
-    {
-        return targetRepoId;
-    }
-
-    public void setTargetRepoId( String targetRepoId )
-    {
-        this.targetRepoId = targetRepoId;
-    }
-
-    public String getProxyId()
-    {
-        return proxyId;
-    }
-
-    public void setProxyId( String proxyId )
-    {
-        this.proxyId = proxyId;
-    }
-
-    public List<String> getBlackListPatterns()
-    {
-        return blackListPatterns;
-    }
-
-    public void setBlackListPatterns( List<String> blackListPatterns )
-    {
-        this.blackListPatterns = blackListPatterns;
-    }
-
-    public List<String> getWhiteListPatterns()
-    {
-        return whiteListPatterns;
-    }
-
-    public void setWhiteListPatterns( List<String> whiteListPatterns )
-    {
-        this.whiteListPatterns = whiteListPatterns;
-    }
-
-    public Map<String, String> getPolicies()
-    {
-        return policies;
-    }
-
-    public void setPolicies( Map<String, String> policies )
-    {
-        this.policies = policies;
-    }
-
-    public Map<String, String> getProperties()
-    {
-        return properties;
-    }
-
-    public void setProperties( Map<String, String> properties )
-    {
-        this.properties = properties;
-    }
-
-    public boolean isDisabled()
-    {
-        return disabled;
-    }
-
-    public void setDisabled( boolean disabled )
-    {
-        this.disabled = disabled;
-    }
-}
index e55232ec8be78d7b2b0fd53ebcf461e35873d6c4..44fe5855343d7b632b78b1a68776336ad8f41c02 100644 (file)
@@ -18,7 +18,7 @@ package org.apache.archiva.rest.api.services;
  * under the License.
  */
 
-import org.apache.archiva.rest.api.model.ProxyConnector;
+import org.apache.archiva.admin.model.beans.ProxyConnector;
 import org.apache.archiva.security.common.ArchivaRoleConstants;
 import org.codehaus.plexus.redback.authorization.RedbackAuthorization;
 
index f3395c36fdc57d9a843542855a177d3dc8fc373f..66f78595ae0d22762f67cdcfaf6fd72286c1fcc5 100644 (file)
@@ -20,8 +20,8 @@ package org.apache.archiva.rest.services;
 
 import net.sf.beanlib.provider.replicator.BeanReplicator;
 import org.apache.archiva.admin.model.RepositoryAdminException;
+import org.apache.archiva.admin.model.beans.ProxyConnector;
 import org.apache.archiva.admin.model.proxyconnector.ProxyConnectorAdmin;
-import org.apache.archiva.rest.api.model.ProxyConnector;
 import org.apache.archiva.rest.api.services.ArchivaRestServiceException;
 import org.apache.archiva.rest.api.services.ProxyConnectorService;
 import org.springframework.stereotype.Service;