Class CustomHeaderConfiguration
java.lang.Object
hudson.model.Descriptor<GlobalConfiguration>
jenkins.model.GlobalConfiguration
io.jenkins.plugins.customizable_header.CustomHeaderConfiguration
- All Implemented Interfaces:
ExtensionPoint
,Describable<GlobalConfiguration>
,Saveable
,Loadable
,OnMaster
@Extension
@Symbol("customHeader")
public class CustomHeaderConfiguration
extends GlobalConfiguration
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addSystemMessage
(SystemMessage message) boolean
configure
(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) void
static CustomHeaderConfiguration
get()
The active header color.The globally configured Headercolor.getLinks()
getLogo()
Deprecated.getTitle()
boolean
hasLinks()
boolean
boolean
void
setCssResource
(String cssResource) void
setEnabled
(boolean enabled) void
setHeader
(HeaderSelector header) void
setHeaderColor
(HeaderColor headerColor) void
setLinks
(List<AbstractLink> links) void
void
setLogoText
(String logoText) void
setSystemMessage
(SystemMessage systemMessage) Deprecated.void
setSystemMessages
(List<SystemMessage> systemMessages) void
setThinHeader
(boolean thinHeader) void
Methods inherited from class jenkins.model.GlobalConfiguration
all, getDescriptor, getGlobalConfigPage
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
CustomHeaderConfiguration
@DataBoundConstructor public CustomHeaderConfiguration()
-
-
Method Details
-
getCategory
- Overrides:
getCategory
in classDescriptor<GlobalConfiguration>
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) throws Descriptor.FormException - Overrides:
configure
in classGlobalConfiguration
- Throws:
Descriptor.FormException
-
readResolve
-
getFavorites
-
getSystemMessage
Deprecated. -
setSystemMessage
Deprecated. -
getSystemMessages
-
setSystemMessages
-
addSystemMessage
-
deleteSystemMessage
-
getLinks
-
setLinks
-
hasLinks
public boolean hasLinks() -
getUserLinks
-
isThinHeader
public boolean isThinHeader() -
setThinHeader
@DataBoundSetter public void setThinHeader(boolean thinHeader) -
setHeader
-
getHeader
-
setEnabled
@DataBoundSetter public void setEnabled(boolean enabled) -
isEnabled
public boolean isEnabled() -
setLogo
-
getLogo
-
setHeaderColor
-
getHeaderColor
The globally configured Headercolor.- Returns:
- global headercolor.
-
getActiveHeaderColor
The active header color. If the user has overwritten the colors those colors are used.- Returns:
-
getActiveHeader
-
setLogoText
-
getLogoText
-
get
-
getTitle
-
setTitle
-
getCssResource
-
setCssResource
-
getCssResourceUrl
-
defaultLogo
-
getLogoDescriptors
-