Class SupportObjectAction<T extends AbstractModelObject>
java.lang.Object
com.cloudbees.jenkins.support.actions.SupportObjectAction<T>
- Type Parameters:
T
- The type ofAbstractModelObject
- All Implemented Interfaces:
Action
,ModelObject
- Direct Known Subclasses:
SupportAbstractItemAction
,SupportComputerAction
,SupportRunAction
public abstract class SupportObjectAction<T extends AbstractModelObject>
extends Object
implements Action
Support Action at Object level.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
doGenerateAndDownload
(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) org.jvnet.localizer.Localizable
org.jvnet.localizer.Localizable
protected String
List<? extends ObjectComponent<T>>
final T
protected final List<ObjectComponent<T>>
parseRequest
(org.kohsuke.stapler.StaplerRequest req) Parse the stapler JSON output and retrieve configured components.void
setComponents
(List<? extends ObjectComponent<T>> components) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface hudson.model.Action
getDisplayName
-
Constructor Details
-
SupportObjectAction
-
-
Method Details
-
getObject
-
getUrlName
- Specified by:
getUrlName
in interfaceAction
-
getIconFileName
- Specified by:
getIconFileName
in interfaceAction
-
getBundleNameQualifier
-
setComponents
-
getActionTitle
public org.jvnet.localizer.Localizable getActionTitle() -
getActionBlurb
public org.jvnet.localizer.Localizable getActionBlurb() -
getComponents
-
getApplicableComponentsDescriptors
-
getDefaultComponentsDescriptors
-
doGenerateAndDownload
public final void doGenerateAndDownload(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws javax.servlet.ServletException, IOException, Descriptor.FormException - Throws:
javax.servlet.ServletException
IOException
Descriptor.FormException
-
parseRequest
protected final List<ObjectComponent<T>> parseRequest(org.kohsuke.stapler.StaplerRequest req) throws javax.servlet.ServletException, Descriptor.FormException Parse the stapler JSON output and retrieve configured components.- Parameters:
req
- the request- Returns:
- the
DescribableList
of components - Throws:
javax.servlet.ServletException
Descriptor.FormException
-