1 package org.apache.archiva.metadata.model; 2 3 /* 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 11 * 12 * http://www.apache.org/licenses/LICENSE-2.0 13 * 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 19 * under the License. 20 */ 21 22 import javax.xml.bind.annotation.XmlRootElement; 23 import java.io.Serializable; 24 25 /** 26 * Information about the issue management system used by the project. 27 * 28 * TODO considering moving this to a facet - avoid referring to it externally 29 */ 30 @XmlRootElement(name = "issueManagement") 31 public class IssueManagement 32 implements Serializable 33 { 34 /** 35 * A simple identifier for the type of issue management server used, eg <tt>jira</tt>, <tt>bugzilla</tt>, etc. 36 */ 37 private String system; 38 39 /** 40 * The base URL of the issue management system. 41 */ 42 private String url; 43 44 public IssueManagement() 45 { 46 // no op 47 } 48 49 public IssueManagement( String system, String url ) 50 { 51 this.system = system; 52 this.url = url; 53 } 54 55 public String getUrl() 56 { 57 return url; 58 } 59 60 public void setUrl( String url ) 61 { 62 this.url = url; 63 } 64 65 public String getSystem() 66 { 67 return system; 68 } 69 70 public void setSystem( String system ) 71 { 72 this.system = system; 73 } 74 75 @Override 76 public String toString() 77 { 78 return "IssueManagement{" + 79 "system='" + system + '\'' + 80 ", url='" + url + '\'' + 81 '}'; 82 } 83 }