1 package org.apache.maven.archiva.consumers.core.repository.stubs;
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
23 import java.util.Collection;
25 import junit.framework.Assert;
27 import org.apache.lucene.analysis.Analyzer;
28 import org.apache.lucene.queryParser.QueryParser;
29 import org.apache.lucene.search.Searchable;
30 import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration;
31 import org.apache.maven.archiva.indexer.RepositoryContentIndex;
32 import org.apache.maven.archiva.indexer.RepositoryIndexException;
33 import org.apache.maven.archiva.indexer.RepositoryIndexSearchException;
34 import org.apache.maven.archiva.indexer.lucene.LuceneEntryConverter;
35 import org.apache.maven.archiva.indexer.lucene.LuceneRepositoryContentRecord;
38 * @author <a href="mailto:oching@apache.org">Maria Odea Ching</a>
41 public class LuceneRepositoryContentIndexStub
42 implements RepositoryContentIndex
45 public void deleteRecords( Collection records )
46 throws RepositoryIndexException
48 // TODO Auto-generated method stub
49 Assert.assertEquals( 2, records.size() );
52 public boolean exists()
53 throws RepositoryIndexException
55 // TODO Auto-generated method stub
59 public Collection getAllRecordKeys()
60 throws RepositoryIndexException
62 // TODO Auto-generated method stub
66 public Analyzer getAnalyzer()
68 // TODO Auto-generated method stub
72 public LuceneEntryConverter getEntryConverter()
74 // TODO Auto-generated method stub
80 // TODO Auto-generated method stub
84 public File getIndexDirectory()
86 // TODO Auto-generated method stub
90 public QueryParser getQueryParser()
92 // TODO Auto-generated method stub
96 public ManagedRepositoryConfiguration getRepository()
98 // TODO Auto-generated method stub
102 public Searchable getSearchable()
103 throws RepositoryIndexSearchException
105 // TODO Auto-generated method stub
109 public void indexRecords( Collection records )
110 throws RepositoryIndexException
112 // TODO Auto-generated method stub
116 public void modifyRecord( LuceneRepositoryContentRecord record )
117 throws RepositoryIndexException
119 // TODO Auto-generated method stub
123 public void modifyRecords( Collection records )
124 throws RepositoryIndexException
126 // TODO Auto-generated method stub