mirror of https://github.com/apache/archiva.git
the id of ProxyConnectorRule is pattern AND type
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1392959 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4f2f7f1351
commit
774f97551f
|
@ -41,7 +41,7 @@ import java.util.List;
|
||||||
* @author Olivier Lamy
|
* @author Olivier Lamy
|
||||||
* @since 1.4-M3
|
* @since 1.4-M3
|
||||||
*/
|
*/
|
||||||
@Service ( "proxyConnectorRuleAdmin#default" )
|
@Service ("proxyConnectorRuleAdmin#default")
|
||||||
public class DefaultProxyConnectorRuleAdmin
|
public class DefaultProxyConnectorRuleAdmin
|
||||||
extends AbstractRepositoryAdmin
|
extends AbstractRepositoryAdmin
|
||||||
implements ProxyConnectorRuleAdmin
|
implements ProxyConnectorRuleAdmin
|
||||||
|
@ -125,7 +125,9 @@ public class DefaultProxyConnectorRuleAdmin
|
||||||
|
|
||||||
for ( ProxyConnectorRuleConfiguration proxyConnectorRuleConfiguration : configuration.getProxyConnectorRuleConfigurations() )
|
for ( ProxyConnectorRuleConfiguration proxyConnectorRuleConfiguration : configuration.getProxyConnectorRuleConfigurations() )
|
||||||
{
|
{
|
||||||
if ( StringUtils.equals( proxyConnectorRuleConfiguration.getPattern(), proxyConnectorRule.getPattern() ) )
|
if ( StringUtils.equals( proxyConnectorRuleConfiguration.getPattern(), proxyConnectorRule.getPattern() )
|
||||||
|
&& StringUtils.equals( proxyConnectorRuleConfiguration.getRuleType(),
|
||||||
|
proxyConnectorRule.getProxyConnectorRuleType().toString() ) )
|
||||||
{
|
{
|
||||||
toSave = true;
|
toSave = true;
|
||||||
}
|
}
|
||||||
|
@ -150,7 +152,9 @@ public class DefaultProxyConnectorRuleAdmin
|
||||||
|
|
||||||
for ( ProxyConnectorRuleConfiguration proxyConnectorRuleConfiguration : configuration.getProxyConnectorRuleConfigurations() )
|
for ( ProxyConnectorRuleConfiguration proxyConnectorRuleConfiguration : configuration.getProxyConnectorRuleConfigurations() )
|
||||||
{
|
{
|
||||||
if ( StringUtils.equals( proxyConnectorRuleConfiguration.getPattern(), proxyConnectorRule.getPattern() ) )
|
if ( StringUtils.equals( proxyConnectorRuleConfiguration.getPattern(), proxyConnectorRule.getPattern() )
|
||||||
|
&& StringUtils.equals( proxyConnectorRuleConfiguration.getRuleType(),
|
||||||
|
proxyConnectorRule.getProxyConnectorRuleType().toString() ) )
|
||||||
{
|
{
|
||||||
List<ProxyConnectorConfiguration> proxyConnectors =
|
List<ProxyConnectorConfiguration> proxyConnectors =
|
||||||
new ArrayList<ProxyConnectorConfiguration>( proxyConnectorRule.getProxyConnectors().size() );
|
new ArrayList<ProxyConnectorConfiguration>( proxyConnectorRule.getProxyConnectors().size() );
|
||||||
|
|
Loading…
Reference in New Issue