View Javadoc

1   /**
2    * Copyright (C) 2012 White Source Ltd.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.whitesource.teamcity.server;
17  
18  import com.thoughtworks.xstream.annotations.XStreamAlias;
19  
20  /**
21   * @author Edo.Shor
22   */
23  @XStreamAlias("GlobalSettings")
24  public class GlobalSettings {
25  
26      /* --- Members --- */
27  
28      private String orgToken;
29  
30      private boolean checkPolicies;
31  
32      @XStreamAlias("Proxy")
33      private ProxySettings proxy;
34  
35      /* --- Constructors--- */
36  
37      /**
38       * Default constructor
39       */
40      public GlobalSettings() {
41      }
42  
43      /* --- Getters / Setters --- */
44  
45      public String getOrgToken() {
46          return orgToken;
47      }
48  
49      public void setOrgToken(String orgToken) {
50          this.orgToken = orgToken;
51      }
52  
53      public boolean isCheckPolicies() {
54          return checkPolicies;
55      }
56  
57      public void setCheckPolicies(boolean checkPolicies) {
58          this.checkPolicies = checkPolicies;
59      }
60  
61      public ProxySettings getProxy() {
62          return proxy;
63      }
64  
65      public void setProxy(ProxySettings proxy) {
66          this.proxy = proxy;
67      }
68  }