@Service(value="managedRepositoriesService#rest") public class DefaultManagedRepositoriesService extends AbstractRestService implements ManagedRepositoriesService
archivaAdministration, config, httpServletRequest, httpServletResponse, log, proxyConnectorAdmin, repositoryRegistry, repositorySessionFactory, repositoryTaskScheduler, userRepositories
Constructor and Description |
---|
DefaultManagedRepositoriesService() |
Modifier and Type | Method and Description |
---|---|
ManagedRepository |
addManagedRepository(ManagedRepository managedRepository) |
Boolean |
deleteManagedRepository(String repoId,
boolean deleteContent) |
Boolean |
fileLocationExists(String fileLocation) |
List<ManagedRepository> |
getManagedRepositories() |
ManagedRepository |
getManagedRepository(String repositoryId) |
ArchivaRepositoryStatistics |
getManagedRepositoryStatistics(String repositoryId,
String lang) |
String |
getPomSnippet(String repositoryId)
return a pom snippet to use this repository with entities escaped (< >)
|
Boolean |
updateManagedRepository(ManagedRepository managedRepository) |
buildArtifacts, doScanRepository, getArtifactUrl, getArtifactUrl, getAuditInformation, getAuditListeners, getBaseUrl, getBeansOfType, getModelMapper, getObservableRepos, getPrincipal, setAuditListeners, triggerAuditEvent
public DefaultManagedRepositoriesService()
public List<ManagedRepository> getManagedRepositories() throws ArchivaRestServiceException
getManagedRepositories
in interface ManagedRepositoriesService
ArchivaRestServiceException
public ManagedRepository getManagedRepository(String repositoryId) throws ArchivaRestServiceException
getManagedRepository
in interface ManagedRepositoriesService
ArchivaRestServiceException
public Boolean deleteManagedRepository(String repoId, boolean deleteContent) throws ArchivaRestServiceException
deleteManagedRepository
in interface ManagedRepositoriesService
ArchivaRestServiceException
public ManagedRepository addManagedRepository(ManagedRepository managedRepository) throws ArchivaRestServiceException
addManagedRepository
in interface ManagedRepositoriesService
ArchivaRestServiceException
public Boolean updateManagedRepository(ManagedRepository managedRepository) throws ArchivaRestServiceException
updateManagedRepository
in interface ManagedRepositoriesService
ArchivaRestServiceException
public Boolean fileLocationExists(String fileLocation) throws ArchivaRestServiceException
fileLocationExists
in interface ManagedRepositoriesService
ArchivaRestServiceException
public ArchivaRepositoryStatistics getManagedRepositoryStatistics(String repositoryId, String lang) throws ArchivaRestServiceException
getManagedRepositoryStatistics
in interface ManagedRepositoriesService
ArchivaRestServiceException
public String getPomSnippet(String repositoryId) throws ArchivaRestServiceException
ManagedRepositoriesService
getPomSnippet
in interface ManagedRepositoriesService
ArchivaRestServiceException
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.