001/* 002 * (C) Copyright 2014 Nuxeo SA (http://nuxeo.com/) and others. 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 * 016 * Contributors: 017 * Antoine Taillefer <[email protected]> 018 */ 019package org.nuxeo.drive.operations; 020 021/** 022 * Information needed for the Nuxeo Drive client update: 023 * <ul> 024 * <li>Server version</li> 025 * <li>Nuxeo Drive update site URL</li> 026 * <li>Nuxeo Drive beta update site URL</li> 027 * </ul> 028 * 029 * @author Antoine Taillefer 030 */ 031public class NuxeoDriveClientUpdateInfo { 032 033 protected String serverVersion; 034 035 protected String updateSiteURL; 036 037 protected String betaUpdateSiteURL; 038 039 protected NuxeoDriveClientUpdateInfo() { 040 // Needed for JSON deserialization 041 } 042 043 public NuxeoDriveClientUpdateInfo(String serverVersion, String updateSiteURL, String betaUpdateSiteURL) { 044 this.serverVersion = serverVersion; 045 this.updateSiteURL = updateSiteURL; 046 this.betaUpdateSiteURL = betaUpdateSiteURL; 047 } 048 049 public String getServerVersion() { 050 return serverVersion; 051 } 052 053 public void setServerVersion(String serverVersion) { 054 this.serverVersion = serverVersion; 055 } 056 057 public String getUpdateSiteURL() { 058 return updateSiteURL; 059 } 060 061 public void setUpdateSiteURL(String updateSiteURL) { 062 this.updateSiteURL = updateSiteURL; 063 } 064 065 public String getBetaUpdateSiteURL() { 066 return betaUpdateSiteURL; 067 } 068 069 public void setBetaUpdateSiteURL(String betaUpdateSiteURL) { 070 this.betaUpdateSiteURL = betaUpdateSiteURL; 071 } 072 073}