org.apache.archiva.rest.services
Class DefaultProxyConnectorRuleService

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

@Service(value="proxyConnectorRuleService#rest")
public class DefaultProxyConnectorRuleService
extends AbstractRestService
implements ProxyConnectorRuleService

Author:
Olivier Lamy

Field Summary
private  ProxyConnectorRuleAdmin proxyConnectorRuleAdmin
           
 
Fields inherited from class org.apache.archiva.rest.services.AbstractRestService
archivaAdministration, config, httpServletRequest, log, managedRepositoryAdmin, repositoryContentFactory, repositorySessionFactory, repositoryTaskScheduler, userRepositories
 
Constructor Summary
DefaultProxyConnectorRuleService()
           
 
Method Summary
 Boolean addProxyConnectorRule(ProxyConnectorRule proxyConnectorRule)
           
 Boolean deleteProxyConnectorRule(ProxyConnectorRule proxyConnectorRule)
           
 List<ProxyConnectorRule> getProxyConnectorRules()
           
 Boolean updateProxyConnectorRule(ProxyConnectorRule proxyConnectorRule)
          only to update attached proxy connectors to update pattern use delete then add
private  void validateProxyConnectorRule(ProxyConnectorRule proxyConnectorRule)
           
 
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

proxyConnectorRuleAdmin

@Inject
private ProxyConnectorRuleAdmin proxyConnectorRuleAdmin
Constructor Detail

DefaultProxyConnectorRuleService

public DefaultProxyConnectorRuleService()
Method Detail

getProxyConnectorRules

public List<ProxyConnectorRule> getProxyConnectorRules()
                                                throws ArchivaRestServiceException
Specified by:
getProxyConnectorRules in interface ProxyConnectorRuleService
Throws:
ArchivaRestServiceException

validateProxyConnectorRule

private void validateProxyConnectorRule(ProxyConnectorRule proxyConnectorRule)
                                 throws ArchivaRestServiceException
Throws:
ArchivaRestServiceException

addProxyConnectorRule

public Boolean addProxyConnectorRule(ProxyConnectorRule proxyConnectorRule)
                              throws ArchivaRestServiceException
Specified by:
addProxyConnectorRule in interface ProxyConnectorRuleService
Throws:
ArchivaRestServiceException

deleteProxyConnectorRule

public Boolean deleteProxyConnectorRule(ProxyConnectorRule proxyConnectorRule)
                                 throws ArchivaRestServiceException
Specified by:
deleteProxyConnectorRule in interface ProxyConnectorRuleService
Throws:
ArchivaRestServiceException

updateProxyConnectorRule

public Boolean updateProxyConnectorRule(ProxyConnectorRule proxyConnectorRule)
                                 throws ArchivaRestServiceException
Description copied from interface: ProxyConnectorRuleService
only to update attached proxy connectors to update pattern use delete then add

Specified by:
updateProxyConnectorRule in interface ProxyConnectorRuleService
Throws:
ArchivaRestServiceException


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