/*
 * (C) Copyright 2013 Nuxeo SA (http://nuxeo.com/) and contributors.
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Lesser General Public License
 * (LGPL) version 2.1 which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/lgpl-2.1.html
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * Contributors:
 *     Olivier Grisel <ogrisel@nuxeo.com>
 *     Antoine Taillefer <ataillefer@nuxeo.com>
 */
package org.nuxeo.drive.seam;

import java.io.File;

/**
 * Data transfer object to display the list of available packages for download
 * in the User Center.
 *
 * @since 5.7
 */
public class DesktopPackageDefinition {

    protected final File file;

    protected final String name;

    protected final String platform;

    protected final boolean isLink;

    protected final String URL;

    public DesktopPackageDefinition(File file, String name, String platform) {
        this.file = file;
        this.name = name;
        this.platform = platform;
        this.isLink = false;
        this.URL = null;
    }

    public DesktopPackageDefinition(String URL, String name, String platform) {
        this.file = null;
        this.name = name;
        this.platform = platform;
        this.isLink = true;
        this.URL = URL;
    }

    public File getFile() {
        return file;
    }

    public String getName() {
        return name;
    }

    public String getPlatformLabel() {
        return "user.center.nuxeoDrive.platform." + platform;
    }

    public String getPlatformId() {
        return platform;
    }

    public boolean isLink() {
        return isLink;
    }

    public String getURL() {
        return URL;
    }

}

@@ -1097,19 +1097,19 @@
  String 
-URL
+url
 ;%0A%0A    p
@@ -1310,19 +1310,19 @@
    this.
-URL
+url
  = null;
@@ -1372,19 +1372,19 @@
 (String 
-URL
+url
 , String
@@ -1540,17 +1540,17 @@
 his.
-URL = URL
+url = url
 ;%0A  
@@ -1948,19 +1948,19 @@
  return 
-URL
+url
 ;%0A    %7D%0A

Fix Sonar Major violations: Member name + Parameter name