1 package org.apache.archiva.rest.services.utils;
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
42 public String getDescription()
47 public boolean isPermanent()
52 public void addConsumerMonitor( ConsumerMonitor monitor )
54 //To change body of implemented methods use File | Settings | File Templates.
57 public void removeConsumerMonitor( ConsumerMonitor monitor )
59 //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.
67 public List<String> getExcludes()
69 return null; //To change body of implemented methods use File | Settings | File Templates.
72 public void beginScan( ManagedRepository repository, Date whenGathered )
73 throws ConsumerException
75 //To change body of implemented methods use File | Settings | File Templates.
78 public void beginScan( ManagedRepository repository, Date whenGathered, boolean executeOnEntireRepo )
79 throws ConsumerException
81 //To change body of implemented methods use File | Settings | File Templates.
84 public void processFile( String path )
85 throws ConsumerException
87 //To change body of implemented methods use File | Settings | File Templates.
90 public void processFile( String path, boolean executeOnEntireRepo )
93 //To change body of implemented methods use File | Settings | File Templates.
96 public void completeScan()
98 //To change body of implemented methods use File | Settings | File Templates.
101 public void completeScan( boolean executeOnEntireRepo )
103 //To change body of implemented methods use File | Settings | File Templates.
106 public boolean isProcessUnmodified()
108 return false; //To change body of implemented methods use File | Settings | File Templates.