Class FolderConfigFileAction
java.lang.Object
org.jenkinsci.plugins.configfiles.folder.FolderConfigFileAction
- All Implemented Interfaces:
Action,ModelObject,ConfigFilesUIContract,org.kohsuke.stapler.StaplerProxy
public class FolderConfigFileAction
extends Object
implements Action, ConfigFilesUIContract, org.kohsuke.stapler.StaplerProxy
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.jenkinsci.plugins.configfiles.ConfigFilesUIContract
ICON_PATH, ID_PATTERN, JELLY_RESOURCES_PATH -
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) com.cloudbees.hudson.plugins.folder.AbstractFolder<?>getIconUrl(String rootUrl) used by configfiles.jelly to resolve the correct path to the icon (see JENKINS-24441)
-
Method Details
-
getFolder
public com.cloudbees.hudson.plugins.folder.AbstractFolder<?> getFolder() -
getIconFileName
- Specified by:
getIconFileNamein interfaceAction
-
getIconUrl
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public String getIconUrl(String rootUrl) used by configfiles.jelly to resolve the correct path to the icon (see JENKINS-24441) -
getDisplayName
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
getUrlName
- Specified by:
getUrlNamein interfaceAction
-
getContentTypeForProvider
- Specified by:
getContentTypeForProviderin interfaceConfigFilesUIContract
-
getGroupedConfigs
- Specified by:
getGroupedConfigsin interfaceConfigFilesUIContract
-
getProviders
- Specified by:
getProvidersin interfaceConfigFilesUIContract
-
doSaveConfig
@POST public org.kohsuke.stapler.HttpResponse doSaveConfig(org.kohsuke.stapler.StaplerRequest2 req) throws IOException, jakarta.servlet.ServletException Description copied from interface:ConfigFilesUIContractInsert or update- Specified by:
doSaveConfigin interfaceConfigFilesUIContract- Parameters:
req- request- Returns:
- Throws:
IOExceptionjakarta.servlet.ServletException
-
doShow
public void doShow(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp, @QueryParameter("id") String configId) throws IOException, jakarta.servlet.ServletException - Specified by:
doShowin interfaceConfigFilesUIContract- Throws:
IOExceptionjakarta.servlet.ServletException
-
doEditConfig
public void doEditConfig(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp, @QueryParameter("id") String configId) throws IOException, jakarta.servlet.ServletException Description copied from interface:ConfigFilesUIContractLoads the config by its id and forwards the request to "edit.jelly".- Specified by:
doEditConfigin interfaceConfigFilesUIContract- Parameters:
req- requestrsp- responseconfigId- the id of the config to be loaded in to the edit view.- Throws:
IOExceptionjakarta.servlet.ServletException
-
doAddConfig
@POST public 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 Description copied from interface:ConfigFilesUIContractRequests a new config object from provider (defined by the given id) and forwards the request to "edit.jelly".- Specified by:
doAddConfigin interfaceConfigFilesUIContract- 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
public void doSelectProvider(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException, jakarta.servlet.ServletException - Specified by:
doSelectProviderin interfaceConfigFilesUIContract- Throws:
IOExceptionjakarta.servlet.ServletException
-
doRemoveConfig
public org.kohsuke.stapler.HttpResponse doRemoveConfig(org.kohsuke.stapler.StaplerRequest2 res, org.kohsuke.stapler.StaplerResponse2 rsp, @QueryParameter("id") String configId) throws IOException Description copied from interface:ConfigFilesUIContractRemoves a script from the config and filesystem.- Specified by:
doRemoveConfigin interfaceConfigFilesUIContract- Parameters:
res- responsersp- requestconfigId- the id of the config to be removed- Returns:
- forward to 'index'
- Throws:
IOException
-
doCheckConfigId
- Specified by:
doCheckConfigIdin interfaceConfigFilesUIContract
-
getTarget
- Specified by:
getTargetin interfaceorg.kohsuke.stapler.StaplerProxy
-