Class ThemeManagerPageDecorator

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

@Extension @Symbol("themeManager") public class ThemeManagerPageDecorator extends PageDecorator
  • Constructor Details

    • ThemeManagerPageDecorator

      public ThemeManagerPageDecorator()
  • Method Details

    • get

      public static ThemeManagerPageDecorator get()
    • configure

      public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
      Overrides:
      configure in class Descriptor<PageDecorator>
    • getCategory

      @NonNull public GlobalConfigurationCategory getCategory()
      Overrides:
      getCategory in class Descriptor<PageDecorator>
    • setTheme

      @DataBoundSetter public void setTheme(ThemeManagerFactory theme)
    • getTheme

      public ThemeManagerFactory getTheme()
    • isDisableUserThemes

      public boolean isDisableUserThemes()
    • setDisableUserThemes

      @DataBoundSetter public void setDisableUserThemes(boolean disableUserThemes)
    • findTheme

      @NonNull public Theme findTheme()
      Finds the active theme. Checks User and then global theme.
      Returns:
      the active theme, or a no-op theme if not selected
    • findThemeFactory

      @NonNull public ThemeManagerFactory findThemeFactory()
    • getHeaderHtml

      public String getHeaderHtml()
      Get the complete header HTML for all configured theme elements.
    • getThemeKey

      public String getThemeKey()
    • isRespectSystemAppearance

      public boolean isRespectSystemAppearance()
    • shouldInjectCss

      public boolean shouldInjectCss()
      Filter to only inject CSS into "normal" Jenkins pages. Some plugins replace the whole layout of Jenkins and we don't want to disturb them.
      Returns:
      true if it is okay to inject CSS