|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.seam.international.status.MessagesImpl
@RequestScoped public class MessagesImpl
An implementation of the Messages interface.
| Constructor Summary | |
|---|---|
MessagesImpl()
|
|
| Method Summary | |
|---|---|
void |
add(Message message)
Add a Message object to the pending message cache. |
void |
add(MessageBuilder builder)
Add a MessageBuilder object to the pending builder cache. |
void |
clear()
Clear all pending messages. |
BundleTemplateMessage |
error(BundleKey message)
Create a MessageBuilder with the specified Level, add it to the internal queue, and return it. |
BundleTemplateMessage |
error(BundleKey message,
Object... params)
Create a MessageBuilder with the specified Level, add it to the internal queue, and return it. |
TemplateMessage |
error(String message)
Create a MessageBuilder with the specified Level, add it to the internal queue, and return it. |
TemplateMessage |
error(String message,
Object... params)
Create a MessageBuilder with the specified Level, add it to the internal queue, and return it. |
BundleTemplateMessage |
fatal(BundleKey message)
Create a MessageBuilder with the specified Level, add it to the internal queue, and return it. |
BundleTemplateMessage |
fatal(BundleKey message,
Object... params)
Create a MessageBuilder with the specified Level, add it to the internal queue, and return it. |
TemplateMessage |
fatal(String message)
Create a MessageBuilder with the specified Level, add it to the internal queue, and return it. |
TemplateMessage |
fatal(String message,
Object... params)
Create a MessageBuilder with the specified Level, add it to the internal queue, and return it. |
Set<Message> |
getAll()
Retrieve all pending Messages in their final state - as they will be displayed to the user. |
BundleTemplateMessage |
info(BundleKey message)
Create a MessageBuilder with the specified Level, add it to the internal queue, and return it. |
BundleTemplateMessage |
info(BundleKey message,
Object... params)
Create a MessageBuilder with the specified Level, add it to the internal queue, and return it. |
TemplateMessage |
info(String message)
Create a MessageBuilder with the specified Level, add it to the internal queue, and return it. |
TemplateMessage |
info(String message,
Object... params)
Create a MessageBuilder with the specified Level, add it to the internal queue, and return it. |
boolean |
isEmpty()
Return true if there are no pending Message or MessageBuilder objects in the queue. |
BundleTemplateMessage |
warn(BundleKey message)
Create a MessageBuilder with the specified Level, add it to the internal queue, and return it. |
BundleTemplateMessage |
warn(BundleKey message,
Object... params)
Create a MessageBuilder with the specified Level, add it to the internal queue, and return it. |
TemplateMessage |
warn(String message)
Create a MessageBuilder with the specified Level, add it to the internal queue, and return it. |
TemplateMessage |
warn(String message,
Object... params)
Create a MessageBuilder with the specified Level, add it to the internal queue, and return it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MessagesImpl()
| Method Detail |
|---|
public void clear()
Messages
clear in interface Messagespublic boolean isEmpty()
MessagesMessage or MessageBuilder objects in the queue.
isEmpty in interface Messagespublic Set<Message> getAll()
MessagesMessages in their final state - as they will be displayed to the user. Calling this method
will call MessageBuilder.build() on any queued MessageBuilder instances, adding the resulting
Message objects to the message cache, and clearing the builders from the builder cache.
getAll in interface Messagespublic void add(Message message)
MessagesMessage object to the pending message cache. Messages remain pending until cleared by and displayed in the
View Layer, or until cleared manually by calling Messages.clear(), or until the user's Session expires.
Note: Duplicate messages are ignored.
add in interface Messagespublic void add(MessageBuilder builder)
MessagesMessageBuilder object to the pending builder cache. A subsequent call to Messages.getAll() will
trigger, MessageBuilder.build() to be called called on each builder added in this way.
add in interface Messagespublic BundleTemplateMessage info(BundleKey message)
MessagesMessageBuilder with the specified Level, add it to the internal queue, and return it.
info in interface Messages
public BundleTemplateMessage info(BundleKey message,
Object... params)
MessagesMessageBuilder with the specified Level, add it to the internal queue, and return it.
info in interface Messagespublic BundleTemplateMessage warn(BundleKey message)
MessagesMessageBuilder with the specified Level, add it to the internal queue, and return it.
warn in interface Messages
public BundleTemplateMessage warn(BundleKey message,
Object... params)
MessagesMessageBuilder with the specified Level, add it to the internal queue, and return it.
warn in interface Messagespublic BundleTemplateMessage error(BundleKey message)
MessagesMessageBuilder with the specified Level, add it to the internal queue, and return it.
error in interface Messages
public BundleTemplateMessage error(BundleKey message,
Object... params)
MessagesMessageBuilder with the specified Level, add it to the internal queue, and return it.
error in interface Messagespublic BundleTemplateMessage fatal(BundleKey message)
MessagesMessageBuilder with the specified Level, add it to the internal queue, and return it.
fatal in interface Messages
public BundleTemplateMessage fatal(BundleKey message,
Object... params)
MessagesMessageBuilder with the specified Level, add it to the internal queue, and return it.
fatal in interface Messagespublic TemplateMessage info(String message)
MessagesMessageBuilder with the specified Level, add it to the internal queue, and return it.
info in interface Messages
public TemplateMessage info(String message,
Object... params)
MessagesMessageBuilder with the specified Level, add it to the internal queue, and return it.
info in interface Messagespublic TemplateMessage warn(String message)
MessagesMessageBuilder with the specified Level, add it to the internal queue, and return it.
warn in interface Messages
public TemplateMessage warn(String message,
Object... params)
MessagesMessageBuilder with the specified Level, add it to the internal queue, and return it.
warn in interface Messagespublic TemplateMessage error(String message)
MessagesMessageBuilder with the specified Level, add it to the internal queue, and return it.
error in interface Messages
public TemplateMessage error(String message,
Object... params)
MessagesMessageBuilder with the specified Level, add it to the internal queue, and return it.
error in interface Messagespublic TemplateMessage fatal(String message)
MessagesMessageBuilder with the specified Level, add it to the internal queue, and return it.
fatal in interface Messages
public TemplateMessage fatal(String message,
Object... params)
MessagesMessageBuilder with the specified Level, add it to the internal queue, and return it.
fatal in interface Messages
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||