Package io.jenkins.plugins.bootstrap5
Klasse MessagesViewModel
java.lang.Object
io.jenkins.plugins.bootstrap5.MessagesViewModel
- Alle implementierten Schnittstellen:
ModelObject
A view model to visualize logging messages and errors of a build step.
- Autor:
- Ullrich Hafner
-
Konstruktorübersicht
KonstruktorBeschreibungMessagesViewModel
(Run<?, ?> owner, String displayName, List<String> infoMessages) Creates a newMessagesViewModel
with info messages only.MessagesViewModel
(Run<?, ?> owner, String displayName, List<String> infoMessages, List<String> errorMessages) Creates a newMessagesViewModel
with error and info messages. -
Methodenübersicht
-
Konstruktordetails
-
MessagesViewModel
Creates a newMessagesViewModel
with info messages only.- Parameter:
owner
- current build as owner of this viewdisplayName
- display name of the stepinfoMessages
- all info messages that should be shown (should not be empty)
-
MessagesViewModel
public MessagesViewModel(Run<?, ?> owner, String displayName, List<String> infoMessages, List<String> errorMessages) Creates a newMessagesViewModel
with error and info messages.- Parameter:
owner
- current build as owner of this viewdisplayName
- display name of the stepinfoMessages
- all info messages that should be shown (should not be empty)errorMessages
- all error messages that should be shown (might be empty)
-
-
Methodendetails
-
getOwner
Returns the build as owner of this view model.- Gibt zurück:
- the owner
-
getDisplayName
- Angegeben von:
getDisplayName
in SchnittstelleModelObject
-
getInfoMessages
Returns the information messages of the step.- Gibt zurück:
- the information messages
-
getErrorMessages
Returns the error messages of the step.- Gibt zurück:
- the error messages
-
hasErrors
public boolean hasErrors()Returns whether error messages are present.- Gibt zurück:
true
if there are error messages,false
if there are only info messages
-