Class SystemMessage
java.lang.Object
io.jenkins.plugins.customizable_header.SystemMessage
- All Implemented Interfaces:
Describable<SystemMessage>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static enum
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSystemMessage
(String message, SystemMessage.SystemMessageColor level, String uid) -
Method Summary
Modifier and TypeMethodDescriptiongetColor()
Deprecated.getLevel()
getUid()
boolean
boolean
void
Deprecated.instead set the level in the constructorvoid
setDismissible
(Boolean dismissible) void
setExpireDate
(String expireDate) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface hudson.model.Describable
getDescriptor
-
Field Details
-
DATE_OUTPUT_FORMATTER
-
DATE_INPUT_FORMATTER
-
-
Constructor Details
-
SystemMessage
@DataBoundConstructor public SystemMessage(String message, SystemMessage.SystemMessageColor level, String uid)
-
-
Method Details
-
getDismissible
-
setDismissible
-
setExpireDate
-
getUid
-
getExpireDate
-
isDismissed
public boolean isDismissed() -
isExpired
public boolean isExpired() -
setColor
Deprecated.instead set the level in the constructorSets the color for the system message. Only for backwards compatibility with CasC- Parameters:
color
-
-
readResolve
-
getMessage
-
getLevel
-
getEscapedMessage
-
getColor
Deprecated.usegetLevel()
The color for the system message.- Returns:
- color
-
getLevel()