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

All Known Implementing Classes:
DefaultBrowseService

public interface BrowseService

Since:
1.4-M3
Author:
Olivier Lamy

Method Summary
 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> 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> getUserRepositories()
           
 VersionsList getVersionsList(String groupId, String artifactId, String repositoryId)
           
 Boolean importMetadata(MetadataAddRequest metadataAddRequest, String repository)
           
 

Method Detail

getRootGroups

BrowseResult getRootGroups(String repositoryId)
                           throws ArchivaRestServiceException
Throws:
ArchivaRestServiceException

browseGroupId

BrowseResult browseGroupId(String groupId,
                           String repositoryId)
                           throws ArchivaRestServiceException
Parameters:
groupId - groupId to browse
repositoryId - optionnal (repository to browse if null all available user repositories are used)
Throws:
ArchivaRestServiceException

getVersionsList

VersionsList getVersionsList(String groupId,
                             String artifactId,
                             String repositoryId)
                             throws ArchivaRestServiceException
Throws:
ArchivaRestServiceException

getProjectVersionMetadata

ProjectVersionMetadata getProjectVersionMetadata(String groupId,
                                                 String artifactId,
                                                 String repositoryId)
                                                 throws ArchivaRestServiceException
Throws:
ArchivaRestServiceException

getProjectMetadata

ProjectVersionMetadata getProjectMetadata(String groupId,
                                          String artifactId,
                                          String version,
                                          String repositoryId)
                                          throws ArchivaRestServiceException
Throws:
ArchivaRestServiceException

getUserRepositories

List<ManagedRepository> getUserRepositories()
                                            throws ArchivaRestServiceException
Returns:
List of managed repositories current user can read
Throws:
ArchivaRestServiceException

getTreeEntries

List<TreeEntry> getTreeEntries(String groupId,
                               String artifactId,
                               String version,
                               String repositoryId)
                               throws ArchivaRestServiceException
return the dependency Tree for an artifacts the List result has only one entry

Throws:
ArchivaRestServiceException

getDependees

List<Artifact> getDependees(String groupId,
                            String artifactId,
                            String version,
                            String repositoryId)
                            throws ArchivaRestServiceException
List of artifacts using the artifact passed in parameter.

Throws:
ArchivaRestServiceException

getMetadatas

List<Entry> getMetadatas(String groupId,
                         String artifactId,
                         String version,
                         String repositoryId)
                         throws ArchivaRestServiceException
Throws:
ArchivaRestServiceException

addMetadata

Boolean addMetadata(String groupId,
                    String artifactId,
                    String version,
                    String key,
                    String value,
                    String repositoryId)
                    throws ArchivaRestServiceException
Throws:
ArchivaRestServiceException

deleteMetadata

Boolean deleteMetadata(String groupId,
                       String artifactId,
                       String version,
                       String key,
                       String repositoryId)
                       throws ArchivaRestServiceException
Throws:
ArchivaRestServiceException

importMetadata

Boolean importMetadata(MetadataAddRequest metadataAddRequest,
                       String repository)
                       throws ArchivaRestServiceException
Throws:
ArchivaRestServiceException

getArtifactContentEntries

List<ArtifactContentEntry> getArtifactContentEntries(String groupId,
                                                     String artifactId,
                                                     String version,
                                                     String classifier,
                                                     String type,
                                                     String path,
                                                     String repositoryId)
                                                     throws ArchivaRestServiceException
Throws:
ArchivaRestServiceException

getArtifactDownloadInfos

List<Artifact> getArtifactDownloadInfos(String groupId,
                                        String artifactId,
                                        String version,
                                        String repositoryId)
                                        throws ArchivaRestServiceException
Throws:
ArchivaRestServiceException

getArtifactContentText

ArtifactContent getArtifactContentText(String groupId,
                                       String artifactId,
                                       String version,
                                       String classifier,
                                       String type,
                                       String path,
                                       String repositoryId)
                                       throws ArchivaRestServiceException
if path is empty content of the file is returned (for pom view)

Throws:
ArchivaRestServiceException

artifactAvailable

Boolean artifactAvailable(String groupId,
                          String artifactId,
                          String version,
                          String repositoryId)
                          throws ArchivaRestServiceException
verify if an artifact is available locally if not download from proxies will be try

Throws:
ArchivaRestServiceException
Since:
1.4-M3

artifactAvailable

Boolean artifactAvailable(String groupId,
                          String artifactId,
                          String version,
                          String classifier,
                          String repositoryId)
                          throws ArchivaRestServiceException
verify if an artifact is available locally if not download from proxies will be try

Throws:
ArchivaRestServiceException
Since:
1.4-M4

getArtifacts

List<Artifact> getArtifacts(String repositoryId)
                            throws ArchivaRestServiceException
return List of all artifacts from this repository

Parameters:
repositoryId -
Returns:
Throws:
ArchivaRestServiceException
Since:
1.4-M3


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