public interface MessageContext
Modifier and Type | Method and Description |
---|---|
void |
addMessage(MessageResolver messageResolver)
Add a new message to this context.
|
void |
clearMessages()
Clear all messages added to this context.
|
Message[] |
getAllMessages()
Get all messages in this context.
|
Message[] |
getMessagesByCriteria(MessageCriteria criteria)
Get all messages that meet the given result criteria.
|
Message[] |
getMessagesBySource(java.lang.Object source)
Get all messages in this context for the source provided.
|
boolean |
hasErrorMessages()
Returns true if there are error messages in this context.
|
Message[] getAllMessages()
Message[] getMessagesBySource(java.lang.Object source)
source
- the source associated with messages, or null for global messagesMessage[] getMessagesByCriteria(MessageCriteria criteria)
criteria
- the message criteriaboolean hasErrorMessages()
void addMessage(MessageResolver messageResolver)
messageResolver
- the resolver that will resolve the message to be addedvoid clearMessages()