public class ConvertFolderAction extends Object implements hudson.model.Action, hudson.model.Describable<ConvertFolderAction>
Modifier and Type | Class and Description |
---|---|
static class |
ConvertFolderAction.ActionFolderInjector
Defines visibility level of action to Folder items.
|
static class |
ConvertFolderAction.ConvertFolderActionDescriptor
Descriptor class to handle form validation.
|
Constructor and Description |
---|
ConvertFolderAction(com.cloudbees.hudson.plugins.folder.Folder folder) |
Modifier and Type | Method and Description |
---|---|
void |
doConvert(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Handles submit action of convert button
|
hudson.model.Descriptor<ConvertFolderAction> |
getDescriptor() |
String |
getDisplayName() |
String |
getIconFileName() |
String |
getUrlName() |
Collection<? extends hudson.model.Job> |
listFreeStyleJobs() |
Collection |
listFreeStyleJobs(com.cloudbees.hudson.plugins.folder.Folder folder)
List FreeStyle Jobs in current folder and sub-folders.
|
public ConvertFolderAction(com.cloudbees.hudson.plugins.folder.Folder folder)
public String getIconFileName()
getIconFileName
in interface hudson.model.Action
public String getDisplayName()
getDisplayName
in interface hudson.model.Action
getDisplayName
in interface hudson.model.ModelObject
public String getUrlName()
getUrlName
in interface hudson.model.Action
public Collection<? extends hudson.model.Job> listFreeStyleJobs()
public Collection listFreeStyleJobs(com.cloudbees.hudson.plugins.folder.Folder folder)
folder
- Current folder whose jobs and jobs under sub-folders need to be listed.public void doConvert(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws javax.servlet.ServletException, IOException
request
- StaplerRequest object from the form.response
- StaplerResponse object that re-directs to newly created job.javax.servlet.ServletException
- If a servlet encounters difficulty; servlet exception is thrown.IOException
- If an input or output exception occurred.public hudson.model.Descriptor<ConvertFolderAction> getDescriptor()
getDescriptor
in interface hudson.model.Describable<ConvertFolderAction>
Copyright © 2016–2017. All rights reserved.