1 package org.apache.maven.archiva.model;
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements. See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership. The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the
9 * "License"); you may not use this file except in compliance
10 * with the License. You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing,
15 * software distributed under the License is distributed on an
16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 * KIND, either express or implied. See the License for the
18 * specific language governing permissions and limitations
22 import org.apache.maven.artifact.repository.ArtifactRepository;
25 * RepositoryContentKey - the golden key for all content within the repository.
27 * @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a>
30 public class RepositoryContentKey
32 private String artifactId;
34 private String groupId;
36 private ArtifactRepository repository;
38 private String version;
40 public RepositoryContentKey( ArtifactRepository repository, String groupId, String artifactId, String version )
42 this.repository = repository;
43 this.groupId = groupId;
44 this.artifactId = artifactId;
45 this.version = version;
48 public String getArtifactId()
53 public String getGroupId()
58 public ArtifactRepository getRepository()
63 public String getVersion()
68 public void setArtifactId( String artifactId )
70 this.artifactId = artifactId;
73 public void setGroupId( String groupId )
75 this.groupId = groupId;
78 public void setRepository( ArtifactRepository repository )
80 this.repository = repository;
83 public void setVersion( String version )
85 this.version = version;