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 java.util.Collection;
23 import java.util.Collections;
24 import java.util.Date;
25 import java.util.List;
27 import org.apache.archiva.metadata.model.ArtifactMetadata;
28 import org.apache.archiva.metadata.model.MetadataFacet;
29 import org.apache.archiva.metadata.model.ProjectMetadata;
30 import org.apache.archiva.metadata.model.ProjectVersionMetadata;
31 import org.apache.archiva.metadata.model.ProjectVersionReference;
33 public class TestMetadataRepository
34 implements MetadataRepository
36 public ProjectMetadata getProject( String repoId, String namespace, String projectId )
38 return null; //To change body of implemented methods use File | Settings | File Templates.
41 public ProjectVersionMetadata getProjectVersion( String repoId, String namespace, String projectId,
42 String projectVersion )
43 throws MetadataResolverException
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 )
76 throws MetadataResolverException
78 return null; //To change body of implemented methods use File | Settings | File Templates.
81 public void updateProject( String repoId, ProjectMetadata project )
83 //To change body of implemented methods use File | Settings | File Templates.
86 public void updateArtifact( String repoId, String namespace, String projectId, String projectVersion,
87 ArtifactMetadata artifactMeta )
89 //To change body of implemented methods use File | Settings | File Templates.
92 public void updateProjectVersion( String repoId, String namespace, String projectId,
93 ProjectVersionMetadata versionMetadata )
95 //To change body of implemented methods use File | Settings | File Templates.
98 public void updateProjectReference( String repoId, String namespace, String projectId, String projectVersion,
99 ProjectVersionReference reference )
101 //To change body of implemented methods use File | Settings | File Templates.
104 public void updateNamespace( String repoId, String namespace )
106 //To change body of implemented methods use File | Settings | File Templates.
109 public List<String> getMetadataFacets( String repodId, String facetId )
111 return Collections.emptyList();
114 public MetadataFacet getMetadataFacet( String repositoryId, String facetId, String name )
116 return null; //To change body of implemented methods use File | Settings | File Templates.
119 public void addMetadataFacet( String repositoryId, String facetId, String name, MetadataFacet metadataFacet )
121 //To change body of implemented methods use File | Settings | File Templates.
124 public void removeMetadataFacets( String repositoryId, String facetId )
126 //To change body of implemented methods use File | Settings | File Templates.
129 public List<ArtifactMetadata> getArtifactsByDateRange( String repoId, Date startTime, Date endTime )
131 return null; //To change body of implemented methods use File | Settings | File Templates.
134 public Collection<String> getRepositories()
136 return null; //To change body of implemented methods use File | Settings | File Templates.
139 public Collection<ArtifactMetadata> getArtifacts( String repoId, String namespace, String projectId,
140 String projectVersion )
142 return null; //To change body of implemented methods use File | Settings | File Templates.