001    package org.apache.archiva.web.mocks;
002    /*
003     * Licensed to the Apache Software Foundation (ASF) under one
004     * or more contributor license agreements.  See the NOTICE file
005     * distributed with this work for additional information
006     * regarding copyright ownership.  The ASF licenses this file
007     * to you under the Apache License, Version 2.0 (the
008     * "License"); you may not use this file except in compliance
009     * with the License.  You may obtain a copy of the License at
010     *
011     *   http://www.apache.org/licenses/LICENSE-2.0
012     *
013     * Unless required by applicable law or agreed to in writing,
014     * software distributed under the License is distributed on an
015     * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
016     * KIND, either express or implied.  See the License for the
017     * specific language governing permissions and limitations
018     * under the License.
019     */
020    
021    import org.apache.archiva.admin.model.beans.ManagedRepository;
022    import org.apache.archiva.consumers.ConsumerException;
023    import org.apache.archiva.consumers.ConsumerMonitor;
024    import org.apache.archiva.consumers.InvalidRepositoryContentConsumer;
025    import org.springframework.stereotype.Service;
026    
027    import java.util.Date;
028    import java.util.List;
029    
030    /**
031     * @author Olivier Lamy
032     */
033    @Service( "InvalidRepositoryContentConsumer#mock" )
034    public class MockInvalidRepositoryContentConsumer
035        implements InvalidRepositoryContentConsumer
036    {
037        public String getId()
038        {
039            return "foo";
040        }
041    
042        public String getDescription()
043        {
044            return "the foo";
045        }
046    
047        public boolean isPermanent()
048        {
049            return false;
050        }
051    
052        public void addConsumerMonitor( ConsumerMonitor monitor )
053        {
054            //To change body of implemented methods use File | Settings | File Templates.
055        }
056    
057        public void removeConsumerMonitor( ConsumerMonitor monitor )
058        {
059            //To change body of implemented methods use File | Settings | File Templates.
060        }
061    
062        public List<String> getIncludes()
063        {
064            return null;  //To change body of implemented methods use File | Settings | File Templates.
065        }
066    
067        public List<String> getExcludes()
068        {
069            return null;  //To change body of implemented methods use File | Settings | File Templates.
070        }
071    
072        public void beginScan( ManagedRepository repository, Date whenGathered )
073            throws ConsumerException
074        {
075            //To change body of implemented methods use File | Settings | File Templates.
076        }
077    
078        public void beginScan( ManagedRepository repository, Date whenGathered, boolean executeOnEntireRepo )
079            throws ConsumerException
080        {
081            //To change body of implemented methods use File | Settings | File Templates.
082        }
083    
084        public void processFile( String path )
085            throws ConsumerException
086        {
087            //To change body of implemented methods use File | Settings | File Templates.
088        }
089    
090        public void processFile( String path, boolean executeOnEntireRepo )
091            throws Exception
092        {
093            //To change body of implemented methods use File | Settings | File Templates.
094        }
095    
096        public void completeScan()
097        {
098            //To change body of implemented methods use File | Settings | File Templates.
099        }
100    
101        public void completeScan( boolean executeOnEntireRepo )
102        {
103            //To change body of implemented methods use File | Settings | File Templates.
104        }
105    
106        public boolean isProcessUnmodified()
107        {
108            return false;  //To change body of implemented methods use File | Settings | File Templates.
109        }
110    }