Package io.jenkins.plugins.thememanager
Class Theme
- java.lang.Object
-
- io.jenkins.plugins.thememanager.Theme
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Theme.Builder
Builder for creating a theme.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Theme.Builder
builder()
Constructs the builder for the theme.List<String>
getCssUrls()
List<String>
getJavascriptUrls()
List<String>
getProperties(String artifactId)
Additional information that theme authors can provide to influence other pluginsOptional<String>
getProperty(String artifactId, String propertyName)
Deprecated.usegetThemeManagerProperty
from JavaScript insteadboolean
isBlueOceanCompatible()
Whether the theme should be served on Blue Ocean.boolean
isRespectSystemAppearance()
-
-
-
Method Detail
-
getJavascriptUrls
public List<String> 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
public List<String> getProperties(String artifactId)
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 public Optional<String> getProperty(String artifactId, String propertyName)
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
public static Theme.Builder builder()
Constructs the builder for the theme.- Returns:
- an empty builder for building the theme.
-
-