| com.atlassian.jira.util.MessageSet |
Known Indirect Subclasses
|
@PublicApi
Clients of @PublicApi can expect
that programs compiled against a given version will remain binary compatible with later versions of the
@PublicApi as per each product's API policy as long as the client does not implement/extend
@PublicApi interfaces or classes (refer to each product's API policy for the exact
guarantee---usually binary compatibility is guaranteed at least across minor versions).
@PublicApi interfaces and classes are not designed to be implemented or extended by clients,
we may perform certain types of binary-incompatible changes to these classes and interfaces, but these will not
affect well-behaved clients that do not extend/implement these types (in general, only classes and interfaces
annotated with @PublicSpi are safe to extend/implement).
Used to communicate error and warning messages.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| MessageSet.Level | Message levels | ||||||||||
| MessageSet.MessageLink | A simple class for holding link text and a link url. | ||||||||||
| 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. | |||||||||||
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.
| errorMsg | the unique error message |
|---|
| warningMsg | the unique warning message |
|---|
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.