org.apache.archiva.configuration
Class AbstractRepositoryConnectorConfiguration

java.lang.Object
  extended by org.apache.archiva.configuration.AbstractRepositoryConnectorConfiguration
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ProxyConnectorConfiguration, SyncConnectorConfiguration

public class AbstractRepositoryConnectorConfiguration
extends Object
implements Serializable

Class AbstractRepositoryConnectorConfiguration.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Field Summary
private  List<String> blackListPatterns
          Field blackListPatterns.
private  boolean disabled
          If the the repository proxy connector is disabled or not .
private  Map policies
          Field policies.
private  Map properties
          Field properties.
private  String proxyId
          The network proxy ID to use for this connector.
private  String sourceRepoId
          The Repository Source for this connector.
private  String targetRepoId
          The Repository Target for this connector.
private  List<String> whiteListPatterns
          Field whiteListPatterns.
 
Constructor Summary
AbstractRepositoryConnectorConfiguration()
           
 
Method Summary
 void addBlackListPattern(String string)
          Method addBlackListPattern.
 void addPolicy(Object key, String value)
          Method addPolicy.
 void addProperty(Object key, String value)
          Method addProperty.
 void addWhiteListPattern(String string)
          Method addWhiteListPattern.
 List<String> getBlackListPatterns()
          Method getBlackListPatterns.
 Map getPolicies()
          Method getPolicies.
 String getPolicy(String policyId, String defaultValue)
          Obtain a specific policy from the underlying connector.
 Map getProperties()
          Method getProperties.
 String getProxyId()
          Get the network proxy ID to use for this connector.
 String getSourceRepoId()
          Get the Repository Source for this connector.
 String getTargetRepoId()
          Get the Repository Target for this connector.
 List<String> getWhiteListPatterns()
          Method getWhiteListPatterns.
 boolean isDisabled()
          Get if the the repository proxy connector is disabled or not.
 void removeBlackListPattern(String string)
          Method removeBlackListPattern.
 void removeWhiteListPattern(String string)
          Method removeWhiteListPattern.
 void setBlackListPatterns(List<String> blackListPatterns)
          Set the list of blacklisted patterns for this connector.
 void setDisabled(boolean disabled)
          Set if the the repository proxy connector is disabled or not.
 void setPolicies(Map policies)
          Set policy configuration for the connector.
 void setProperties(Map properties)
          Set configuration for the connector.
 void setProxyId(String proxyId)
          Set the network proxy ID to use for this connector.
 void setSourceRepoId(String sourceRepoId)
          Set the Repository Source for this connector.
 void setTargetRepoId(String targetRepoId)
          Set the Repository Target for this connector.
 void setWhiteListPatterns(List<String> whiteListPatterns)
          Set the list of whitelisted patterns for this connector.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sourceRepoId

private String sourceRepoId
The Repository Source for this connector.


targetRepoId

private String targetRepoId
The Repository Target for this connector.


proxyId

private String proxyId
The network proxy ID to use for this connector.


blackListPatterns

private List<String> blackListPatterns
Field blackListPatterns.


whiteListPatterns

private List<String> whiteListPatterns
Field whiteListPatterns.


policies

private Map policies
Field policies.


properties

private Map properties
Field properties.


disabled

private boolean disabled
If the the repository proxy connector is disabled or not .

Constructor Detail

AbstractRepositoryConnectorConfiguration

public AbstractRepositoryConnectorConfiguration()
Method Detail

addBlackListPattern

public void addBlackListPattern(String string)
Method addBlackListPattern.

Parameters:
string -

addPolicy

public void addPolicy(Object key,
                      String value)
Method addPolicy.

Parameters:
key -
value -

addProperty

public void addProperty(Object key,
                        String value)
Method addProperty.

Parameters:
key -
value -

addWhiteListPattern

public void addWhiteListPattern(String string)
Method addWhiteListPattern.

Parameters:
string -

getBlackListPatterns

public List<String> getBlackListPatterns()
Method getBlackListPatterns.

Returns:
List

getPolicies

public Map getPolicies()
Method getPolicies.

Returns:
Map

getProperties

public Map getProperties()
Method getProperties.

Returns:
Map

getProxyId

public String getProxyId()
Get the network proxy ID to use for this connector.

Returns:
String

getSourceRepoId

public String getSourceRepoId()
Get the Repository Source for this connector.

Returns:
String

getTargetRepoId

public String getTargetRepoId()
Get the Repository Target for this connector.

Returns:
String

getWhiteListPatterns

public List<String> getWhiteListPatterns()
Method getWhiteListPatterns.

Returns:
List

isDisabled

public boolean isDisabled()
Get if the the repository proxy connector is disabled or not.

Returns:
boolean

removeBlackListPattern

public void removeBlackListPattern(String string)
Method removeBlackListPattern.

Parameters:
string -

removeWhiteListPattern

public void removeWhiteListPattern(String string)
Method removeWhiteListPattern.

Parameters:
string -

setBlackListPatterns

public void setBlackListPatterns(List<String> blackListPatterns)
Set the list of blacklisted patterns for this connector.

Parameters:
blackListPatterns -

setDisabled

public void setDisabled(boolean disabled)
Set if the the repository proxy connector is disabled or not.

Parameters:
disabled -

setPolicies

public void setPolicies(Map policies)
Set policy configuration for the connector.

Parameters:
policies -

setProperties

public void setProperties(Map properties)
Set configuration for the connector.

Parameters:
properties -

setProxyId

public void setProxyId(String proxyId)
Set the network proxy ID to use for this connector.

Parameters:
proxyId -

setSourceRepoId

public void setSourceRepoId(String sourceRepoId)
Set the Repository Source for this connector.

Parameters:
sourceRepoId -

setTargetRepoId

public void setTargetRepoId(String targetRepoId)
Set the Repository Target for this connector.

Parameters:
targetRepoId -

setWhiteListPatterns

public void setWhiteListPatterns(List<String> whiteListPatterns)
Set the list of whitelisted patterns for this connector.

Parameters:
whiteListPatterns -

getPolicy

public String getPolicy(String policyId,
                        String defaultValue)
Obtain a specific policy from the underlying connector.

Parameters:
policyId - the policy id to fetch.
defaultValue - the default value for the policy id.
Returns:
the configured policy value (or default value if not found).


Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.