Class SystemMessage
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<SystemMessage>
-
- io.jenkins.plugins.customizable_header.SystemMessage
-
- All Implemented Interfaces:
Describable<SystemMessage>
public class SystemMessage extends AbstractDescribableImpl<SystemMessage>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SystemMessage.DescriptorImpl
static class
SystemMessage.SystemMessageColor
-
Constructor Summary
Constructors Constructor Description SystemMessage(String message, SystemMessage.SystemMessageColor level)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getColor()
Deprecated.usegetLevel()
SystemMessage.SystemMessageColor
getLevel()
String
getMessage()
Object
readResolve()
void
setColor(String color)
Deprecated.instead set the level in the constructor-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Constructor Detail
-
SystemMessage
@DataBoundConstructor public SystemMessage(String message, SystemMessage.SystemMessageColor level)
-
-
Method Detail
-
setColor
@DataBoundSetter @Deprecated public void setColor(String color)
Deprecated.instead set the level in the constructorSets the color for the system message. Only for backwards compatibility with CasC- Parameters:
color
-
-
readResolve
public Object readResolve()
-
getMessage
public String getMessage()
-
getLevel
public SystemMessage.SystemMessageColor getLevel()
-
getColor
@Deprecated public String getColor()
Deprecated.usegetLevel()
The color for the system message.- Returns:
- color
-
-