|
||||||||||
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 Messages
public boolean isEmpty()
Messages
Message
or MessageBuilder
objects in the queue.
isEmpty
in interface Messages
public Set<Message> getAll()
Messages
Messages
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 Messages
public void add(Message message)
Messages
Message
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 Messages
public void add(MessageBuilder builder)
Messages
MessageBuilder
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 Messages
public BundleTemplateMessage info(BundleKey message)
Messages
MessageBuilder
with the specified Level
, add it to the internal queue, and return it.
info
in interface Messages
public BundleTemplateMessage info(BundleKey message, Object... params)
Messages
MessageBuilder
with the specified Level
, add it to the internal queue, and return it.
info
in interface Messages
public BundleTemplateMessage warn(BundleKey message)
Messages
MessageBuilder
with the specified Level
, add it to the internal queue, and return it.
warn
in interface Messages
public BundleTemplateMessage warn(BundleKey message, Object... params)
Messages
MessageBuilder
with the specified Level
, add it to the internal queue, and return it.
warn
in interface Messages
public BundleTemplateMessage error(BundleKey message)
Messages
MessageBuilder
with the specified Level
, add it to the internal queue, and return it.
error
in interface Messages
public BundleTemplateMessage error(BundleKey message, Object... params)
Messages
MessageBuilder
with the specified Level
, add it to the internal queue, and return it.
error
in interface Messages
public BundleTemplateMessage fatal(BundleKey message)
Messages
MessageBuilder
with the specified Level
, add it to the internal queue, and return it.
fatal
in interface Messages
public BundleTemplateMessage fatal(BundleKey message, Object... params)
Messages
MessageBuilder
with the specified Level
, add it to the internal queue, and return it.
fatal
in interface Messages
public TemplateMessage info(String message)
Messages
MessageBuilder
with the specified Level
, add it to the internal queue, and return it.
info
in interface Messages
public TemplateMessage info(String message, Object... params)
Messages
MessageBuilder
with the specified Level
, add it to the internal queue, and return it.
info
in interface Messages
public TemplateMessage warn(String message)
Messages
MessageBuilder
with the specified Level
, add it to the internal queue, and return it.
warn
in interface Messages
public TemplateMessage warn(String message, Object... params)
Messages
MessageBuilder
with the specified Level
, add it to the internal queue, and return it.
warn
in interface Messages
public TemplateMessage error(String message)
Messages
MessageBuilder
with the specified Level
, add it to the internal queue, and return it.
error
in interface Messages
public TemplateMessage error(String message, Object... params)
Messages
MessageBuilder
with the specified Level
, add it to the internal queue, and return it.
error
in interface Messages
public TemplateMessage fatal(String message)
Messages
MessageBuilder
with the specified Level
, add it to the internal queue, and return it.
fatal
in interface Messages
public TemplateMessage fatal(String message, Object... params)
Messages
MessageBuilder
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 |