Package hudson.model
Interface RootAction
- All Superinterfaces:
Action,ExtensionPoint,ModelObject
- All Known Subinterfaces:
UnprotectedRootAction
- All Known Implementing Classes:
AssetManager,CLIAction,CloudSet,ConsoleAnnotatorFactory.RootAction,EnvironmentContributor.EnvVarsHtml,GlobalCloudConfiguration,HealthCheckAction,I18n,IdentityRootAction,ManageJenkinsAction,MemoryUsageMonitorAction,MyViewsProperty.GlobalAction,ResourceDomainRootAction,SearchAction,UserAction,WebSocketAgents,WebSocketEcho,WhoAmI
Marker interface for actions that are added to
Jenkins.
Extend from this interface and put Extension on your subtype
to have them auto-registered to Jenkins.
- Since:
- 1.311
- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Method Summary
Methods inherited from interface hudson.model.Action
getDisplayName, getIconFileName, getUrlName
-
Method Details
-
getBadge
ABadgeshown on the button for the action.- Returns:
- badge or
nullif no badge should be shown. - Since:
- 2.507
-
isPrimaryAction
default boolean isPrimaryAction()Identifies if the action is a primary action. Primary actions may be handled differently in the UI (for example, by always showing on the header rather than in an actions dropdown). In almost all cases this should returnfalsewhich is the default. Examples of a Primary action would be where actions would be used regularly or they would need to be prominent to convey some status. As a concrete example, an action that provides a Help action with a submenu containing various different links, would be a prime candidate for this to returntrue. If your action has the possibility of abadgethen this is another indicator that the action should returntrue(or otherwise restructured).- Returns:
trueif and only if this action should be considered primary.- Since:
- 2.516
-