org.apache.archiva.admin.model
Class AbstractRepositoryConnector

java.lang.Object
  extended by org.apache.archiva.admin.model.AbstractRepositoryConnector
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ProxyConnector

public abstract class AbstractRepositoryConnector
extends Object
implements Serializable

Since:
1.4-M1
Author:
Olivier Lamy
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<String,String> policies
          Field policies.
private  List<PropertyEntry> policiesEntries
          field to ease json mapping wrapper on policies field
private  Map<String,String> properties
          Field properties.
private  List<PropertyEntry> propertiesEntries
          field to ease json mapping wrapper on properties field
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
AbstractRepositoryConnector()
           
 
Method Summary
 void addBlackListPattern(String string)
          Method addBlackListPattern.
 void addPolicy(String key, String value)
          Method addPolicy.
 void addProperty(String key, String value)
          Method addProperty.
 void addWhiteListPattern(String string)
          Method addWhiteListPattern.
 boolean equals(Object o)
           
 List<String> getBlackListPatterns()
          Method getBlackListPatterns.
 Map<String,String> getPolicies()
          Method getPolicies.
 List<PropertyEntry> getPoliciesEntries()
           
 String getPolicy(String policyId, String defaultValue)
          Obtain a specific policy from the underlying connector.
 Map<String,String> getProperties()
          Method getProperties.
 List<PropertyEntry> getPropertiesEntries()
           
 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.
 int hashCode()
           
 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<String,String> policies)
          Set policy configuration for the connector.
 void setPoliciesEntries(List<PropertyEntry> policiesEntries)
           
 void setProperties(Map<String,String> properties)
          Set configuration for the connector.
 void setPropertiesEntries(List<PropertyEntry> propertiesEntries)
           
 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.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, 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<String,String> policies
Field policies.


policiesEntries

private List<PropertyEntry> policiesEntries
field to ease json mapping wrapper on policies field

Since:
1.4-M3

properties

private Map<String,String> properties
Field properties.


propertiesEntries

private List<PropertyEntry> propertiesEntries
field to ease json mapping wrapper on properties field

Since:
1.4-M3

disabled

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

Constructor Detail

AbstractRepositoryConnector

public AbstractRepositoryConnector()
Method Detail

addBlackListPattern

public void addBlackListPattern(String string)
Method addBlackListPattern.

Parameters:
string -

addPolicy

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

Parameters:
key -
value -

addProperty

public void addProperty(String 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<String,String> getPolicies()
Method getPolicies.

Returns:
Map

getProperties

public Map<String,String> 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<String,String> policies)
Set policy configuration for the connector.

Parameters:
policies -

setProperties

public void setProperties(Map<String,String> 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).

getPoliciesEntries

public List<PropertyEntry> getPoliciesEntries()

setPoliciesEntries

public void setPoliciesEntries(List<PropertyEntry> policiesEntries)

getPropertiesEntries

public List<PropertyEntry> getPropertiesEntries()

setPropertiesEntries

public void setPropertiesEntries(List<PropertyEntry> propertiesEntries)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


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