org.apache.archiva.rest.services
Class DefaultManagedRepositoriesService

java.lang.Object
  extended by org.apache.archiva.rest.services.AbstractRestService
      extended by 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

Field Summary
private  RepositoryCommonValidator repositoryCommonValidator
           
private  RepositoryStatisticsManager repositoryStatisticsManager
           
 
Fields inherited from class org.apache.archiva.rest.services.AbstractRestService
archivaAdministration, config, httpServletRequest, log, managedRepositoryAdmin, repositoryContentFactory, repositorySessionFactory, repositoryTaskScheduler, userRepositories
 
Constructor Summary
DefaultManagedRepositoriesService()
           
 
Method Summary
 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)
           
 
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
 

Field Detail

repositoryCommonValidator

@Inject
private RepositoryCommonValidator repositoryCommonValidator

repositoryStatisticsManager

@Inject
private RepositoryStatisticsManager repositoryStatisticsManager
Constructor Detail

DefaultManagedRepositoriesService

public DefaultManagedRepositoriesService()
Method Detail

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.