Package io.jenkins.plugins.auditlogger
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
Global PageDecorator extension that injects a security anomaly alert banner
into Jenkins page headers when active un-dismissed anomalies for enabled rules are detected.
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.SelfNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.PageDecorator
ALLFields inherited from class hudson.model.Descriptor
clazz -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringReturns a friendly display name for an anomaly type.intReturns the count of active, un-dismissed anomaly alerts for enabled rules.Returns a human-readable comma-separated summary of the active anomaly types detected.Returns the root-relative path to the AuditFlow dashboard.Returns the highest severity among active alerts (e.g.booleanChecks if current user has Jenkins Administer permission.booleanChecks whether the anomaly alert banner should be displayed.Methods inherited from class hudson.model.PageDecorator
all, getDescriptor, getUrlMethods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, configure, doHelp, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
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
Returns a human-readable comma-separated summary of the active anomaly types detected. -
formatAnomalyTypeName
Returns a friendly display name for an anomaly type. -
getHighestSeverity
Returns the highest severity among active alerts (e.g. CRITICAL, HIGH, MEDIUM, LOW). -
getAuditFlowUrl
Returns the root-relative path to the AuditFlow dashboard.
-