1 package org.apache.archiva.indexer.merger;
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 java.util.Collection;
24 * @author Olivier Lamy
26 public class IndexMergerRequest
29 * repositories Ids to merge content
31 private Collection<String> repositoriesIds;
34 * will generate a downloadable index
36 private boolean packIndex;
39 * original groupId (repositoryGroup id)
41 private String groupId;
43 private String mergedIndexPath = "/.indexer";
45 public IndexMergerRequest( Collection<String> repositoriesIds, boolean packIndex, String groupId )
47 this.repositoriesIds = repositoriesIds;
48 this.packIndex = packIndex;
49 this.groupId = groupId;
55 public IndexMergerRequest( Collection<String> repositoriesIds, boolean packIndex, String groupId,
56 String mergedIndexPath )
58 this.repositoriesIds = repositoriesIds;
59 this.packIndex = packIndex;
60 this.groupId = groupId;
61 this.mergedIndexPath = mergedIndexPath;
64 public Collection<String> getRepositoriesIds()
66 return repositoriesIds;
69 public void setRepositoriesIds( Collection<String> repositoriesIds )
71 this.repositoriesIds = repositoriesIds;
74 public boolean isPackIndex()
79 public void setPackIndex( boolean packIndex )
81 this.packIndex = packIndex;
84 public String getGroupId()
89 public void setGroupId( String groupId )
91 this.groupId = groupId;
94 public String getMergedIndexPath()
96 return mergedIndexPath;
99 public void setMergedIndexPath( String mergedIndexPath )
101 this.mergedIndexPath = mergedIndexPath;
105 public String toString()
107 final StringBuilder sb = new StringBuilder( "IndexMergerRequest{" );
108 sb.append( "repositoriesIds=" ).append( repositoriesIds );
109 sb.append( ", packIndex=" ).append( packIndex );
110 sb.append( ", groupId='" ).append( groupId ).append( '\'' );
111 sb.append( ", mergedIndexPath='" ).append( mergedIndexPath ).append( '\'' );
113 return sb.toString();