This project has retired. For details please refer to its Attic page.
CiManagement xref
View Javadoc
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.persistence.Entity;
23  import javax.xml.bind.annotation.XmlRootElement;
24  import java.io.Serializable;
25  
26  /**
27   * Information about the CI system used by the project.
28   *
29   * TODO considering moving this to a facet - avoid referring to it externally
30   */
31  @XmlRootElement(name = "ciManagement")
32  public class CiManagement
33      implements Serializable
34  {
35      /**
36       * A simple identifier for the type of CI server used, eg <tt>continuum</tt>, <tt>bamboo</tt>, <tt>hudson</tt>, etc.
37       */
38      private String system;
39  
40      /**
41       * The base URL of the CI system.
42       */
43      private String url;
44  
45      public CiManagement()
46      {
47          // no op
48      }
49  
50      public CiManagement( String system, String url )
51      {
52          this.system = system;
53          this.url = url;
54      }
55  
56      public String getUrl()
57      {
58          return url;
59      }
60  
61      public void setUrl( String url )
62      {
63          this.url = url;
64      }
65  
66      public String getSystem()
67      {
68          return system;
69      }
70  
71      public void setSystem( String system )
72      {
73          this.system = system;
74      }
75  
76      @Override
77      public String toString()
78      {
79          return "CiManagement{" +
80              "system='" + system + '\'' +
81              ", url='" + url + '\'' +
82              '}';
83      }
84  }