java.lang.Object | |
↳ | com.atlassian.jira.util.AbstractMessageSet |
Known Direct Subclasses |
@Internal
classes and interfaces can not expect to be compatible with any version
other than the version they were compiled against (even minor version and milestone releases may break binary
compatibility with respect to @Internal
elements).
Base class for the message set.
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds an error message.
| |||||||||||
Adds an error message and associates a link with the error.
| |||||||||||
Adds an error message in English.
| |||||||||||
Adds a message with the given warning / error level
| |||||||||||
Adds an error message with the given warning / error level and associates a link with the error.
| |||||||||||
Will concatenate this message set with the provided message set.
| |||||||||||
Adds a warning message.
| |||||||||||
Adds a warning message and associates a link with the warning.
| |||||||||||
Adds a warning message in English.
| |||||||||||
Returns a unique set of all the English error messages.
| |||||||||||
Returns a unique set of all the English warning messages.
| |||||||||||
Returns
true if there are error messages, false otherwise. | |||||||||||
Returns
true if there are messages of any type, false otherwise. | |||||||||||
Returns
true if there are warning messages, false otherwise. | |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.jira.util.MessageSet
|
Adds an error message.
errorMessage | the message to add. |
---|
Adds an error message and associates a link with the error.
errorMessage | the message to add. |
---|---|
link | the link to show the users associated with this error. |
Adds an error message in English.
This is useful when the addErrorMessage(String)
method is used to add translated messages, and you want
to be able to get a set of the messages in English as well.
Eg, in the Project Import we show the translated messages on screen during validation, and log the English versions
in case Atlassian Support needs to read the logs later.
errorMessage | the message to add. |
---|
Adds a message with the given warning / error level
level | message level |
---|---|
errorMessage | the message to add. |
Adds an error message with the given warning / error level and associates a link with the error.
level | message level |
---|---|
errorMessage | the message to add. |
link | the link to show the users associated with this error. |
Will concatenate this message set with the provided message set. All new errors and warnings will be added to the existing errors and warnings.
messageSet | contains the new errors and warnings to add to this set. |
---|
Adds a warning message.
warningMessage | the message to add. |
---|
Adds a warning message and associates a link with the warning.
warningMessage | the message to add. |
---|---|
link | the link to show the users associated with this warning. |
Adds a warning message in English.
This is useful when the addWarningMessage(String)
method is used to add translated messages, and you want
to be able to get a set of the messages in English as well.
Eg, in the Project Import we show the translated messages on screen during validation, and log the English versions
in case Atlassian Support needs to read the logs later.
warningMessage | the message to add. |
---|
Returns a unique set of all the English error messages.
Returns a unique set of all the English warning messages.
Returns true
if there are error messages, false
otherwise.
true
if there are error messages, false
otherwise.
Returns true
if there are messages of any type, false
otherwise.
That is, it will return true if hasAnyErrors() is true
or hasAnyWarnings() is true
.
true
if there are messages of any type, false
otherwise.
Returns true
if there are warning messages, false
otherwise.
true
if there are warning messages, false
otherwise.