org.apache.archiva.rest.services
Class DefaultRemoteRepositoriesService

java.lang.Object
  extended by org.apache.archiva.rest.services.AbstractRestService
      extended by org.apache.archiva.rest.services.DefaultRemoteRepositoriesService
All Implemented Interfaces:
org.apache.archiva.rest.api.services.RemoteRepositoriesService

@Service(value="remoteRepositoriesService#rest")
public class DefaultRemoteRepositoriesService
extends AbstractRestService
implements org.apache.archiva.rest.api.services.RemoteRepositoriesService

Since:
1.4-M1
Author:
Olivier Lamy

Field Summary
 
Fields inherited from class org.apache.archiva.rest.services.AbstractRestService
log
 
Constructor Summary
DefaultRemoteRepositoriesService()
           
 
Method Summary
 Boolean addRemoteRepository(org.apache.archiva.admin.model.beans.RemoteRepository remoteRepository)
           
 Boolean deleteRemoteRepository(String repositoryId)
           
 List<org.apache.archiva.admin.model.beans.RemoteRepository> getRemoteRepositories()
           
 org.apache.archiva.admin.model.beans.RemoteRepository getRemoteRepository(String repositoryId)
           
 Boolean updateRemoteRepository(org.apache.archiva.admin.model.beans.RemoteRepository remoteRepository)
           
 
Methods inherited from class org.apache.archiva.rest.services.AbstractRestService
getAuditInformation, getAuditListeners, setAuditListeners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultRemoteRepositoriesService

public DefaultRemoteRepositoriesService()
Method Detail

getRemoteRepositories

public List<org.apache.archiva.admin.model.beans.RemoteRepository> getRemoteRepositories()
                                                                                  throws org.apache.archiva.rest.api.services.ArchivaRestServiceException
Specified by:
getRemoteRepositories in interface org.apache.archiva.rest.api.services.RemoteRepositoriesService
Throws:
org.apache.archiva.rest.api.services.ArchivaRestServiceException

getRemoteRepository

public org.apache.archiva.admin.model.beans.RemoteRepository getRemoteRepository(String repositoryId)
                                                                          throws org.apache.archiva.rest.api.services.ArchivaRestServiceException
Specified by:
getRemoteRepository in interface org.apache.archiva.rest.api.services.RemoteRepositoriesService
Throws:
org.apache.archiva.rest.api.services.ArchivaRestServiceException

deleteRemoteRepository

public Boolean deleteRemoteRepository(String repositoryId)
                               throws Exception
Specified by:
deleteRemoteRepository in interface org.apache.archiva.rest.api.services.RemoteRepositoriesService
Throws:
Exception

addRemoteRepository

public Boolean addRemoteRepository(org.apache.archiva.admin.model.beans.RemoteRepository remoteRepository)
                            throws Exception
Specified by:
addRemoteRepository in interface org.apache.archiva.rest.api.services.RemoteRepositoriesService
Throws:
Exception

updateRemoteRepository

public Boolean updateRemoteRepository(org.apache.archiva.admin.model.beans.RemoteRepository remoteRepository)
                               throws Exception
Specified by:
updateRemoteRepository in interface org.apache.archiva.rest.api.services.RemoteRepositoriesService
Throws:
Exception


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