mirror of
https://github.com/apache/archiva.git
synced 2025-03-01 05:59:17 +00:00
add a getAll method
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@506315 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7e4bf4835b
commit
5db3c8ec41
@ -26,6 +26,8 @@
|
||||
import org.apache.maven.project.MavenProject;
|
||||
import org.apache.maven.project.ProjectBuildingException;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* ActiveManagedRepositories
|
||||
*
|
||||
@ -44,6 +46,8 @@ public interface ActiveManagedRepositories
|
||||
*/
|
||||
ArtifactRepository getArtifactRepository( String id );
|
||||
|
||||
List getAllArtifactRepositories();
|
||||
|
||||
RepositoryConfiguration getRepositoryConfiguration( String id );
|
||||
|
||||
MavenProject findProject( String groupId, String artifactId, String version )
|
||||
|
@ -183,6 +183,11 @@ public ArtifactRepository getArtifactRepository( String id )
|
||||
return repositoryFactory.createRepository( repoConfig );
|
||||
}
|
||||
|
||||
public List getAllArtifactRepositories()
|
||||
{
|
||||
return repositoryFactory.createRepositories( configuration );
|
||||
}
|
||||
|
||||
public RepositoryConfiguration getRepositoryConfiguration( String id )
|
||||
{
|
||||
return this.configuration.getRepositoryById( id );
|
||||
|
Loading…
x
Reference in New Issue
Block a user