org.apache.archiva.rest.services
Class DefaultProxyConnectorService

java.lang.Object
  extended by org.apache.archiva.rest.services.AbstractRestService
      extended by org.apache.archiva.rest.services.DefaultProxyConnectorService
All Implemented Interfaces:
ProxyConnectorService

@Service(value="proxyConnectorService#rest")
public class DefaultProxyConnectorService
extends AbstractRestService
implements ProxyConnectorService

Author:
Olivier Lamy

Field Summary
private  List<Policy> allPolicies
           
private  ProxyConnectorAdmin proxyConnectorAdmin
           
 
Fields inherited from class org.apache.archiva.rest.services.AbstractRestService
archivaAdministration, config, httpServletRequest, log, managedRepositoryAdmin, repositoryContentFactory, repositorySessionFactory, repositoryTaskScheduler, userRepositories
 
Constructor Summary
DefaultProxyConnectorService(org.springframework.context.ApplicationContext applicationContext)
           
 
Method Summary
 Boolean addProxyConnector(ProxyConnector proxyConnector)
           
 Boolean deleteProxyConnector(ProxyConnector proxyConnector)
           
 List<PolicyInformation> getAllPolicyInformations()
           
 ProxyConnector getProxyConnector(String sourceRepoId, String targetRepoId)
           
 ProxyConnectorAdmin getProxyConnectorAdmin()
           
 List<ProxyConnector> getProxyConnectors()
           
 Boolean removeProxyConnector(String sourceRepoId, String targetRepoId)
           
 void setProxyConnectorAdmin(ProxyConnectorAdmin proxyConnectorAdmin)
           
 Boolean updateProxyConnector(ProxyConnector proxyConnector)
          only for enabled/disable or changing bean values except target/source
 
Methods inherited from class org.apache.archiva.rest.services.AbstractRestService
buildArtifacts, doScanRepository, getArtifactUrl, getAuditInformation, getAuditListeners, getBaseUrl, getBeansOfType, getObservableRepos, getPrincipal, setAuditListeners, triggerAuditEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

proxyConnectorAdmin

@Inject
private ProxyConnectorAdmin proxyConnectorAdmin

allPolicies

private List<Policy> allPolicies
Constructor Detail

DefaultProxyConnectorService

@Inject
public DefaultProxyConnectorService(org.springframework.context.ApplicationContext applicationContext)
Method Detail

getProxyConnectors

public List<ProxyConnector> getProxyConnectors()
                                        throws ArchivaRestServiceException
Specified by:
getProxyConnectors in interface ProxyConnectorService
Throws:
ArchivaRestServiceException

getProxyConnector

public ProxyConnector getProxyConnector(String sourceRepoId,
                                        String targetRepoId)
                                 throws ArchivaRestServiceException
Specified by:
getProxyConnector in interface ProxyConnectorService
Throws:
ArchivaRestServiceException

addProxyConnector

public Boolean addProxyConnector(ProxyConnector proxyConnector)
                          throws ArchivaRestServiceException
Specified by:
addProxyConnector in interface ProxyConnectorService
Throws:
ArchivaRestServiceException

deleteProxyConnector

public Boolean deleteProxyConnector(ProxyConnector proxyConnector)
                             throws ArchivaRestServiceException
Specified by:
deleteProxyConnector in interface ProxyConnectorService
Throws:
ArchivaRestServiceException

removeProxyConnector

public Boolean removeProxyConnector(String sourceRepoId,
                                    String targetRepoId)
                             throws ArchivaRestServiceException
Specified by:
removeProxyConnector in interface ProxyConnectorService
Throws:
ArchivaRestServiceException

updateProxyConnector

public Boolean updateProxyConnector(ProxyConnector proxyConnector)
                             throws ArchivaRestServiceException
Description copied from interface: ProxyConnectorService
only for enabled/disable or changing bean values except target/source

Specified by:
updateProxyConnector in interface ProxyConnectorService
Returns:
Throws:
ArchivaRestServiceException

getAllPolicyInformations

public List<PolicyInformation> getAllPolicyInformations()
                                                 throws ArchivaRestServiceException
Specified by:
getAllPolicyInformations in interface ProxyConnectorService
Throws:
ArchivaRestServiceException

getProxyConnectorAdmin

public ProxyConnectorAdmin getProxyConnectorAdmin()

setProxyConnectorAdmin

public void setProxyConnectorAdmin(ProxyConnectorAdmin proxyConnectorAdmin)


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