diff options
author | Olivier Lamy <olamy@apache.org> | 2013-11-14 03:11:06 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2013-11-14 03:11:06 +0000 |
commit | c230bdbe4102ad02eab38599da4f8f1545083fa4 (patch) | |
tree | 6c392b53a0d66e0ec1d1bb5a344073754eb999b5 /archiva-modules/archiva-web/archiva-rest/archiva-rest-api | |
parent | d19a30234450201cb36c4ae475299329f467b996 (diff) | |
download | archiva-c230bdbe4102ad02eab38599da4f8f1545083fa4.tar.gz archiva-c230bdbe4102ad02eab38599da4f8f1545083fa4.zip |
add a service to know repositories ids running a remote download
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1541794 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-web/archiva-rest/archiva-rest-api')
-rw-r--r-- | archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/RepositoriesService.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/RepositoriesService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/RepositoriesService.java index 7afba55d3..249ef0c6a 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/RepositoriesService.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/RepositoriesService.java @@ -23,6 +23,7 @@ import org.apache.archiva.maven2.model.Artifact; import org.apache.archiva.redback.authorization.RedbackAuthorization; import org.apache.archiva.repository.scanner.RepositoryScanStatistics; import org.apache.archiva.rest.api.model.ArtifactTransferRequest; +import org.apache.archiva.rest.api.model.StringList; import org.apache.archiva.security.common.ArchivaRoleConstants; import javax.ws.rs.Consumes; @@ -34,6 +35,7 @@ import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import javax.ws.rs.QueryParam; import javax.ws.rs.core.MediaType; +import java.util.List; /** * @author Olivier Lamy @@ -166,5 +168,13 @@ public interface RepositoriesService @PathParam ("repositoryId") String repositoryId ) throws ArchivaRestServiceException; + /** + * @since 2.0 + */ + @Path ("runningRemoteDownloadIds") + @GET + @Produces ({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN }) + @RedbackAuthorization (noPermission = true) + StringList getRunningRemoteDownloadIds(); } |