Interface ConfigFilesUIContract

All Known Implementing Classes:
ConfigFilesManagement, FolderConfigFileAction

public interface ConfigFilesUIContract
Defines the contract for actions called by jelly
Author:
domi
  • Field Details

  • Method Details

    • getContentTypeForProvider

      ContentType getContentTypeForProvider(String providerId)
    • getGroupedConfigs

      Map<ConfigProvider,Collection<Config>> getGroupedConfigs()
    • getProviders

      List<ConfigProvider> getProviders()
    • doSaveConfig

      org.kohsuke.stapler.HttpResponse doSaveConfig(org.kohsuke.stapler.StaplerRequest req) throws IOException, javax.servlet.ServletException
      Insert or update
      Parameters:
      req - request
      Returns:
      Throws:
      IOException
      javax.servlet.ServletException
    • doShow

      void doShow(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, @QueryParameter("id") String configId) throws IOException, javax.servlet.ServletException
      Throws:
      IOException
      javax.servlet.ServletException
    • doEditConfig

      void doEditConfig(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, @QueryParameter("id") String configId) throws IOException, javax.servlet.ServletException
      Loads the config by its id and forwards the request to "edit.jelly".
      Parameters:
      req - request
      rsp - response
      configId - the id of the config to be loaded in to the edit view.
      Throws:
      IOException
      javax.servlet.ServletException
    • doAddConfig

      void doAddConfig(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, @QueryParameter("providerId") String providerId, @QueryParameter("configId") String configId) throws IOException, javax.servlet.ServletException
      Requests a new config object from provider (defined by the given id) and forwards the request to "edit.jelly".
      Parameters:
      req - request
      rsp - response
      providerId - the id of the provider to create a new config instance with
      configId - the id of the new config instance
      Throws:
      IOException
      javax.servlet.ServletException
    • doSelectProvider

      void doSelectProvider(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException
      Throws:
      IOException
      javax.servlet.ServletException
    • doRemoveConfig

      org.kohsuke.stapler.HttpResponse doRemoveConfig(org.kohsuke.stapler.StaplerRequest res, org.kohsuke.stapler.StaplerResponse rsp, @QueryParameter("id") String configId) throws IOException
      Removes a script from the config and filesystem.
      Parameters:
      res - response
      rsp - request
      configId - the id of the config to be removed
      Returns:
      forward to 'index'
      Throws:
      IOException
    • doCheckConfigId

      FormValidation doCheckConfigId(@QueryParameter("configId") String configId)