@Path(value="/managedRepositoriesService/") public interface ManagedRepositoriesService
Modifier and Type | Method and Description |
---|---|
ManagedRepository |
addManagedRepository(ManagedRepository managedRepository) |
Boolean |
deleteManagedRepository(String repositoryId,
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) |
@Path(value="getManagedRepositories") @GET @Produces(value={"application/json","application/xml"}) List<ManagedRepository> getManagedRepositories() throws ArchivaRestServiceException
ArchivaRestServiceException
@Path(value="getManagedRepository/{repositoryId}") @GET @Produces(value={"application/json","application/xml"}) ManagedRepository getManagedRepository(@PathParam(value="repositoryId") String repositoryId) throws ArchivaRestServiceException
ArchivaRestServiceException
@Path(value="deleteManagedRepository") @GET @Produces(value={"application/json","application/xml","text/plain"}) Boolean deleteManagedRepository(@QueryParam(value="repositoryId") String repositoryId, @QueryParam(value="deleteContent") boolean deleteContent) throws ArchivaRestServiceException
ArchivaRestServiceException
@Path(value="addManagedRepository") @POST @Consumes(value={"application/json","application/xml"}) @Produces(value={"application/json","application/xml"}) ManagedRepository addManagedRepository(ManagedRepository managedRepository) throws ArchivaRestServiceException
ArchivaRestServiceException
@Path(value="updateManagedRepository") @POST @Consumes(value={"application/json","application/xml"}) @Produces(value={"application/json","application/xml","text/plain"}) Boolean updateManagedRepository(ManagedRepository managedRepository) throws ArchivaRestServiceException
ArchivaRestServiceException
@Path(value="fileLocationExists") @GET @Produces(value={"application/json","application/xml","text/plain"}) Boolean fileLocationExists(@QueryParam(value="fileLocation") String fileLocation) throws ArchivaRestServiceException
ArchivaRestServiceException
@Path(value="getManagedRepositoryStatistics/{repositoryId}/{lang}") @GET @Produces(value={"application/json","application/xml"}) ArchivaRepositoryStatistics getManagedRepositoryStatistics(@PathParam(value="repositoryId") String repositoryId, @PathParam(value="lang") String lang) throws ArchivaRestServiceException
ArchivaRestServiceException
@Path(value="getPomSnippet/{repositoryId}") @GET @Produces(value="text/plain") String getPomSnippet(@PathParam(value="repositoryId") String repositoryId) throws ArchivaRestServiceException
ArchivaRestServiceException
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.