1 package org.apache.archiva.web.mocks; 2 /* 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 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 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 18 * under the License. 19 */ 20 21 import org.apache.archiva.consumers.ConsumerException; 22 import org.apache.archiva.consumers.ConsumerMonitor; 23 import org.apache.archiva.consumers.InvalidRepositoryContentConsumer; 24 import org.apache.archiva.repository.ManagedRepository; 25 import org.springframework.stereotype.Service; 26 27 import java.util.Date; 28 import java.util.List; 29 30 /** 31 * @author Olivier Lamy 32 */ 33 @Service( "InvalidRepositoryContentConsumer#mock" ) 34 public class MockInvalidRepositoryContentConsumer 35 implements InvalidRepositoryContentConsumer 36 { 37 @Override 38 public String getId() 39 { 40 return "foo"; 41 } 42 43 @Override 44 public String getDescription() 45 { 46 return "the foo"; 47 } 48 49 @Override 50 public void addConsumerMonitor( ConsumerMonitor monitor ) 51 { 52 //To change body of implemented methods use File | Settings | File Templates. 53 } 54 55 @Override 56 public void removeConsumerMonitor( ConsumerMonitor monitor ) 57 { 58 //To change body of implemented methods use File | Settings | File Templates. 59 } 60 61 @Override 62 public List<String> getIncludes() 63 { 64 return null; //To change body of implemented methods use File | Settings | File Templates. 65 } 66 67 @Override 68 public List<String> getExcludes() 69 { 70 return null; //To change body of implemented methods use File | Settings | File Templates. 71 } 72 73 @Override 74 public void beginScan( ManagedRepository repository, Date whenGathered ) 75 throws ConsumerException 76 { 77 //To change body of implemented methods use File | Settings | File Templates. 78 } 79 80 @Override 81 public void beginScan( ManagedRepository repository, Date whenGathered, boolean executeOnEntireRepo ) 82 throws ConsumerException 83 { 84 //To change body of implemented methods use File | Settings | File Templates. 85 } 86 87 @Override 88 public void processFile( String path ) 89 throws ConsumerException 90 { 91 //To change body of implemented methods use File | Settings | File Templates. 92 } 93 94 @Override 95 public void processFile( String path, boolean executeOnEntireRepo ) 96 throws Exception 97 { 98 //To change body of implemented methods use File | Settings | File Templates. 99 } 100 101 @Override 102 public void completeScan() 103 { 104 //To change body of implemented methods use File | Settings | File Templates. 105 } 106 107 @Override 108 public void completeScan( boolean executeOnEntireRepo ) 109 { 110 //To change body of implemented methods use File | Settings | File Templates. 111 } 112 113 @Override 114 public boolean isProcessUnmodified() 115 { 116 return false; //To change body of implemented methods use File | Settings | File Templates. 117 } 118 }