|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.orchestra.conversation.ConversationUtils
public final class ConversationUtils
Some helpers usable for public use
Method Summary | |
---|---|
static void |
ensureConversationRedirect(java.lang.String conversationName,
java.lang.String redirectViewId)
If no conversation with name conversationName is active a redirect to
redirectViewId will be issued. |
static java.lang.Object |
invalidateAndRestart(Conversation conversation)
End and restart the given conversation. |
static java.lang.Object |
invalidateAndRestartCurrent()
End and restart the current conversation. |
static void |
invalidateIfExists(java.lang.String name)
Invalidates a conversation if it exists. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.Object invalidateAndRestart(Conversation conversation)
In contrast to Conversation.invalidateAndRestart()
this
method returns a new instance of the "controller bean" for the given conversation.
The "controller bean" is the one you configured in your dependency injection framework.
public static java.lang.Object invalidateAndRestartCurrent()
In contrast to invalidateAndRestart(Conversation)
this
method returns a new instance of the "current bean".
public static void ensureConversationRedirect(java.lang.String conversationName, java.lang.String redirectViewId)
conversationName
is active a redirect to
redirectViewId
will be issued.
If redirectViewId
starts with an slash ('/') the context path will be added.
public static void invalidateIfExists(java.lang.String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |