This project has retired. For details please refer to its Attic page.
Source code
001package 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
021import org.apache.archiva.consumers.ConsumerException;
022import org.apache.archiva.consumers.ConsumerMonitor;
023import org.apache.archiva.consumers.InvalidRepositoryContentConsumer;
024import org.apache.archiva.repository.ManagedRepository;
025import org.springframework.stereotype.Service;
026
027import java.util.Date;
028import java.util.List;
029
030/**
031 * @author Olivier Lamy
032 */
033@Service( "InvalidRepositoryContentConsumer#mock" )
034public class MockInvalidRepositoryContentConsumer
035    implements InvalidRepositoryContentConsumer
036{
037    @Override
038    public String getId()
039    {
040        return "foo";
041    }
042
043    @Override
044    public String getDescription()
045    {
046        return "the foo";
047    }
048
049    @Override
050    public void addConsumerMonitor( ConsumerMonitor monitor )
051    {
052        //To change body of implemented methods use File | Settings | File Templates.
053    }
054
055    @Override
056    public void removeConsumerMonitor( ConsumerMonitor monitor )
057    {
058        //To change body of implemented methods use File | Settings | File Templates.
059    }
060
061    @Override
062    public List<String> getIncludes()
063    {
064        return null;  //To change body of implemented methods use File | Settings | File Templates.
065    }
066
067    @Override
068    public List<String> getExcludes()
069    {
070        return null;  //To change body of implemented methods use File | Settings | File Templates.
071    }
072
073    @Override
074    public void beginScan( ManagedRepository repository, Date whenGathered )
075        throws ConsumerException
076    {
077        //To change body of implemented methods use File | Settings | File Templates.
078    }
079
080    @Override
081    public void beginScan( ManagedRepository repository, Date whenGathered, boolean executeOnEntireRepo )
082        throws ConsumerException
083    {
084        //To change body of implemented methods use File | Settings | File Templates.
085    }
086
087    @Override
088    public void processFile( String path )
089        throws ConsumerException
090    {
091        //To change body of implemented methods use File | Settings | File Templates.
092    }
093
094    @Override
095    public void processFile( String path, boolean executeOnEntireRepo )
096        throws Exception
097    {
098        //To change body of implemented methods use File | Settings | File Templates.
099    }
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}