1package org.apache.archiva.web.mocks;
2/*3 * Licensed to the Apache Software Foundation (ASF) under one4 * or more contributor license agreements. See the NOTICE file5 * distributed with this work for additional information6 * regarding copyright ownership. The ASF licenses this file7 * to you under the Apache License, Version 2.0 (the8 * "License"); you may not use this file except in compliance9 * with the License. You may obtain a copy of the License at10 *11 * http://www.apache.org/licenses/LICENSE-2.012 *13 * Unless required by applicable law or agreed to in writing,14 * software distributed under the License is distributed on an15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY16 * KIND, either express or implied. See the License for the17 * specific language governing permissions and limitations18 * under the License.19 */2021import org.apache.archiva.admin.model.beans.ManagedRepository;
22import org.apache.archiva.consumers.ConsumerException;
23import org.apache.archiva.consumers.ConsumerMonitor;
24import org.apache.archiva.consumers.InvalidRepositoryContentConsumer;
25import org.springframework.stereotype.Service;
2627import java.util.Date;
28import java.util.List;
2930/**31 * @author Olivier Lamy32 */33 @Service( "InvalidRepositoryContentConsumer#mock" )
34publicclassMockInvalidRepositoryContentConsumer35implements InvalidRepositoryContentConsumer
36 {
37 @Override
38public String getId()
39 {
40return"foo";
41 }
4243 @Override
44public String getDescription()
45 {
46return"the foo";
47 }
4849 @Override
50publicvoid addConsumerMonitor( ConsumerMonitor monitor )
51 {
52//To change body of implemented methods use File | Settings | File Templates.53 }
5455 @Override
56publicvoid removeConsumerMonitor( ConsumerMonitor monitor )
57 {
58//To change body of implemented methods use File | Settings | File Templates.59 }
6061 @Override
62public List<String> getIncludes()
63 {
64returnnull; //To change body of implemented methods use File | Settings | File Templates.65 }
6667 @Override
68public List<String> getExcludes()
69 {
70returnnull; //To change body of implemented methods use File | Settings | File Templates.71 }
7273 @Override
74publicvoid beginScan( ManagedRepository repository, Date whenGathered )
75throws ConsumerException
76 {
77//To change body of implemented methods use File | Settings | File Templates.78 }
7980 @Override
81publicvoid beginScan( ManagedRepository repository, Date whenGathered, boolean executeOnEntireRepo )
82throws ConsumerException
83 {
84//To change body of implemented methods use File | Settings | File Templates.85 }
8687 @Override
88publicvoid processFile( String path )
89throws ConsumerException
90 {
91//To change body of implemented methods use File | Settings | File Templates.92 }
9394 @Override
95publicvoid processFile( String path, boolean executeOnEntireRepo )
96throws Exception
97 {
98//To change body of implemented methods use File | Settings | File Templates.99 }
100101 @Override
102publicvoid completeScan()
103 {
104//To change body of implemented methods use File | Settings | File Templates.105 }
106107 @Override
108publicvoid completeScan( boolean executeOnEntireRepo )
109 {
110//To change body of implemented methods use File | Settings | File Templates.111 }
112113 @Override
114publicboolean isProcessUnmodified()
115 {
116return false; //To change body of implemented methods use File | Settings | File Templates.117 }
118 }