@Service(value="remoteRepositoriesService#rest") public class DefaultRemoteRepositoriesService extends AbstractRestService implements RemoteRepositoriesService
archivaAdministration, config, httpServletRequest, httpServletResponse, log, proxyConnectorAdmin, repositoryRegistry, repositorySessionFactory, repositoryTaskScheduler, userRepositories
Constructor and Description |
---|
DefaultRemoteRepositoriesService() |
Modifier and Type | Method and Description |
---|---|
Boolean |
addRemoteRepository(RemoteRepository remoteRepository) |
Boolean |
checkRemoteConnectivity(String repositoryId) |
Boolean |
deleteRemoteRepository(String repositoryId) |
int |
getCheckReadTimeout() |
int |
getCheckTimeout() |
List<RemoteRepository> |
getRemoteRepositories() |
RemoteRepository |
getRemoteRepository(String repositoryId) |
void |
setCheckReadTimeout(int checkReadTimeout) |
void |
setCheckTimeout(int checkTimeout) |
Boolean |
updateRemoteRepository(RemoteRepository remoteRepository) |
buildArtifacts, doScanRepository, getArtifactUrl, getArtifactUrl, getAuditInformation, getAuditListeners, getBaseUrl, getBeansOfType, getModelMapper, getObservableRepos, getPrincipal, setAuditListeners, triggerAuditEvent
public DefaultRemoteRepositoriesService()
public List<RemoteRepository> getRemoteRepositories() throws ArchivaRestServiceException
getRemoteRepositories
in interface RemoteRepositoriesService
ArchivaRestServiceException
public RemoteRepository getRemoteRepository(String repositoryId) throws ArchivaRestServiceException
getRemoteRepository
in interface RemoteRepositoriesService
ArchivaRestServiceException
public Boolean deleteRemoteRepository(String repositoryId) throws ArchivaRestServiceException
deleteRemoteRepository
in interface RemoteRepositoriesService
ArchivaRestServiceException
public Boolean addRemoteRepository(RemoteRepository remoteRepository) throws ArchivaRestServiceException
addRemoteRepository
in interface RemoteRepositoriesService
ArchivaRestServiceException
public Boolean updateRemoteRepository(RemoteRepository remoteRepository) throws ArchivaRestServiceException
updateRemoteRepository
in interface RemoteRepositoriesService
ArchivaRestServiceException
public Boolean checkRemoteConnectivity(String repositoryId) throws ArchivaRestServiceException
checkRemoteConnectivity
in interface RemoteRepositoriesService
ArchivaRestServiceException
public int getCheckReadTimeout()
public void setCheckReadTimeout(int checkReadTimeout)
public int getCheckTimeout()
public void setCheckTimeout(int checkTimeout)
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.