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 blackListPatterns; - - /** - * Field whiteListPatterns. - */ - private List whiteListPatterns; - - /** - * Field policies. - */ - private Map policies; - - /** - * Field properties. - */ - private Map 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 getBlackListPatterns() - { - return blackListPatterns; - } - - public void setBlackListPatterns( List blackListPatterns ) - { - this.blackListPatterns = blackListPatterns; - } - - public List getWhiteListPatterns() - { - return whiteListPatterns; - } - - public void setWhiteListPatterns( List whiteListPatterns ) - { - this.whiteListPatterns = whiteListPatterns; - } - - public Map getPolicies() - { - return policies; - } - - public void setPolicies( Map policies ) - { - this.policies = policies; - } - - public Map getProperties() - { - return properties; - } - - public void setProperties( Map 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;