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 )
44 return null; //To change body of implemented methods use File | Settings | File Templates.
47 public Collection<String> getArtifactVersions( String repoId, String namespace, String projectId,
48 String projectVersion )
50 return null; //To change body of implemented methods use File | Settings | File Templates.
53 public Collection<ProjectVersionReference> getProjectReferences( String repoId, String namespace, String projectId,
54 String projectVersion )
56 return null; //To change body of implemented methods use File | Settings | File Templates.
59 public Collection<String> getRootNamespaces( String repoId )
61 return null; //To change body of implemented methods use File | Settings | File Templates.
64 public Collection<String> getNamespaces( String repoId, String namespace )
66 return null; //To change body of implemented methods use File | Settings | File Templates.
69 public Collection<String> getProjects( String repoId, String namespace )
71 return null; //To change body of implemented methods use File | Settings | File Templates.
74 public Collection<String> getProjectVersions( String repoId, String namespace, String projectId )
76 return null; //To change body of implemented methods use File | Settings | File Templates.
79 public void updateProject( String repoId, ProjectMetadata project )
81 //To change body of implemented methods use File | Settings | File Templates.
84 public void updateArtifact( String repoId, String namespace, String projectId, String projectVersion,
85 ArtifactMetadata artifactMeta )
87 //To change body of implemented methods use File | Settings | File Templates.
90 public void updateProjectVersion( String repoId, String namespace, String projectId,
91 ProjectVersionMetadata versionMetadata )
93 //To change body of implemented methods use File | Settings | File Templates.
96 public void updateProjectReference( String repoId, String namespace, String projectId, String projectVersion,
97 ProjectVersionReference reference )
99 //To change body of implemented methods use File | Settings | File Templates.
102 public void updateNamespace( String repoId, String namespace )
104 //To change body of implemented methods use File | Settings | File Templates.
107 public List<String> getMetadataFacets( String repodId, String facetId )
109 return Collections.emptyList();
112 public MetadataFacet getMetadataFacet( String repositoryId, String facetId, String name )
114 return null; //To change body of implemented methods use File | Settings | File Templates.
117 public void addMetadataFacet( String repositoryId, MetadataFacet metadataFacet )
119 //To change body of implemented methods use File | Settings | File Templates.
122 public void removeMetadataFacets( String repositoryId, String facetId )
124 //To change body of implemented methods use File | Settings | File Templates.
127 public void removeMetadataFacet( String repoId, String facetId, String name )
129 //To change body of implemented methods use File | Settings | File Templates.
132 public List<ArtifactMetadata> getArtifactsByDateRange( String repoId, Date startTime, Date endTime )
134 return null; //To change body of implemented methods use File | Settings | File Templates.
137 public Collection<String> getRepositories()
139 return null; //To change body of implemented methods use File | Settings | File Templates.
142 public List<ArtifactMetadata> getArtifactsByChecksum( String repoId, String checksum )
144 return null; //To change body of implemented methods use File | Settings | File Templates.
147 public void deleteArtifact( String repositoryId, String namespace, String project, String version, String id )
149 //To change body of implemented methods use File | Settings | File Templates.
152 public void deleteRepository( String repoId )
154 //To change body of implemented methods use File | Settings | File Templates.
157 public Collection<ArtifactMetadata> getArtifacts( String repoId, String namespace, String projectId,
158 String projectVersion )
160 return null; //To change body of implemented methods use File | Settings | File Templates.