001package org.apache.archiva.scheduler.indexing;
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.admin.model.beans.NetworkProxy;
022import org.apache.archiva.admin.model.beans.RemoteRepository;
023import org.apache.archiva.admin.model.remote.RemoteRepositoryAdmin;
024import org.apache.archiva.proxy.common.WagonFactory;
025import org.apache.maven.index.packer.IndexPacker;
026import org.apache.maven.index.updater.IndexUpdater;
027
028/**
029 * @author Olivier Lamy
030 * @since 1.4-M1
031 */
032public class DownloadRemoteIndexTaskRequest
033{
034    private RemoteRepository remoteRepository;
035
036    private RemoteRepositoryAdmin remoteRepositoryAdmin;
037
038    private WagonFactory wagonFactory;
039
040    private NetworkProxy networkProxy;
041
042    private boolean fullDownload;
043
044    private IndexUpdater indexUpdater;
045
046    private IndexPacker indexPacker;
047
048    public DownloadRemoteIndexTaskRequest()
049    {
050        // no op
051    }
052
053    public RemoteRepository getRemoteRepository()
054    {
055        return remoteRepository;
056    }
057
058    public DownloadRemoteIndexTaskRequest setRemoteRepository( RemoteRepository remoteRepository )
059    {
060        this.remoteRepository = remoteRepository;
061        return this;
062    }
063
064
065    public WagonFactory getWagonFactory()
066    {
067        return wagonFactory;
068    }
069
070    public DownloadRemoteIndexTaskRequest setWagonFactory( WagonFactory wagonFactory )
071    {
072        this.wagonFactory = wagonFactory;
073        return this;
074    }
075
076    public NetworkProxy getNetworkProxy()
077    {
078        return networkProxy;
079    }
080
081    public DownloadRemoteIndexTaskRequest setNetworkProxy( NetworkProxy networkProxy )
082    {
083        this.networkProxy = networkProxy;
084        return this;
085    }
086
087    public boolean isFullDownload()
088    {
089        return fullDownload;
090    }
091
092    public DownloadRemoteIndexTaskRequest setFullDownload( boolean fullDownload )
093    {
094        this.fullDownload = fullDownload;
095        return this;
096    }
097
098    public IndexUpdater getIndexUpdater()
099    {
100        return indexUpdater;
101    }
102
103    public DownloadRemoteIndexTaskRequest setIndexUpdater( IndexUpdater indexUpdater )
104    {
105        this.indexUpdater = indexUpdater;
106        return this;
107    }
108
109    public RemoteRepositoryAdmin getRemoteRepositoryAdmin()
110    {
111        return remoteRepositoryAdmin;
112    }
113
114    public DownloadRemoteIndexTaskRequest setRemoteRepositoryAdmin( RemoteRepositoryAdmin remoteRepositoryAdmin )
115    {
116        this.remoteRepositoryAdmin = remoteRepositoryAdmin;
117        return this;
118    }
119
120    public IndexPacker getIndexPacker()
121    {
122        return indexPacker;
123    }
124
125    public DownloadRemoteIndexTaskRequest setIndexPacker( IndexPacker indexPacker )
126    {
127        this.indexPacker = indexPacker;
128        return this;
129    }
130}