This project has retired. For details please refer to its Attic page.
AbstractMetadataRepository xref
View Javadoc
1   package org.apache.archiva.metadata.repository;
2   
3   /*
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
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
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
19  * under the License.
20  */
21  
22  import java.util.Collection;
23  import java.util.Date;
24  import java.util.List;
25  
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;
31  
32  public abstract class AbstractMetadataRepository
33      implements MetadataRepository
34  {
35  
36      @Override
37      public void updateProject( String repositoryId, ProjectMetadata project )
38          throws MetadataRepositoryException
39      {
40          throw new UnsupportedOperationException();
41      }
42  
43      @Override
44      public void updateArtifact( String repositoryId, String namespace, String projectId, String projectVersion,
45                                  ArtifactMetadata artifactMeta )
46          throws MetadataRepositoryException
47      {
48          throw new UnsupportedOperationException();
49      }
50  
51      @Override
52      public void updateProjectVersion( String repositoryId, String namespace, String projectId,
53                                        ProjectVersionMetadata versionMetadata )
54          throws MetadataRepositoryException
55      {
56          throw new UnsupportedOperationException();
57      }
58  
59      @Override
60      public void updateNamespace( String repositoryId, String namespace )
61          throws MetadataRepositoryException
62      {
63          throw new UnsupportedOperationException();
64      }
65  
66      @Override
67      public List<String> getMetadataFacets( String repositoryId, String facetId )
68          throws MetadataRepositoryException
69      {
70          throw new UnsupportedOperationException();
71      }
72  
73      @Override
74      public boolean hasMetadataFacet( String repositoryId, String facetId )
75          throws MetadataRepositoryException
76      {
77          return false;
78      }
79  
80      @Override
81      public MetadataFacet getMetadataFacet( String repositoryId, String facetId, String name )
82          throws MetadataRepositoryException
83      {
84          throw new UnsupportedOperationException();
85      }
86  
87      @Override
88      public void addMetadataFacet( String repositoryId, MetadataFacet metadataFacet )
89          throws MetadataRepositoryException
90      {
91      }
92  
93      @Override
94      public void removeMetadataFacets( String repositoryId, String facetId )
95          throws MetadataRepositoryException
96      {
97      }
98  
99      @Override
100     public void removeMetadataFacet( String repositoryId, String facetId, String name )
101         throws MetadataRepositoryException
102     {
103         throw new UnsupportedOperationException();
104     }
105 
106     @Override
107     public List<ArtifactMetadata> getArtifactsByDateRange( String repositoryId, Date startTime, Date endTime )
108         throws MetadataRepositoryException
109     {
110         throw new UnsupportedOperationException();
111     }
112 
113     @Override
114     public Collection<String> getRepositories()
115         throws MetadataRepositoryException
116     {
117         throw new UnsupportedOperationException();
118     }
119 
120     @Override
121     public Collection<ArtifactMetadata> getArtifactsByChecksum( String repositoryId, String checksum )
122         throws MetadataRepositoryException
123     {
124         throw new UnsupportedOperationException();
125     }
126 
127     @Override
128     public List<ArtifactMetadata> getArtifactsByProjectVersionMetadata( String key , String value , String repositoryId  )
129         throws MetadataRepositoryException
130     {
131         throw new UnsupportedOperationException();
132     }
133 
134     @Override
135     public List<ArtifactMetadata> getArtifactsByMetadata( String key , String value , String repositoryId  )
136         throws MetadataRepositoryException
137     {
138         throw new UnsupportedOperationException();
139     }
140 
141     @Override
142     public List<ArtifactMetadata> getArtifactsByProperty( String key, String value, String repositoryId )
143         throws MetadataRepositoryException
144     {
145         throw new UnsupportedOperationException();
146     }
147 
148     @Override
149     public void removeArtifact( String repositoryId, String namespace, String project, String version, String id )
150         throws MetadataRepositoryException
151     {
152         throw new UnsupportedOperationException();
153     }
154 
155     @Override
156     public void removeArtifact( ArtifactMetadata artifactMetadata, String baseVersion )
157         throws MetadataRepositoryException
158     {
159         throw new UnsupportedOperationException();
160     }
161 
162     @Override
163     public void removeArtifact( String repositoryId, String namespace, String project, String version,
164                                 MetadataFacet metadataFacet )
165         throws MetadataRepositoryException
166     {
167         throw new UnsupportedOperationException();
168     }
169 
170     @Override
171     public void removeRepository( String repositoryId )
172         throws MetadataRepositoryException
173     {
174     }
175 
176     @Override
177     public void removeNamespace( String repositoryId, String namespace )
178         throws MetadataRepositoryException
179     {
180         throw new UnsupportedOperationException();
181 
182     }
183 
184     @Override
185     public List<ArtifactMetadata> getArtifacts( String repositoryId )
186         throws MetadataRepositoryException
187     {
188         throw new UnsupportedOperationException();
189     }
190 
191     @Override
192     public ProjectMetadata getProject( String repoId, String namespace, String projectId )
193         throws MetadataResolutionException
194     {
195         throw new UnsupportedOperationException();
196     }
197 
198     @Override
199     public ProjectVersionMetadata getProjectVersion( String repoId, String namespace, String projectId,
200                                                      String projectVersion )
201         throws MetadataResolutionException
202     {
203         throw new UnsupportedOperationException();
204     }
205 
206     @Override
207     public Collection<String> getArtifactVersions( String repoId, String namespace, String projectId,
208                                                    String projectVersion )
209         throws MetadataResolutionException
210     {
211         throw new UnsupportedOperationException();
212     }
213 
214     @Override
215     public Collection<ProjectVersionReference> getProjectReferences( String repoId, String namespace, String projectId,
216                                                                      String projectVersion )
217         throws MetadataResolutionException
218     {
219         throw new UnsupportedOperationException();
220     }
221 
222     @Override
223     public Collection<String> getRootNamespaces( String repoId )
224         throws MetadataResolutionException
225     {
226         throw new UnsupportedOperationException();
227     }
228 
229     @Override
230     public Collection<String> getNamespaces( String repoId, String namespace )
231         throws MetadataResolutionException
232     {
233         throw new UnsupportedOperationException();
234     }
235 
236     @Override
237     public Collection<String> getProjects( String repoId, String namespace )
238         throws MetadataResolutionException
239     {
240         throw new UnsupportedOperationException();
241     }
242 
243     @Override
244     public Collection<String> getProjectVersions( String repoId, String namespace, String projectId )
245         throws MetadataResolutionException
246     {
247         throw new UnsupportedOperationException();
248     }
249 
250     @Override
251     public void removeProjectVersion( String repoId, String namespace, String projectId, String projectVersion )
252         throws MetadataRepositoryException
253     {
254         throw new UnsupportedOperationException();
255     }
256 
257     @Override
258     public Collection<ArtifactMetadata> getArtifacts( String repoId, String namespace, String projectId,
259                                                       String projectVersion )
260         throws MetadataResolutionException
261     {
262         throw new UnsupportedOperationException();
263     }
264 
265     @Override
266     public void removeProject( String repositoryId, String namespace, String projectId )
267         throws MetadataRepositoryException
268     {
269         throw new UnsupportedOperationException();
270     }
271 
272     @Override
273     public void save()
274     {
275     }
276 
277     @Override
278     public void close()
279         throws MetadataRepositoryException
280     {
281     }
282 
283     @Override
284     public void revert()
285     {
286     }
287 
288     @Override
289     public boolean canObtainAccess( Class<?> aClass )
290     {
291         throw new UnsupportedOperationException();
292     }
293 
294     @Override
295     public <T> T obtainAccess( Class<T> aClass )
296         throws MetadataRepositoryException
297     {
298         throw new UnsupportedOperationException();
299     }
300 
301     @Override
302     public List<ArtifactMetadata> searchArtifacts( String text, String repositoryId, boolean exact )
303         throws MetadataRepositoryException
304     {
305         throw new UnsupportedOperationException();
306     }
307 
308     @Override
309     public List<ArtifactMetadata> searchArtifacts( String key, String text, String repositoryId, boolean exact )
310         throws MetadataRepositoryException
311     {
312         throw new UnsupportedOperationException();
313     }
314 
315 }