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.Date;
24 import java.util.List;
26 import org.apache.archiva.metadata.model.ArtifactMetadata;
27 import org.apache.archiva.metadata.model.MetadataFacet;
28 import org.apache.archiva.metadata.model.ProjectMetadata;
29 import org.apache.archiva.metadata.model.ProjectVersionMetadata;
30 import org.apache.archiva.metadata.model.ProjectVersionReference;
32 public abstract class AbstractMetadataRepository
33 implements MetadataRepository
37 public void updateProject( String repositoryId, ProjectMetadata project )
38 throws MetadataRepositoryException
40 throw new UnsupportedOperationException();
44 public void updateArtifact( String repositoryId, String namespace, String projectId, String projectVersion,
45 ArtifactMetadata artifactMeta )
46 throws MetadataRepositoryException
48 throw new UnsupportedOperationException();
52 public void updateProjectVersion( String repositoryId, String namespace, String projectId,
53 ProjectVersionMetadata versionMetadata )
54 throws MetadataRepositoryException
56 throw new UnsupportedOperationException();
60 public void updateNamespace( String repositoryId, String namespace )
61 throws MetadataRepositoryException
63 throw new UnsupportedOperationException();
67 public List<String> getMetadataFacets( String repositoryId, String facetId )
68 throws MetadataRepositoryException
70 throw new UnsupportedOperationException();
74 public boolean hasMetadataFacet( String repositoryId, String facetId )
75 throws MetadataRepositoryException
81 public MetadataFacet getMetadataFacet( String repositoryId, String facetId, String name )
82 throws MetadataRepositoryException
84 throw new UnsupportedOperationException();
88 public void addMetadataFacet( String repositoryId, MetadataFacet metadataFacet )
89 throws MetadataRepositoryException
94 public void removeMetadataFacets( String repositoryId, String facetId )
95 throws MetadataRepositoryException
100 public void removeMetadataFacet( String repositoryId, String facetId, String name )
101 throws MetadataRepositoryException
103 throw new UnsupportedOperationException();
107 public List<ArtifactMetadata> getArtifactsByDateRange( String repositoryId, Date startTime, Date endTime )
108 throws MetadataRepositoryException
110 throw new UnsupportedOperationException();
114 public Collection<String> getRepositories()
115 throws MetadataRepositoryException
117 throw new UnsupportedOperationException();
121 public Collection<ArtifactMetadata> getArtifactsByChecksum( String repositoryId, String checksum )
122 throws MetadataRepositoryException
124 throw new UnsupportedOperationException();
128 public void removeArtifact( String repositoryId, String namespace, String project, String version, String id )
129 throws MetadataRepositoryException
131 throw new UnsupportedOperationException();
135 public void removeArtifact( ArtifactMetadata artifactMetadata, String baseVersion )
136 throws MetadataRepositoryException
138 throw new UnsupportedOperationException();
142 public void removeArtifact( String repositoryId, String namespace, String project, String version,
143 MetadataFacet metadataFacet )
144 throws MetadataRepositoryException
146 throw new UnsupportedOperationException();
150 public void removeRepository( String repositoryId )
151 throws MetadataRepositoryException
156 public void removeNamespace( String repositoryId, String namespace )
157 throws MetadataRepositoryException
159 throw new UnsupportedOperationException();
164 public List<ArtifactMetadata> getArtifacts( String repositoryId )
165 throws MetadataRepositoryException
167 throw new UnsupportedOperationException();
171 public ProjectMetadata getProject( String repoId, String namespace, String projectId )
172 throws MetadataResolutionException
174 throw new UnsupportedOperationException();
178 public ProjectVersionMetadata getProjectVersion( String repoId, String namespace, String projectId,
179 String projectVersion )
180 throws MetadataResolutionException
182 throw new UnsupportedOperationException();
186 public Collection<String> getArtifactVersions( String repoId, String namespace, String projectId,
187 String projectVersion )
188 throws MetadataResolutionException
190 throw new UnsupportedOperationException();
194 public Collection<ProjectVersionReference> getProjectReferences( String repoId, String namespace, String projectId,
195 String projectVersion )
196 throws MetadataResolutionException
198 throw new UnsupportedOperationException();
202 public Collection<String> getRootNamespaces( String repoId )
203 throws MetadataResolutionException
205 throw new UnsupportedOperationException();
209 public Collection<String> getNamespaces( String repoId, String namespace )
210 throws MetadataResolutionException
212 throw new UnsupportedOperationException();
216 public Collection<String> getProjects( String repoId, String namespace )
217 throws MetadataResolutionException
219 throw new UnsupportedOperationException();
223 public Collection<String> getProjectVersions( String repoId, String namespace, String projectId )
224 throws MetadataResolutionException
226 throw new UnsupportedOperationException();
230 public void removeProjectVersion( String repoId, String namespace, String projectId, String projectVersion )
231 throws MetadataRepositoryException
233 throw new UnsupportedOperationException();
237 public Collection<ArtifactMetadata> getArtifacts( String repoId, String namespace, String projectId,
238 String projectVersion )
239 throws MetadataResolutionException
241 throw new UnsupportedOperationException();
245 public void removeProject( String repositoryId, String namespace, String projectId )
246 throws MetadataRepositoryException
248 throw new UnsupportedOperationException();
258 throws MetadataRepositoryException
268 public boolean canObtainAccess( Class<?> aClass )
270 throw new UnsupportedOperationException();
274 public <T> T obtainAccess( Class<T> aClass )
275 throws MetadataRepositoryException
277 throw new UnsupportedOperationException();