@Service(value="managedRepositoriesService#rest") public class DefaultManagedRepositoriesService extends AbstractRestService implements ManagedRepositoriesService
Modifier and Type | Field and Description |
---|---|
private RepositoryCommonValidator |
repositoryCommonValidator |
private RepositoryStatisticsManager |
repositoryStatisticsManager |
archivaAdministration, config, httpServletRequest, httpServletResponse, log, managedRepositoryAdmin, proxyConnectorAdmin, repositoryContentFactory, repositorySessionFactory, repositoryTaskScheduler, userRepositories
Constructor and Description |
---|
DefaultManagedRepositoriesService() |
Modifier and Type | Method and Description |
---|---|
ManagedRepository |
addManagedRepository(ManagedRepository managedRepository) |
private String |
createSnippet(ManagedRepository repo) |
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
@Inject private RepositoryCommonValidator repositoryCommonValidator
@Inject private RepositoryStatisticsManager repositoryStatisticsManager
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
private String createSnippet(ManagedRepository repo) throws ArchivaRestServiceException
ArchivaRestServiceException
Copyright © 2006–2023 The Apache Software Foundation. All rights reserved.