1 package org.apache.archiva.metadata.repository;
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements. See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership. The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the
9 * "License"); you may not use this file except in compliance
10 * with the License. You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing,
15 * software distributed under the License is distributed on an
16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 * KIND, either express or implied. See the License for the
18 * specific language governing permissions and limitations
22 import org.apache.archiva.metadata.model.ArtifactMetadata;
23 import org.apache.archiva.metadata.model.MetadataFacet;
24 import org.apache.archiva.metadata.model.ProjectMetadata;
25 import org.apache.archiva.metadata.model.ProjectVersionMetadata;
26 import org.apache.archiva.metadata.model.ProjectVersionReference;
28 import java.util.Collection;
29 import java.util.Collections;
30 import java.util.Date;
31 import java.util.List;
33 // TODO: remove - it does nothing
34 public class TestMetadataRepository
35 implements MetadataRepository
37 public ProjectMetadata getProject( String repoId, String namespace, String projectId )
39 return null; //To change body of implemented methods use File | Settings | File Templates.
42 public ProjectVersionMetadata getProjectVersion( String repoId, String namespace, String projectId,
43 String projectVersion )
45 return null; //To change body of implemented methods use File | Settings | File Templates.
48 public Collection<String> getArtifactVersions( String repoId, String namespace, String projectId,
49 String projectVersion )
51 return null; //To change body of implemented methods use File | Settings | File Templates.
54 public Collection<ProjectVersionReference> getProjectReferences( String repoId, String namespace, String projectId,
55 String projectVersion )
57 return null; //To change body of implemented methods use File | Settings | File Templates.
60 public Collection<String> getRootNamespaces( String repoId )
62 return null; //To change body of implemented methods use File | Settings | File Templates.
65 public Collection<String> getNamespaces( String repoId, String namespace )
67 return null; //To change body of implemented methods use File | Settings | File Templates.
70 public Collection<String> getProjects( String repoId, String namespace )
72 return null; //To change body of implemented methods use File | Settings | File Templates.
75 public Collection<String> getProjectVersions( String repoId, String namespace, String projectId )
77 return null; //To change body of implemented methods use File | Settings | File Templates.
80 public void updateProject( String repoId, ProjectMetadata project )
82 //To change body of implemented methods use File | Settings | File Templates.
85 public void updateArtifact( String repoId, String namespace, String projectId, String projectVersion,
86 ArtifactMetadata artifactMeta )
88 //To change body of implemented methods use File | Settings | File Templates.
91 public void updateProjectVersion( String repoId, String namespace, String projectId,
92 ProjectVersionMetadata versionMetadata )
94 //To change body of implemented methods use File | Settings | File Templates.
97 public void updateProjectReference( String repoId, String namespace, String projectId, String projectVersion,
98 ProjectVersionReference reference )
100 //To change body of implemented methods use File | Settings | File Templates.
103 public void updateNamespace( String repoId, String namespace )
105 //To change body of implemented methods use File | Settings | File Templates.
108 public List<String> getMetadataFacets( String repodId, String facetId )
110 return Collections.emptyList();
113 public MetadataFacet getMetadataFacet( String repositoryId, String facetId, String name )
115 return null; //To change body of implemented methods use File | Settings | File Templates.
118 public void addMetadataFacet( String repositoryId, MetadataFacet metadataFacet )
120 //To change body of implemented methods use File | Settings | File Templates.
123 public void removeMetadataFacets( String repositoryId, String facetId )
125 //To change body of implemented methods use File | Settings | File Templates.
128 public void removeMetadataFacet( String repoId, String facetId, String name )
130 //To change body of implemented methods use File | Settings | File Templates.
133 public List<ArtifactMetadata> getArtifactsByDateRange( String repoId, Date startTime, Date endTime )
135 return null; //To change body of implemented methods use File | Settings | File Templates.
138 public Collection<String> getRepositories()
140 return null; //To change body of implemented methods use File | Settings | File Templates.
143 public List<ArtifactMetadata> getArtifactsByChecksum( String repoId, String checksum )
145 return null; //To change body of implemented methods use File | Settings | File Templates.
148 public void removeArtifact( String repositoryId, String namespace, String project, String version, String id )
150 //To change body of implemented methods use File | Settings | File Templates.
153 public void removeRepository( String repoId )
155 //To change body of implemented methods use File | Settings | File Templates.
158 public Collection<ArtifactMetadata> getArtifacts( String repoId, String namespace, String projectId,
159 String projectVersion )
161 return null; //To change body of implemented methods use File | Settings | File Templates.
166 //To change body of implemented methods use File | Settings | File Templates.
171 //To change body of implemented methods use File | Settings | File Templates.
176 //To change body of implemented methods use File | Settings | File Templates.
179 public List<ArtifactMetadata> getArtifacts( String repositoryId )