1 package org.apache.archiva.web.mocks;
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License. You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied. See the License for the
17 * specific language governing permissions and limitations
21 import org.apache.archiva.admin.model.beans.ManagedRepository;
22 import org.apache.archiva.consumers.ConsumerException;
23 import org.apache.archiva.consumers.ConsumerMonitor;
24 import org.apache.archiva.consumers.InvalidRepositoryContentConsumer;
25 import org.springframework.stereotype.Service;
27 import java.util.Date;
28 import java.util.List;
31 * @author Olivier Lamy
33 @Service( "InvalidRepositoryContentConsumer#mock" )
34 public class MockInvalidRepositoryContentConsumer
35 implements InvalidRepositoryContentConsumer
44 public String getDescription()
50 public void addConsumerMonitor( ConsumerMonitor monitor )
52 //To change body of implemented methods use File | Settings | File Templates.
56 public void removeConsumerMonitor( ConsumerMonitor monitor )
58 //To change body of implemented methods use File | Settings | File Templates.
62 public List<String> getIncludes()
64 return null; //To change body of implemented methods use File | Settings | File Templates.
68 public List<String> getExcludes()
70 return null; //To change body of implemented methods use File | Settings | File Templates.
74 public void beginScan( ManagedRepository repository, Date whenGathered )
75 throws ConsumerException
77 //To change body of implemented methods use File | Settings | File Templates.
81 public void beginScan( ManagedRepository repository, Date whenGathered, boolean executeOnEntireRepo )
82 throws ConsumerException
84 //To change body of implemented methods use File | Settings | File Templates.
88 public void processFile( String path )
89 throws ConsumerException
91 //To change body of implemented methods use File | Settings | File Templates.
95 public void processFile( String path, boolean executeOnEntireRepo )
98 //To change body of implemented methods use File | Settings | File Templates.
102 public void completeScan()
104 //To change body of implemented methods use File | Settings | File Templates.
108 public void completeScan( boolean executeOnEntireRepo )
110 //To change body of implemented methods use File | Settings | File Templates.
114 public boolean isProcessUnmodified()
116 return false; //To change body of implemented methods use File | Settings | File Templates.