001package org.apache.archiva.metadata.model; 002 003/* 004 * Licensed to the Apache Software Foundation (ASF) under one 005 * or more contributor license agreements. See the NOTICE file 006 * distributed with this work for additional information 007 * regarding copyright ownership. The ASF licenses this file 008 * to you under the Apache License, Version 2.0 (the 009 * "License"); you may not use this file except in compliance 010 * with the License. You may obtain a copy of the License at 011 * 012 * http://www.apache.org/licenses/LICENSE-2.0 013 * 014 * Unless required by applicable law or agreed to in writing, 015 * software distributed under the License is distributed on an 016 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 017 * KIND, either express or implied. See the License for the 018 * specific language governing permissions and limitations 019 * under the License. 020 */ 021 022import javax.xml.bind.annotation.XmlRootElement; 023import java.io.Serializable; 024 025/** 026 * Information about the CI system used by the project. 027 * 028 * TODO considering moving this to a facet - avoid referring to it externally 029 */ 030@XmlRootElement(name = "ciManagement") 031public class CiManagement 032 implements Serializable 033{ 034 /** 035 * A simple identifier for the type of CI server used, eg <tt>continuum</tt>, <tt>bamboo</tt>, <tt>hudson</tt>, etc. 036 */ 037 private String system; 038 039 /** 040 * The base URL of the CI system. 041 */ 042 private String url; 043 044 public CiManagement() 045 { 046 // no op 047 } 048 049 public CiManagement( String system, String url ) 050 { 051 this.system = system; 052 this.url = url; 053 } 054 055 public String getUrl() 056 { 057 return url; 058 } 059 060 public void setUrl( String url ) 061 { 062 this.url = url; 063 } 064 065 public String getSystem() 066 { 067 return system; 068 } 069 070 public void setSystem( String system ) 071 { 072 this.system = system; 073 } 074 075 @Override 076 public String toString() 077 { 078 return "CiManagement{" + 079 "system='" + system + '\'' + 080 ", url='" + url + '\'' + 081 '}'; 082 } 083}