All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonarsource.sonarlint.ls.backend.BackendInitParams Maven / Gradle / Ivy

There is a newer version: 3.12.0.75621
Show newest version
/*
 * SonarLint Language Server
 * Copyright (C) 2009-2024 SonarSource SA
 * mailto:info AT sonarsource DOT com
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 3 of the License, or (at your option) any later version.
 *
 * This program 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.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */
package org.sonarsource.sonarlint.ls.backend;

import java.nio.file.Path;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.sonarsource.sonarlint.core.rpc.protocol.common.Language;
import org.sonarsource.sonarlint.core.rpc.protocol.backend.connection.config.SonarCloudConnectionConfigurationDto;
import org.sonarsource.sonarlint.core.rpc.protocol.backend.connection.config.SonarQubeConnectionConfigurationDto;
import org.sonarsource.sonarlint.core.rpc.protocol.backend.rules.StandaloneRuleConfigDto;

public class BackendInitParams {

  private String telemetryProductKey;
  private Path storageRoot;
  private Set embeddedPluginPaths;
  private Map connectedModeEmbeddedPluginPathsByKey;
  private Set enabledLanguagesInStandaloneMode;
  private Set extraEnabledLanguagesInConnectedMode;
  private boolean enableSecurityHotspots;
  private List sonarQubeConnections;
  private List sonarCloudConnections;
  private String sonarlintUserHome;
  private Map standaloneRuleConfigByKey;
  private String userAgent;
  private boolean isFocusOnNewCode;
  private String clientNodePath;

  public String getTelemetryProductKey() {
    return telemetryProductKey;
  }

  public void setTelemetryProductKey(String telemetryProductKey) {
    this.telemetryProductKey = telemetryProductKey;
  }

  public Path getStorageRoot() {
    return storageRoot;
  }

  public void setStorageRoot(Path storageRoot) {
    this.storageRoot = storageRoot;
  }

  public Set getEmbeddedPluginPaths() {
    return embeddedPluginPaths;
  }

  public void setEmbeddedPluginPaths(Set embeddedPluginPaths) {
    this.embeddedPluginPaths = embeddedPluginPaths;
  }

  public Map getConnectedModeEmbeddedPluginPathsByKey() {
    return connectedModeEmbeddedPluginPathsByKey;
  }

  public void setConnectedModeEmbeddedPluginPathsByKey(Map connectedModeEmbeddedPluginPathsByKey) {
    this.connectedModeEmbeddedPluginPathsByKey = connectedModeEmbeddedPluginPathsByKey;
  }

  public Set getEnabledLanguagesInStandaloneMode() {
    return enabledLanguagesInStandaloneMode;
  }

  public void setEnabledLanguagesInStandaloneMode(Set enabledLanguagesInStandaloneMode) {
    this.enabledLanguagesInStandaloneMode = enabledLanguagesInStandaloneMode;
  }

  public Set getExtraEnabledLanguagesInConnectedMode() {
    return extraEnabledLanguagesInConnectedMode;
  }

  public void setExtraEnabledLanguagesInConnectedMode(Set extraEnabledLanguagesInConnectedMode) {
    this.extraEnabledLanguagesInConnectedMode = extraEnabledLanguagesInConnectedMode;
  }

  public boolean isEnableSecurityHotspots() {
    return enableSecurityHotspots;
  }

  public void setEnableSecurityHotspots(boolean enableSecurityHotspots) {
    this.enableSecurityHotspots = enableSecurityHotspots;
  }

  public List getSonarQubeConnections() {
    return sonarQubeConnections;
  }

  public void setSonarQubeConnections(List sonarQubeConnections) {
    this.sonarQubeConnections = sonarQubeConnections;
  }

  public List getSonarCloudConnections() {
    return sonarCloudConnections;
  }

  public void setSonarCloudConnections(List sonarCloudConnections) {
    this.sonarCloudConnections = sonarCloudConnections;
  }

  public String getSonarlintUserHome() {
    return sonarlintUserHome;
  }

  public void setSonarlintUserHome(String sonarlintUserHome) {
    this.sonarlintUserHome = sonarlintUserHome;
  }

  public void setStandaloneRuleConfigByKey(Map standaloneRuleConfigByKey) {
    this.standaloneRuleConfigByKey = standaloneRuleConfigByKey;
  }

  public Map getStandaloneRuleConfigByKey() {
    return this.standaloneRuleConfigByKey;
  }

  public boolean isFocusOnNewCode() {
    return isFocusOnNewCode;
  }

  public void setFocusOnNewCode(boolean focusOnNewCode) {
    isFocusOnNewCode = focusOnNewCode;
  }

  public String getUserAgent() {
    return userAgent;
  }

  public void setUserAgent(String userAgent) {
    this.userAgent = userAgent;
  }

  public void setClientNodePath(String clientNodePath) {
    this.clientNodePath = clientNodePath;
  }

  public String getClientNodePath() {
    return clientNodePath;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy