@ExportedBean public abstract class Component extends Object implements ExtensionPoint
This is the unit of user consent; when creating a support bundle, the user would enable/disable individual components.
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
Component() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addContents(Container container)
Add contents to a container
|
abstract String |
getDisplayName() |
String |
getDisplayPermissions() |
String |
getId()
Returns the component id.
|
abstract Set<Permission> |
getRequiredPermissions()
Returns the (possibly empty, never null) list of permissions that are required for the user to include this
in a bundle.
|
<C extends AbstractModelObject> |
isApplicable(Class<C> clazz)
Return if this component is applicable to a specific class of item.
|
boolean |
isEnabled()
Returns
true if the current authentication can include this component in a bundle. |
boolean |
isSelectedByDefault() |
void |
start(SupportContext context) |
@NonNull public abstract Set<Permission> getRequiredPermissions()
public String getDisplayPermissions()
@Exported public boolean isEnabled()
true
if the current authentication can include this component in a bundle.true
if the current authentication can include this component in a bundle.@Exported public boolean isSelectedByDefault()
public <C extends AbstractModelObject> boolean isApplicable(Class<C> clazz)
C
- Object that extends AbstractModelObject
clazz
- the classtrue
if applicable to this class@NonNull @Exported public abstract String getDisplayName()
public abstract void addContents(@NonNull Container container)
container
- a Container
@Exported @NonNull public String getId()
Class.getSimpleName()
of the component implementation.public void start(@NonNull SupportContext context)
Copyright © 2016–2022. All rights reserved.