Class NotificationBellAction
java.lang.Object
io.jenkins.plugins.interactiveinput.ui.NotificationBellAction
- All Implemented Interfaces:
ExtensionPoint,Action,ModelObject,RootAction
Header-button
RootAction for the notification centre.
Core renders primary root actions in the page header (lib/layout/header/primaryAction.jelly)
with a stable element id root-action-${action.class.simpleName}. bell.js then only
attaches the live pending-count badge to that button — it no longer invents the button or guesses a
header insertion point (hosting review, mawinter69 2026-09-15).
getUrlName() is null on purpose, matching core's SearchAction: the
control is a header <button>, not a navigable page. The existing dropdown/modal stays on
click via bell.js.
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringId core assigns to this action's header button. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnullso core renders a<button>rather than a navigable<a>.booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.Action
getDescription, getEvent, getGroup, getSemantic, isVisibleInContextMenuMethods inherited from interface hudson.model.RootAction
getBadge
-
Field Details
-
HEADER_BUTTON_ID
Id core assigns to this action's header button. Keep in lockstep withroot-action-${simpleName}inlib/layout/header/primaryAction.jelly.
-
-
Constructor Details
-
NotificationBellAction
public NotificationBellAction()
-
-
Method Details
-
getIconFileName
- Specified by:
getIconFileNamein interfaceAction- Returns:
- the configured notification symbol when the centre is on and the viewer has Overall/Read;
nullhides the header button (same gate asNotificationBell.isBellVisible()).
-
getDisplayName
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
getUrlName
nullso core renders a<button>rather than a navigable<a>.- Specified by:
getUrlNamein interfaceAction
-
isPrimaryAction
public boolean isPrimaryAction()- Specified by:
isPrimaryActionin interfaceRootAction
-