Package io.jenkins.plugins.thememanager
Class Theme
java.lang.Object
io.jenkins.plugins.thememanager.Theme
Holds URLs to CSS and JavaScript files.
Initialise it with builder()
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Theme.Builder
builder()
Constructs the builder for the theme.getProperties
(String artifactId) Additional information that theme authors can provide to influence other pluginsgetProperty
(String artifactId, String propertyName) Deprecated.boolean
Whether the theme should be served on Blue Ocean.boolean
-
Method Details
-
getCssUrls
- Returns:
- list of CSS URLs for the theme.
-
getJavascriptUrls
- Returns:
- list of JavaScript URLs for the theme.
-
isBlueOceanCompatible
public boolean isBlueOceanCompatible()Whether the theme should be served on Blue Ocean.- Returns:
- if the theme is compatible with blue ocean.
-
isRespectSystemAppearance
public boolean isRespectSystemAppearance() -
getProperties
Additional information that theme authors can provide to influence other pluginse.g. the Prism API plugin can read properties and use a default theme based on this information.
- Parameters:
artifactId
- the plugin to retrieve the properties for- Returns:
- the properties associated with the plugin requested
-
getProperty
Deprecated.usegetThemeManagerProperty
from JavaScript insteadDo not use this as it doesn't support system themes. Additional information that theme authors can provide to influence other pluginse.g. the Prism API plugin can read properties and use a default theme based on this information.
- Parameters:
artifactId
- the plugin to retrieve the properties forpropertyName
- the property to retrieve- Returns:
- the properties associated with the plugin requested
-
builder
Constructs the builder for the theme.- Returns:
- an empty builder for building the theme.
-
getThemeManagerProperty
from JavaScript instead