Interface ConfigFilesUIContract
- All Known Implementing Classes:
ConfigFilesManagement,FolderConfigFileAction
public interface ConfigFilesUIContract
Defines the contract for actions called by jelly
- Author:
- domi
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoiddoAddConfig(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp, String providerId, String configId) Requests a new config object from provider (defined by the given id) and forwards the request to "edit.jelly".doCheckConfigId(String configId) voiddoEditConfig(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp, String configId) Loads the config by its id and forwards the request to "edit.jelly".org.kohsuke.stapler.HttpResponsedoRemoveConfig(org.kohsuke.stapler.StaplerRequest2 res, org.kohsuke.stapler.StaplerResponse2 rsp, String configId) Removes a script from the config and filesystem.org.kohsuke.stapler.HttpResponsedoSaveConfig(org.kohsuke.stapler.StaplerRequest2 req) Insert or updatevoiddoSelectProvider(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) voiddoShow(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp, String configId) getContentTypeForProvider(String providerId)
-
Field Details
-
JELLY_RESOURCES_PATH
- See Also:
-
ICON_PATH
- See Also:
-
ID_PATTERN
-
-
Method Details
-
getContentTypeForProvider
-
getGroupedConfigs
Map<ConfigProvider,Collection<Config>> getGroupedConfigs() -
getProviders
List<ConfigProvider> getProviders() -
doSaveConfig
org.kohsuke.stapler.HttpResponse doSaveConfig(org.kohsuke.stapler.StaplerRequest2 req) throws IOException, jakarta.servlet.ServletException Insert or update- Parameters:
req- request- Returns:
- Throws:
IOExceptionjakarta.servlet.ServletException
-
doShow
void doShow(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp, @QueryParameter("id") String configId) throws IOException, jakarta.servlet.ServletException - Throws:
IOExceptionjakarta.servlet.ServletException
-
doEditConfig
void doEditConfig(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp, @QueryParameter("id") String configId) throws IOException, jakarta.servlet.ServletException Loads the config by its id and forwards the request to "edit.jelly".- Parameters:
req- requestrsp- responseconfigId- the id of the config to be loaded in to the edit view.- Throws:
IOExceptionjakarta.servlet.ServletException
-
doAddConfig
void doAddConfig(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp, @QueryParameter("providerId") String providerId, @QueryParameter("configId") String configId) throws IOException, jakarta.servlet.ServletException Requests a new config object from provider (defined by the given id) and forwards the request to "edit.jelly".- Parameters:
req- requestrsp- responseproviderId- the id of the provider to create a new config instance withconfigId- the id of the new config instance- Throws:
IOExceptionjakarta.servlet.ServletException
-
doSelectProvider
void doSelectProvider(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException, jakarta.servlet.ServletException - Throws:
IOExceptionjakarta.servlet.ServletException
-
doRemoveConfig
org.kohsuke.stapler.HttpResponse doRemoveConfig(org.kohsuke.stapler.StaplerRequest2 res, org.kohsuke.stapler.StaplerResponse2 rsp, @QueryParameter("id") String configId) throws IOException Removes a script from the config and filesystem.- Parameters:
res- responsersp- requestconfigId- the id of the config to be removed- Returns:
- forward to 'index'
- Throws:
IOException
-
doCheckConfigId
-