@Path(value="/browseService/") public interface BrowseService
Modifier and Type | Method and Description |
---|---|
Boolean |
addMetadata(String groupId,
String artifactId,
String version,
String key,
String value,
String repositoryId) |
Boolean |
artifactAvailable(String groupId,
String artifactId,
String version,
String repositoryId)
verify if an artifact is available locally if not download from proxies will be try
|
Boolean |
artifactAvailable(String groupId,
String artifactId,
String version,
String classifier,
String repositoryId)
verify if an artifact is available locally if not download from proxies will be try
|
BrowseResult |
browseGroupId(String groupId,
String repositoryId) |
Boolean |
deleteMetadata(String groupId,
String artifactId,
String version,
String key,
String repositoryId) |
List<ArtifactContentEntry> |
getArtifactContentEntries(String groupId,
String artifactId,
String version,
String classifier,
String type,
String path,
String repositoryId) |
ArtifactContent |
getArtifactContentText(String groupId,
String artifactId,
String version,
String classifier,
String type,
String path,
String repositoryId)
if path is empty content of the file is returned (for pom view)
|
List<Artifact> |
getArtifactDownloadInfos(String groupId,
String artifactId,
String version,
String repositoryId) |
List<Artifact> |
getArtifacts(String repositoryId)
return List of all artifacts from this repository
|
List<Artifact> |
getArtifactsByMetadata(String key,
String value,
String repositoryId)
Return List of artifacts from this repository with artifact metadata key matching value.
|
List<Artifact> |
getArtifactsByProjectVersionMetadata(String key,
String value,
String repositoryId)
Return List of artifacts from this repository with project version level metadata key matching value.
|
List<Artifact> |
getArtifactsByProperty(String key,
String value,
String repositoryId)
Return List of artifacts from this repository with property key matching value.
|
List<Artifact> |
getDependees(String groupId,
String artifactId,
String version,
String repositoryId)
List of artifacts using the artifact passed in parameter.
|
List<Entry> |
getMetadatas(String groupId,
String artifactId,
String version,
String repositoryId) |
ProjectVersionMetadata |
getProjectMetadata(String groupId,
String artifactId,
String version,
String repositoryId) |
ProjectVersionMetadata |
getProjectVersionMetadata(String groupId,
String artifactId,
String repositoryId) |
BrowseResult |
getRootGroups(String repositoryId) |
List<TreeEntry> |
getTreeEntries(String groupId,
String artifactId,
String version,
String repositoryId)
return the dependency Tree for an artifacts
the List result has only one entry
|
List<ManagedRepository> |
getUserManagableRepositories() |
List<ManagedRepository> |
getUserRepositories() |
VersionsList |
getVersionsList(String groupId,
String artifactId,
String repositoryId) |
Boolean |
importMetadata(MetadataAddRequest metadataAddRequest,
String repository) |
List<Artifact> |
searchArtifacts(String text,
String repositoryId,
Boolean exact)
Search artifacts with any property matching text.
|
List<Artifact> |
searchArtifacts(String key,
String text,
String repositoryId,
Boolean exact)
Search artifacts with the property specified by key matching text.
|
@Path(value="rootGroups") @GET @Produces(value={"application/json","application/xml"}) BrowseResult getRootGroups(@QueryParam(value="repositoryId") String repositoryId) throws ArchivaRestServiceException
ArchivaRestServiceException
@Path(value="browseGroupId/{groupId}") @GET @Produces(value={"application/json","application/xml"}) BrowseResult browseGroupId(@PathParam(value="groupId") String groupId, @QueryParam(value="repositoryId") String repositoryId) throws ArchivaRestServiceException
groupId
- groupId to browserepositoryId
- optionnal (repository to browse if null
all available user repositories are used)ArchivaRestServiceException
@Path(value="versionsList/{g}/{a}") @GET @Produces(value={"application/json","application/xml"}) VersionsList getVersionsList(@PathParam(value="g") String groupId, @PathParam(value="a") String artifactId, @QueryParam(value="repositoryId") String repositoryId) throws ArchivaRestServiceException
ArchivaRestServiceException
@Path(value="projectVersionMetadata/{g}/{a}") @GET @Produces(value={"application/json","application/xml"}) ProjectVersionMetadata getProjectVersionMetadata(@PathParam(value="g") String groupId, @PathParam(value="a") String artifactId, @QueryParam(value="repositoryId") String repositoryId) throws ArchivaRestServiceException
ArchivaRestServiceException
@Path(value="projectVersionMetadata/{g}/{a}/{v}") @GET @Produces(value={"application/json","application/xml"}) ProjectVersionMetadata getProjectMetadata(@PathParam(value="g") String groupId, @PathParam(value="a") String artifactId, @PathParam(value="v") String version, @QueryParam(value="repositoryId") String repositoryId) throws ArchivaRestServiceException
ArchivaRestServiceException
@Path(value="userRepositories") @GET @Produces(value={"application/json","application/xml"}) List<ManagedRepository> getUserRepositories() throws ArchivaRestServiceException
ArchivaRestServiceException
@Path(value="userManagableRepositories") @GET @Produces(value={"application/json","application/xml"}) List<ManagedRepository> getUserManagableRepositories() throws ArchivaRestServiceException
ArchivaRestServiceException
@Path(value="treeEntries/{g}/{a}/{v}") @GET @Produces(value={"application/json","application/xml"}) List<TreeEntry> getTreeEntries(@PathParam(value="g") String groupId, @PathParam(value="a") String artifactId, @PathParam(value="v") String version, @QueryParam(value="repositoryId") String repositoryId) throws ArchivaRestServiceException
ArchivaRestServiceException
@Path(value="dependees/{g}/{a}/{v}") @GET @Produces(value={"application/json","application/xml"}) List<Artifact> getDependees(@PathParam(value="g") String groupId, @PathParam(value="a") String artifactId, @PathParam(value="v") String version, @QueryParam(value="repositoryId") String repositoryId) throws ArchivaRestServiceException
ArchivaRestServiceException
@Path(value="metadatas/{g}/{a}/{v}") @GET @Produces(value={"application/json","application/xml"}) List<Entry> getMetadatas(@PathParam(value="g") String groupId, @PathParam(value="a") String artifactId, @PathParam(value="v") String version, @QueryParam(value="repositoryId") String repositoryId) throws ArchivaRestServiceException
ArchivaRestServiceException
@Path(value="metadata/{g}/{a}/{v}/{key}/{value}") @PUT @Produces(value={"application/json","application/xml"}) Boolean addMetadata(@PathParam(value="g") String groupId, @PathParam(value="a") String artifactId, @PathParam(value="v") String version, @PathParam(value="key") String key, @PathParam(value="value") String value, @QueryParam(value="repositoryId") String repositoryId) throws ArchivaRestServiceException
ArchivaRestServiceException
@Path(value="metadata/{g}/{a}/{v}/{key}") @DELETE @Produces(value={"application/json","application/xml"}) Boolean deleteMetadata(@PathParam(value="g") String groupId, @PathParam(value="a") String artifactId, @PathParam(value="v") String version, @PathParam(value="key") String key, @QueryParam(value="repositoryId") String repositoryId) throws ArchivaRestServiceException
ArchivaRestServiceException
@Path(value="importMetadata") @POST Boolean importMetadata(MetadataAddRequest metadataAddRequest, @QueryParam(value="repository") String repository) throws ArchivaRestServiceException
ArchivaRestServiceException
@Path(value="artifactContentEntries/{g}/{a}/{v}") @GET @Produces(value={"application/json","application/xml"}) List<ArtifactContentEntry> getArtifactContentEntries(@PathParam(value="g") String groupId, @PathParam(value="a") String artifactId, @PathParam(value="v") String version, @QueryParam(value="c") String classifier, @QueryParam(value="t") String type, @QueryParam(value="p") String path, @QueryParam(value="repositoryId") String repositoryId) throws ArchivaRestServiceException
ArchivaRestServiceException
@Path(value="artifactDownloadInfos/{g}/{a}/{v}") @GET @Produces(value={"application/json","application/xml"}) List<Artifact> getArtifactDownloadInfos(@PathParam(value="g") String groupId, @PathParam(value="a") String artifactId, @PathParam(value="v") String version, @QueryParam(value="repositoryId") String repositoryId) throws ArchivaRestServiceException
ArchivaRestServiceException
@Path(value="artifactContentText/{g}/{a}/{v}") @GET @Produces(value={"application/json","application/xml"}) ArtifactContent getArtifactContentText(@PathParam(value="g") String groupId, @PathParam(value="a") String artifactId, @PathParam(value="v") String version, @QueryParam(value="c") String classifier, @QueryParam(value="t") String type, @QueryParam(value="p") String path, @QueryParam(value="repositoryId") String repositoryId) throws ArchivaRestServiceException
ArchivaRestServiceException
@Path(value="artifactAvailable/{g}/{a}/{v}") @GET @Produces(value={"application/json","application/xml"}) Boolean artifactAvailable(@PathParam(value="g") String groupId, @PathParam(value="a") String artifactId, @PathParam(value="v") String version, @QueryParam(value="repositoryId") String repositoryId) throws ArchivaRestServiceException
ArchivaRestServiceException
@Path(value="artifactAvailable/{g}/{a}/{v}/{c}") @GET @Produces(value={"application/json","application/xml"}) Boolean artifactAvailable(@PathParam(value="g") String groupId, @PathParam(value="a") String artifactId, @PathParam(value="v") String version, @PathParam(value="c") String classifier, @QueryParam(value="repositoryId") String repositoryId) throws ArchivaRestServiceException
ArchivaRestServiceException
@Path(value="artifacts/{r}") @GET @Produces(value={"application/json","application/xml"}) List<Artifact> getArtifacts(@PathParam(value="r") String repositoryId) throws ArchivaRestServiceException
repositoryId
- ArchivaRestServiceException
@Path(value="artifactsByProjectVersionMetadata/{key}/{value}") @GET @Produces(value={"application/json","application/xml"}) List<Artifact> getArtifactsByProjectVersionMetadata(@PathParam(value="key") String key, @PathParam(value="value") String value, @QueryParam(value="repositoryId") String repositoryId) throws ArchivaRestServiceException
key
- value
- repositoryId
- ArchivaRestServiceException
@Path(value="artifactsByMetadata/{key}/{value}") @GET @Produces(value={"application/json","application/xml"}) List<Artifact> getArtifactsByMetadata(@PathParam(value="key") String key, @PathParam(value="value") String value, @QueryParam(value="repositoryId") String repositoryId) throws ArchivaRestServiceException
key
- value
- repositoryId
- ArchivaRestServiceException
@Path(value="artifactsByProperty/{key}/{value}") @GET @Produces(value={"application/json","application/xml"}) List<Artifact> getArtifactsByProperty(@PathParam(value="key") String key, @PathParam(value="value") String value, @QueryParam(value="repositoryId") String repositoryId) throws ArchivaRestServiceException
key
- value
- repositoryId
- ArchivaRestServiceException
@Path(value="searchArtifacts/{text}") @GET @Produces(value={"application/json","application/xml"}) List<Artifact> searchArtifacts(@PathParam(value="text") String text, @QueryParam(value="repositoryId") String repositoryId, @QueryParam(value="exact") Boolean exact) throws ArchivaRestServiceException
text
- repositoryId
- exact
- ArchivaRestServiceException
@Path(value="searchArtifacts/{key}/{text}") @GET @Produces(value={"application/json","application/xml"}) List<Artifact> searchArtifacts(@PathParam(value="key") String key, @PathParam(value="text") String text, @QueryParam(value="repositoryId") String repositoryId, @QueryParam(value="exact") Boolean exact) throws ArchivaRestServiceException
key
- text
- repositoryId
- exact
- ArchivaRestServiceException
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.