org.apache.archiva.rest.services
Class DefaultManagedRepositoriesService
java.lang.Object
org.apache.archiva.rest.services.AbstractRestService
org.apache.archiva.rest.services.DefaultManagedRepositoriesService
- All Implemented Interfaces:
- ManagedRepositoriesService
@Service(value="managedRepositoriesService#rest")
public class DefaultManagedRepositoriesService
- extends AbstractRestService
- implements ManagedRepositoriesService
- Since:
- 1.4-M1
- Author:
- Olivier Lamy
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 |
repositoryCommonValidator
@Inject
private RepositoryCommonValidator repositoryCommonValidator
repositoryStatisticsManager
@Inject
private RepositoryStatisticsManager repositoryStatisticsManager
DefaultManagedRepositoriesService
public DefaultManagedRepositoriesService()
getManagedRepositories
public List<ManagedRepository> getManagedRepositories()
throws ArchivaRestServiceException
- Specified by:
getManagedRepositories
in interface ManagedRepositoriesService
- Throws:
ArchivaRestServiceException
getManagedRepository
public ManagedRepository getManagedRepository(String repositoryId)
throws ArchivaRestServiceException
- Specified by:
getManagedRepository
in interface ManagedRepositoriesService
- Throws:
ArchivaRestServiceException
deleteManagedRepository
public Boolean deleteManagedRepository(String repoId,
boolean deleteContent)
throws ArchivaRestServiceException
- Specified by:
deleteManagedRepository
in interface ManagedRepositoriesService
- Throws:
ArchivaRestServiceException
addManagedRepository
public ManagedRepository addManagedRepository(ManagedRepository managedRepository)
throws ArchivaRestServiceException
- Specified by:
addManagedRepository
in interface ManagedRepositoriesService
- Throws:
ArchivaRestServiceException
updateManagedRepository
public Boolean updateManagedRepository(ManagedRepository managedRepository)
throws ArchivaRestServiceException
- Specified by:
updateManagedRepository
in interface ManagedRepositoriesService
- Throws:
ArchivaRestServiceException
fileLocationExists
public Boolean fileLocationExists(String fileLocation)
throws ArchivaRestServiceException
- Specified by:
fileLocationExists
in interface ManagedRepositoriesService
- Throws:
ArchivaRestServiceException
getManagedRepositoryStatistics
public ArchivaRepositoryStatistics getManagedRepositoryStatistics(String repositoryId,
String lang)
throws ArchivaRestServiceException
- Specified by:
getManagedRepositoryStatistics
in interface ManagedRepositoriesService
- Throws:
ArchivaRestServiceException
getPomSnippet
public String getPomSnippet(String repositoryId)
throws ArchivaRestServiceException
- Description copied from interface:
ManagedRepositoriesService
- return a pom snippet to use this repository with entities escaped (< > )
- Specified by:
getPomSnippet
in interface ManagedRepositoriesService
- Throws:
ArchivaRestServiceException
createSnippet
private String createSnippet(ManagedRepository repo)
throws ArchivaRestServiceException
- Throws:
ArchivaRestServiceException
Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.