001/*
002 * (C) Copyright 2013 Nuxeo SA (http://nuxeo.com/) and contributors.
003 *
004 * All rights reserved. This program and the accompanying materials
005 * are made available under the terms of the GNU Lesser General Public License
006 * (LGPL) version 2.1 which accompanies this distribution, and is available at
007 * http://www.gnu.org/licenses/lgpl-2.1.html
008 *
009 * This library is distributed in the hope that it will be useful,
010 * but WITHOUT ANY WARRANTY; without even the implied warranty of
011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
012 * Lesser General Public License for more details.
013 *
014 * Contributors:
015 *     Olivier Grisel <ogrisel@nuxeo.com>
016 *     Antoine Taillefer <ataillefer@nuxeo.com>
017 */
018package org.nuxeo.drive.seam;
019
020/**
021 * Data transfer object to display the list of available packages for download in the User Center.
022 *
023 * @since 5.7
024 */
025public class DesktopPackageDefinition {
026
027    protected final String name;
028
029    protected final String platform;
030
031    protected final String url;
032
033    public DesktopPackageDefinition(String url, String name, String platform) {
034        this.name = name;
035        this.platform = platform;
036        this.url = url;
037    }
038
039    public String getName() {
040        return name;
041    }
042
043    public String getPlatformLabel() {
044        return "user.center.nuxeoDrive.platform." + platform;
045    }
046
047    public String getPlatformId() {
048        return platform;
049    }
050
051    public String getURL() {
052        return url;
053    }
054
055}