Class AuditFlowPageDecorator

java.lang.Object
hudson.model.Descriptor<PageDecorator>
hudson.model.PageDecorator
io.jenkins.plugins.auditlogger.AuditFlowPageDecorator
All Implemented Interfaces:
ExtensionPoint, Describable<PageDecorator>, Saveable, Loadable, OnMaster

@Extension public class AuditFlowPageDecorator extends PageDecorator
Global PageDecorator extension that injects a security anomaly alert banner into Jenkins page headers when active un-dismissed anomalies for enabled rules are detected.
  • Constructor Details

    • AuditFlowPageDecorator

      public AuditFlowPageDecorator()
  • Method Details

    • isBannerVisible

      public boolean isBannerVisible()
      Checks whether the anomaly alert banner should be displayed. Returns true if master anomaly detection, banner display, and at least one anomaly rule is enabled and there is at least one active alert.
    • isAdminUser

      public boolean isAdminUser()
      Checks if current user has Jenkins Administer permission.
    • getActiveAlertCount

      public int getActiveAlertCount()
      Returns the count of active, un-dismissed anomaly alerts for enabled rules.
    • getActiveAlertTypesSummary

      public String getActiveAlertTypesSummary()
      Returns a human-readable comma-separated summary of the active anomaly types detected.
    • formatAnomalyTypeName

      public static String formatAnomalyTypeName(AnomalyDetector.AnomalyType type)
      Returns a friendly display name for an anomaly type.
    • getHighestSeverity

      public String getHighestSeverity()
      Returns the highest severity among active alerts (e.g. CRITICAL, HIGH, MEDIUM, LOW).
    • getAuditFlowUrl

      public String getAuditFlowUrl()
      Returns the root-relative path to the AuditFlow dashboard.