In order to copy artifacts from one repository to another i need to get a
list of available list of artifacts in the source repository. So i need to
have a list of ArtifactMetadata objects so i can have more information
about source artifacts.
here i am going to use following method in the DefaultMetadataResolver
class to get that list.
public Collection<ArtifactMetadata> getArtifacts( String repoId, String
namespace, String projectId, String projectVersion )
but my problem is i have only one input data to get that list which is
repoId.
may be i can generate other required parameters for the particular artifact
by using other methods in that defaultMetadataResolver class.
so i need to know what are the thing return from following methods.
1). public Collection<String> getRootNamespaces( String repoId )
for the internal repo what could be that list ..?
2). public Collection<String> getNamespaces( String repoId, String
namespace )
>> what is returning here
3). public Collection<String> getProjects( String repoId, String namespace
)
>>> this will return a list of available projects in that particular
repo. eg : log4j,Junit, (list of griop id's)
here what is the namespace parameter ..?
4). public Collection<String> getProjectVersions( String repoId, String
namespace, String projectId )
>>> here we can get the list of available projects in a particular
group.
5). public Collection<ArtifactMetadata> getArtifacts( String repoId, String
namespace, String projectId, String projectVersion )
/// actually i need to get this list so i can proceed with more details.
--
P.A.Eshan Sudharaka
Dept of Computer Science and Engineering
University of Moratuwa
Sri Lanka