org.apache.archiva.rest.api.services
Interface RepositoriesService

All Known Implementing Classes:
DefaultRepositoriesService

public interface RepositoriesService

Since:
1.4-M1
Author:
Olivier Lamy

Method Summary
 Boolean alreadyScanning(String repositoryId)
           
 Boolean copyArtifact(ArtifactTransferRequest artifactTransferRequest)
          permissions are checked in impl will copy an artifact from the source repository to the target repository
 Boolean deleteArtifact(Artifact artifact)
          permissions are checked in impl
 Boolean deleteGroupId(String groupId, String repositoryId)
          permissions are checked in impl
 Boolean deleteProject(String groupId, String projectId, String repositoryId)
          permissions are checked in impl
 Boolean isAuthorizedToDeleteArtifacts(String repoId)
           
 Boolean removeProjectVersion(String repositoryId, String namespace, String projectId, String version)
          permissions are checked in impl
 Boolean removeScanningTaskFromQueue(String repositoryId)
           
 Boolean scanRepository(String repositoryId, boolean fullScan)
          index repository
 RepositoryScanStatistics scanRepositoryDirectoriesNow(String repositoryId)
          scan directories
 Boolean scanRepositoryNow(String repositoryId, boolean fullScan)
           
 Boolean scheduleDownloadRemoteIndex(String repositoryId, boolean now, boolean fullDownload)
           
 

Method Detail

scanRepository

Boolean scanRepository(String repositoryId,
                       boolean fullScan)
                       throws ArchivaRestServiceException
index repository

Throws:
ArchivaRestServiceException

scanRepositoryDirectoriesNow

RepositoryScanStatistics scanRepositoryDirectoriesNow(String repositoryId)
                                                      throws ArchivaRestServiceException
scan directories

Throws:
ArchivaRestServiceException
Since:
1.4-M3

alreadyScanning

Boolean alreadyScanning(String repositoryId)
                        throws ArchivaRestServiceException
Throws:
ArchivaRestServiceException

removeScanningTaskFromQueue

Boolean removeScanningTaskFromQueue(String repositoryId)
                                    throws ArchivaRestServiceException
Throws:
ArchivaRestServiceException

scanRepositoryNow

Boolean scanRepositoryNow(String repositoryId,
                          boolean fullScan)
                          throws ArchivaRestServiceException
Throws:
ArchivaRestServiceException

copyArtifact

Boolean copyArtifact(ArtifactTransferRequest artifactTransferRequest)
                     throws ArchivaRestServiceException
permissions are checked in impl will copy an artifact from the source repository to the target repository

Throws:
ArchivaRestServiceException

scheduleDownloadRemoteIndex

Boolean scheduleDownloadRemoteIndex(String repositoryId,
                                    boolean now,
                                    boolean fullDownload)
                                    throws ArchivaRestServiceException
Throws:
ArchivaRestServiceException

deleteArtifact

Boolean deleteArtifact(Artifact artifact)
                       throws ArchivaRestServiceException
permissions are checked in impl

Throws:
ArchivaRestServiceException
Since:
1.4-M2

removeProjectVersion

Boolean removeProjectVersion(String repositoryId,
                             String namespace,
                             String projectId,
                             String version)
                             throws ArchivaRestServiceException
permissions are checked in impl

Throws:
ArchivaRestServiceException
Since:
1.4-M4

isAuthorizedToDeleteArtifacts

Boolean isAuthorizedToDeleteArtifacts(String repoId)
                                      throws ArchivaRestServiceException
Throws:
ArchivaRestServiceException

deleteGroupId

Boolean deleteGroupId(String groupId,
                      String repositoryId)
                      throws ArchivaRestServiceException
permissions are checked in impl

Throws:
ArchivaRestServiceException
Since:
1.4-M3

deleteProject

Boolean deleteProject(String groupId,
                      String projectId,
                      String repositoryId)
                      throws ArchivaRestServiceException
permissions are checked in impl

Throws:
ArchivaRestServiceException
Since:
1.4-M4


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