Class DotNetConfiguration

All Implemented Interfaces:
ExtensionPoint, Describable<GlobalConfiguration>, Saveable, Serializable, OnMaster

@Extension public class DotNetConfiguration extends GlobalConfiguration implements Serializable
Global configuration for the .NET SDK plugin.
See Also:
  • Constructor Details

    • DotNetConfiguration

      @DataBoundConstructor public DotNetConfiguration()
      Creates the global configuration for the .NET SDK plugin.
  • Method Details

    • getCategory

      @NonNull public GlobalConfigurationCategory getCategory()
      Gets the category for this global configuration.
      Overrides:
      getCategory in class Descriptor<GlobalConfiguration>
      Returns:
      ToolConfigurationCategory.
    • doCheckBuildAllowed

      @NonNull @POST public FormValidation doCheckBuildAllowed(@QueryParameter boolean buildAllowed)
      Runs validation when enabling/disabling the "build" command for use in freestyle projects.

      In particular, when disabling the command, this will check to see whether there are any freestyle projects currently using the command.

      Parameters:
      buildAllowed - The checked state of the relevant checkbox on the configuration page.
      Returns:
      The validation result; either "OK" or a warning indicating the command is still in use.
    • isBuildAllowed

      public boolean isBuildAllowed()
      Determines whether the "build" command should be available for use in freestyle projects.
      Returns:
      true if the command should be available; false otherwise.
    • setBuildAllowed

      @DataBoundSetter public void setBuildAllowed(boolean allowed)
      Determines whether the "build" command should be available for use in freestyle projects.
      Parameters:
      allowed - true if the command should be available; false otherwise.
    • doCheckCleanAllowed

      @NonNull @POST public FormValidation doCheckCleanAllowed(@QueryParameter boolean cleanAllowed)
      Runs validation when enabling/disabling the "clean" command for use in freestyle projects.

      In particular, when disabling the command, this will check to see whether there are any freestyle projects currently using the command.

      Parameters:
      cleanAllowed - The checked state of the relevant checkbox on the configuration page.
      Returns:
      The validation result; either "OK" or a warning indicating the command is still in use.
    • isCleanAllowed

      public boolean isCleanAllowed()
      Determines whether the "clean" command should be available for use in freestyle projects.
      Returns:
      true if the command should be available; false otherwise.
    • setCleanAllowed

      @DataBoundSetter public void setCleanAllowed(boolean allowed)
      Determines whether the "clean" command should be available for use in freestyle projects.
      Parameters:
      allowed - true if the command should be available; false otherwise.
    • doCheckListPackageAllowed

      @NonNull @POST public FormValidation doCheckListPackageAllowed(@QueryParameter boolean listPackageAllowed)
      Runs validation when enabling/disabling the "list package" command for use in freestyle projects.

      In particular, when disabling the command, this will check to see whether there are any freestyle projects currently using the command.

      Parameters:
      listPackageAllowed - The checked state of the relevant checkbox on the configuration page.
      Returns:
      The validation result; either "OK" or a warning indicating the command is still in use.
    • isListPackageAllowed

      public boolean isListPackageAllowed()
      Determines whether the "list package" command should be available for use in freestyle projects.
      Returns:
      true if the command should be available; false otherwise.
    • setListPackageAllowed

      @DataBoundSetter public void setListPackageAllowed(boolean allowed)
      Determines whether the "list package" command should be available for use in freestyle projects.
      Parameters:
      allowed - true if the command should be available; false otherwise.
    • doCheckNuGetDeleteAllowed

      @NonNull @POST public FormValidation doCheckNuGetDeleteAllowed(@QueryParameter boolean nuGetDeleteAllowed)
      Runs validation when enabling/disabling the "nuget delete" command for use in freestyle projects.

      In particular, when disabling the command, this will check to see whether there are any freestyle projects currently using the command.

      Parameters:
      nuGetDeleteAllowed - The checked state of the relevant checkbox on the configuration page.
      Returns:
      The validation result; either "OK" or a warning indicating the command is still in use.
    • isNuGetDeleteAllowed

      public boolean isNuGetDeleteAllowed()
      Determines whether the "nuget delete" command should be available for use in freestyle projects.
      Returns:
      true if the command should be available; false otherwise.
    • setNuGetDeleteAllowed

      @DataBoundSetter public void setNuGetDeleteAllowed(boolean allowed)
      Determines whether the "nuget delete" command should be available for use in freestyle projects.
      Parameters:
      allowed - true if the command should be available; false otherwise.
    • doCheckNuGetLocalsAllowed

      @NonNull @POST public FormValidation doCheckNuGetLocalsAllowed(@QueryParameter boolean nuGetLocalsAllowed)
      Runs validation when enabling/disabling the "nuget locals" command for use in freestyle projects.

      In particular, when disabling the command, this will check to see whether there are any freestyle projects currently using the command.

      Parameters:
      nuGetLocalsAllowed - The checked state of the relevant checkbox on the configuration page.
      Returns:
      The validation result; either "OK" or a warning indicating the command is still in use.
    • isNuGetLocalsAllowed

      public boolean isNuGetLocalsAllowed()
      Determines whether the "nuget locals" command should be available for use in freestyle projects.
      Returns:
      true if the command should be available; false otherwise.
    • setNuGetLocalsAllowed

      @DataBoundSetter public void setNuGetLocalsAllowed(boolean allowed)
      Determines whether the "nuget locals" command should be available for use in freestyle projects.
      Parameters:
      allowed - true if the command should be available; false otherwise.
    • doCheckNuGetPushAllowed

      @NonNull @POST public FormValidation doCheckNuGetPushAllowed(@QueryParameter boolean nuGetPushAllowed)
      Runs validation when enabling/disabling the "nuget push" command for use in freestyle projects.

      In particular, when disabling the command, this will check to see whether there are any freestyle projects currently using the command.

      Parameters:
      nuGetPushAllowed - The checked state of the relevant checkbox on the configuration page.
      Returns:
      The validation result; either "OK" or a warning indicating the command is still in use.
    • isNuGetPushAllowed

      public boolean isNuGetPushAllowed()
      Determines whether the "nuget push" command should be available for use in freestyle projects.
      Returns:
      true if the command should be available; false otherwise.
    • setNuGetPushAllowed

      @DataBoundSetter public void setNuGetPushAllowed(boolean allowed)
      Determines whether the "nuget push" command should be available for use in freestyle projects.
      Parameters:
      allowed - true if the command should be available; false otherwise.
    • doCheckPackAllowed

      @NonNull @POST public FormValidation doCheckPackAllowed(@QueryParameter boolean packAllowed)
      Runs validation when enabling/disabling the "pack" command for use in freestyle projects.

      In particular, when disabling the command, this will check to see whether there are any freestyle projects currently using the command.

      Parameters:
      packAllowed - The checked state of the relevant checkbox on the configuration page.
      Returns:
      The validation result; either "OK" or a warning indicating the command is still in use.
    • isPackAllowed

      public boolean isPackAllowed()
      Determines whether the "pack" command should be available for use in freestyle projects.
      Returns:
      true if the command should be available; false otherwise.
    • setPackAllowed

      @DataBoundSetter public void setPackAllowed(boolean allowed)
      Determines whether the "pack" command should be available for use in freestyle projects.
      Parameters:
      allowed - true if the command should be available; false otherwise.
    • doCheckPublishAllowed

      @NonNull @POST public FormValidation doCheckPublishAllowed(@QueryParameter boolean publishAllowed)
      Runs validation when enabling/disabling the "publish" command for use in freestyle projects.

      In particular, when disabling the command, this will check to see whether there are any freestyle projects currently using the command.

      Parameters:
      publishAllowed - The checked state of the relevant checkbox on the configuration page.
      Returns:
      The validation result; either "OK" or a warning indicating the command is still in use.
    • isPublishAllowed

      public boolean isPublishAllowed()
      Determines whether the "publish" command should be available for use in freestyle projects.
      Returns:
      true if the command should be available; false otherwise.
    • setPublishAllowed

      @DataBoundSetter public void setPublishAllowed(boolean allowed)
      Determines whether the "publish" command should be available for use in freestyle projects.
      Parameters:
      allowed - true if the command should be available; false otherwise.
    • doCheckRestoreAllowed

      @NonNull @POST public FormValidation doCheckRestoreAllowed(@QueryParameter boolean restoreAllowed)
      Runs validation when enabling/disabling the "restore" command for use in freestyle projects.

      In particular, when disabling the command, this will check to see whether there are any freestyle projects currently using the command.

      Parameters:
      restoreAllowed - The checked state of the relevant checkbox on the configuration page.
      Returns:
      The validation result; either "OK" or a warning indicating the command is still in use.
    • isRestoreAllowed

      public boolean isRestoreAllowed()
      Determines whether the "restore" command should be available for use in freestyle projects.
      Returns:
      true if the command should be available; false otherwise.
    • setRestoreAllowed

      @DataBoundSetter public void setRestoreAllowed(boolean allowed)
      Determines whether the "restore" command should be available for use in freestyle projects.
      Parameters:
      allowed - true if the command should be available; false otherwise.
    • isTelemetryOptOut

      public boolean isTelemetryOptOut()
      Determines whether the telemetry opt-out is set.
      Returns:
      true when the telemetry opt-out is set; false otherwise.
    • setTelemetryOptOut

      @DataBoundSetter public void setTelemetryOptOut(boolean telemetryOptOut)
      Determines whether the telemetry opt-out should be set.
      Parameters:
      telemetryOptOut - true to opt out of telemetry; false otherwise.
    • doCheckTestAllowed

      @NonNull @POST public FormValidation doCheckTestAllowed(@QueryParameter boolean testAllowed)
      Runs validation when enabling/disabling the "test" command for use in freestyle projects.

      In particular, when disabling the command, this will check to see whether there are any freestyle projects currently using the command.

      Parameters:
      testAllowed - The checked state of the relevant checkbox on the configuration page.
      Returns:
      The validation result; either "OK" or a warning indicating the command is still in use.
    • isTestAllowed

      public boolean isTestAllowed()
      Determines whether the "test" command should be available for use in freestyle projects.
      Returns:
      true if the command should be available; false otherwise.
    • setTestAllowed

      @DataBoundSetter public void setTestAllowed(boolean allowed)
      Determines whether the "test" command should be available for use in freestyle projects.
      Parameters:
      allowed - true if the command should be available; false otherwise.
    • doCheckToolRestoreAllowed

      @NonNull @POST public FormValidation doCheckToolRestoreAllowed(@QueryParameter boolean toolRestoreAllowed)
      Runs validation when enabling/disabling the "tool restore" command for use in freestyle projects.

      In particular, when disabling the command, this will check to see whether there are any freestyle projects currently using the command.

      Parameters:
      toolRestoreAllowed - The checked state of the relevant checkbox on the configuration page.
      Returns:
      The validation result; either "OK" or a warning indicating the command is still in use.
    • isToolRestoreAllowed

      public boolean isToolRestoreAllowed()
      Determines whether the "tool restore" command should be available for use in freestyle projects.
      Returns:
      true if the command should be available; false otherwise.
    • setToolRestoreAllowed

      @DataBoundSetter public void setToolRestoreAllowed(boolean allowed)
      Determines whether the "tool restore" command should be available for use in freestyle projects.
      Parameters:
      allowed - true if the command should be available; false otherwise.