summaryrefslogtreecommitdiffstats
path: root/archiva-modules
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2011-09-15 19:51:04 +0000
committerOlivier Lamy <olamy@apache.org>2011-09-15 19:51:04 +0000
commitbaf98dbb9c55a0ee6d1729044891d6937c2b99c6 (patch)
tree4fda705e8220b88662a44c77de55ec20643b800b /archiva-modules
parente7a28da297cd34bc70d8a8faadb563f382cba5d3 (diff)
downloadarchiva-baf98dbb9c55a0ee6d1729044891d6937c2b99c6.tar.gz
archiva-baf98dbb9c55a0ee6d1729044891d6937c2b99c6.zip
[MRM-1520] remove duplicate beans : fix for ProxyConnector
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1171241 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules')
-rw-r--r--archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/model/ProxyConnector.java180
-rw-r--r--archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/ProxyConnectorService.java2
-rw-r--r--archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultProxyConnectorService.java2
3 files changed, 2 insertions, 182 deletions
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
index 79ba84428..000000000
--- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/model/ProxyConnector.java
+++ /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;
- }
-}
diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/ProxyConnectorService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/ProxyConnectorService.java
index e55232ec8..44fe58553 100644
--- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/ProxyConnectorService.java
+++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/ProxyConnectorService.java
@@ -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;
diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultProxyConnectorService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultProxyConnectorService.java
index f3395c36f..66f78595a 100644
--- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultProxyConnectorService.java
+++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultProxyConnectorService.java
@@ -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;