Class Component
java.lang.Object
com.cloudbees.jenkins.support.api.Component
- All Implemented Interfaces:
ExtensionPoint
- Direct Known Subclasses:
AboutBrowser
,AboutJenkins
,AboutUser
,AdministrativeMonitors
,BuildQueue
,ConfigFileComponent
,CustomLogs
,EnvironmentVariables
,FileDescriptorLimit
,FileListCapComponent
,GCLogs
,HeapUsageHistogram
,ItemsContent
,JenkinsLogs
,LoadStats
,LoggerManager
,Metrics
,NetworkInterfaces
,NodeMonitors
,ObjectComponent
,OtherConfigFilesComponent
,OtherLogs
,RemotingDiagnostics
,ReverseProxy
,RootCAs
,RunningBuilds
,SlaveCommandStatistics
,SlaveLogs
,SystemProperties
,TaskLogs
,UnfilteredFileListCapComponent
,UpdateCenter
Represents a component of a support bundle.
This is the unit of user consent; when creating a support bundle, the user would enable/disable individual components.
- Author:
- Stephen Connolly
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Categories supported by this version of support-coreNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
addContents
(Container container) Add contents to a containerSpecify in whichComponent.ComponentCategory
the current component is related.abstract String
getId()
Returns the component id.abstract Set<Permission>
Returns the (possibly empty, never null) list of permissions that are required for the user to include this in a bundle.<C extends AbstractModelObject>
booleanisApplicable
(Class<C> clazz) Return if this component is applicable to a specific class of item.boolean
Returnstrue
if the current authentication can include this component in a bundle.boolean
void
start
(SupportContext context) Deprecated.
-
Constructor Details
-
Component
public Component()
-
-
Method Details
-
getRequiredPermissions
Returns the (possibly empty, never null) list of permissions that are required for the user to include this in a bundle. An empty list indicates that any user can include this bundle.- Returns:
- the (possibly empty, never null) list of permissions that are required for the user to include this in a bundle.
-
getDisplayPermissions
-
isEnabled
@Exported public boolean isEnabled()Returnstrue
if the current authentication can include this component in a bundle.- Returns:
true
if the current authentication can include this component in a bundle.
-
isSelectedByDefault
@Exported public boolean isSelectedByDefault() -
isApplicable
Return if this component is applicable to a specific class of item.- Type Parameters:
C
- Object that extendsAbstractModelObject
- Parameters:
clazz
- the class- Returns:
true
if applicable to this class
-
getDisplayName
-
addContents
Add contents to a container- Parameters:
container
- aContainer
-
getId
Returns the component id.- Returns:
- by default, the
Class.getSimpleName()
of the component implementation.
-
start
Deprecated. -
getCategory
Specify in whichComponent.ComponentCategory
the current component is related.- Returns:
- An enum value of
Component.ComponentCategory
. - Since:
- TODO
-