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 public IndexMergerRequest( Collection<String> repositoriesIds, boolean packIndex, String groupId )
45 this.repositoriesIds = repositoriesIds;
46 this.packIndex = packIndex;
47 this.groupId = groupId;
50 public Collection<String> getRepositoriesIds()
52 return repositoriesIds;
55 public void setRepositoriesIds( Collection<String> repositoriesIds )
57 this.repositoriesIds = repositoriesIds;
60 public boolean isPackIndex()
65 public void setPackIndex( boolean packIndex )
67 this.packIndex = packIndex;
70 public String getGroupId()
75 public void setGroupId( String groupId )
77 this.groupId = groupId;
81 public String toString()
83 final StringBuilder sb = new StringBuilder();
84 sb.append( "IndexMergerRequest" );
85 sb.append( "{repositoriesIds=" ).append( repositoriesIds );
86 sb.append( ", packIndex=" ).append( packIndex );
87 sb.append( ", groupId='" ).append( groupId ).append( '\'' );