Package com.cloudbees.jenkins.support
Class SupportAction
- java.lang.Object
-
- com.cloudbees.jenkins.support.SupportAction
-
- All Implemented Interfaces:
ExtensionPoint
,Action
,ModelObject
,RootAction
,org.kohsuke.stapler.StaplerProxy
@Extension @ExportedBean public class SupportAction extends Object implements RootAction, org.kohsuke.stapler.StaplerProxy
Main root action for generating support.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SupportAction.Selection
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static Permission
CREATE_BUNDLE
Deprecated.
-
Constructor Summary
Constructors Constructor Description SupportAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doDeleteBundles(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
void
doDownload(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
Generates a support bundle with selected components from the UI.void
doDownloadBundles(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
void
doGenerateAllBundles(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
Generates a support bundle with selected components from the UI.void
doGenerateBundle(String components, org.kohsuke.stapler.StaplerResponse rsp)
Generates a support bundle with only requested components.org.jvnet.localizer.Localizable
getActionBlurb()
org.jvnet.localizer.Localizable
getActionTitle()
String
getActionTitleText()
Api
getApi()
Remote API access.List<String>
getBundles()
Map<Component.ComponentCategory,List<Component>>
getCategorizedComponents()
List<Component>
getComponents()
String
getDisplayName()
String
getIconFileName()
Object
getTarget()
String
getUrlName()
boolean
isAnonymized()
boolean
selectedByDefault(Component c)
-
-
-
Field Detail
-
CREATE_BUNDLE
@Deprecated public static final Permission CREATE_BUNDLE
Deprecated.
-
-
Method Detail
-
getTarget
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public Object getTarget()
- Specified by:
getTarget
in interfaceorg.kohsuke.stapler.StaplerProxy
-
getIconFileName
public String getIconFileName()
- Specified by:
getIconFileName
in interfaceAction
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getUrlName
public String getUrlName()
- Specified by:
getUrlName
in interfaceAction
-
getActionTitleText
public String getActionTitleText()
-
getActionTitle
public org.jvnet.localizer.Localizable getActionTitle()
-
getActionBlurb
public org.jvnet.localizer.Localizable getActionBlurb()
-
getCategorizedComponents
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public Map<Component.ComponentCategory,List<Component>> getCategorizedComponents()
-
getApi
public final Api getApi()
Remote API access.
-
isAnonymized
public boolean isAnonymized()
-
doDeleteBundles
public void doDeleteBundles(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws javax.servlet.ServletException, IOException
- Throws:
javax.servlet.ServletException
IOException
-
doDownloadBundles
public void doDownloadBundles(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws javax.servlet.ServletException, IOException
- Throws:
javax.servlet.ServletException
IOException
-
doDownload
public void doDownload(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws javax.servlet.ServletException, IOException
Generates a support bundle with selected components from the UI.- Parameters:
req
- The stapler requestrsp
- The stapler response- Throws:
javax.servlet.ServletException
- If an error occurred during form submissionIOException
- If an input or output exception occurs
-
doGenerateAllBundles
public void doGenerateAllBundles(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws javax.servlet.ServletException, IOException
Generates a support bundle with selected components from the UI.- Parameters:
req
- The stapler requestrsp
- The stapler response- Throws:
javax.servlet.ServletException
- If an error occurred during form submissionIOException
- If an input or output exception occurs
-
doGenerateBundle
public void doGenerateBundle(@QueryParameter("components") String components, org.kohsuke.stapler.StaplerResponse rsp) throws IOException
Generates a support bundle with only requested components.- Parameters:
components
- component names separated by comma.rsp
- The stapler response- Throws:
IOException
- If an input or output exception occurs
-
selectedByDefault
public boolean selectedByDefault(Component c)
-
-