org.apache.archiva.rest.services
Class DefaultRepositoryGroupService

java.lang.Object
  extended by org.apache.archiva.rest.services.AbstractRestService
      extended by org.apache.archiva.rest.services.DefaultRepositoryGroupService
All Implemented Interfaces:
RepositoryGroupService

@Service(value="repositoryGroupService#rest")
public class DefaultRepositoryGroupService
extends AbstractRestService
implements RepositoryGroupService

Author:
Olivier Lamy

Field Summary
private  RepositoryGroupAdmin repositoryGroupAdmin
           
 
Fields inherited from class org.apache.archiva.rest.services.AbstractRestService
archivaAdministration, config, httpServletRequest, log, managedRepositoryAdmin, repositoryContentFactory, repositorySessionFactory, repositoryTaskScheduler, userRepositories
 
Constructor Summary
DefaultRepositoryGroupService()
           
 
Method Summary
 Boolean addRepositoryGroup(RepositoryGroup repoGroup)
           
 Boolean addRepositoryToGroup(String repositoryGroupId, String repositoryId)
           
 Boolean deleteRepositoryFromGroup(String repositoryGroupId, String repositoryId)
           
 Boolean deleteRepositoryGroup(String repositoryGroupId)
           
 List<RepositoryGroup> getRepositoriesGroups()
           
 RepositoryGroup getRepositoryGroup(String repositoryGroupId)
           
 Boolean updateRepositoryGroup(RepositoryGroup repoGroup)
           
 
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

repositoryGroupAdmin

@Inject
private RepositoryGroupAdmin repositoryGroupAdmin
Constructor Detail

DefaultRepositoryGroupService

public DefaultRepositoryGroupService()
Method Detail

getRepositoriesGroups

public List<RepositoryGroup> getRepositoriesGroups()
                                            throws ArchivaRestServiceException
Specified by:
getRepositoriesGroups in interface RepositoryGroupService
Throws:
ArchivaRestServiceException

getRepositoryGroup

public RepositoryGroup getRepositoryGroup(String repositoryGroupId)
                                   throws ArchivaRestServiceException
Specified by:
getRepositoryGroup in interface RepositoryGroupService
Throws:
ArchivaRestServiceException

addRepositoryGroup

public Boolean addRepositoryGroup(RepositoryGroup repoGroup)
                           throws ArchivaRestServiceException
Specified by:
addRepositoryGroup in interface RepositoryGroupService
Throws:
ArchivaRestServiceException

updateRepositoryGroup

public Boolean updateRepositoryGroup(RepositoryGroup repoGroup)
                              throws ArchivaRestServiceException
Specified by:
updateRepositoryGroup in interface RepositoryGroupService
Throws:
ArchivaRestServiceException

deleteRepositoryGroup

public Boolean deleteRepositoryGroup(String repositoryGroupId)
                              throws ArchivaRestServiceException
Specified by:
deleteRepositoryGroup in interface RepositoryGroupService
Throws:
ArchivaRestServiceException

addRepositoryToGroup

public Boolean addRepositoryToGroup(String repositoryGroupId,
                                    String repositoryId)
                             throws ArchivaRestServiceException
Specified by:
addRepositoryToGroup in interface RepositoryGroupService
Throws:
ArchivaRestServiceException

deleteRepositoryFromGroup

public Boolean deleteRepositoryFromGroup(String repositoryGroupId,
                                         String repositoryId)
                                  throws ArchivaRestServiceException
Specified by:
deleteRepositoryFromGroup in interface RepositoryGroupService
Throws:
ArchivaRestServiceException


Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.