|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.custom.conversation.ConversationContext
public class ConversationContext
The ConversationContext handles all conversations within the current context
Constructor Summary | |
---|---|
protected |
ConversationContext(long id)
|
Method Summary | |
---|---|
void |
attachPersistence()
attach all conversations to their underlaying persistence |
void |
detachPersistence()
detach all conversations from their underlaying persistence |
protected void |
endConversation(Conversation conversation,
boolean regularEnd)
End the given conversation |
void |
endConversation(java.lang.String name,
boolean regularEnd)
End the conversation with given name. This also automatically closes all nested conversations. |
java.lang.Object |
findBean(java.lang.String name)
find the bean named name in the conversation stack |
Conversation |
findConversation(java.lang.Object instance)
find the conversation which holds the given instance |
Conversation |
getConversation(java.lang.String name)
get a conversation by name |
Conversation |
getCurrentConversation()
Get the current conversation. |
long |
getId()
|
long |
getLastAccess()
|
PersistenceManager |
getPersistenceManager()
find the persistence manager in the conversation stack |
boolean |
hasConversation(java.lang.String name)
check if the given conversation exists |
boolean |
hasConversations()
see if there is a conversation |
void |
purgePersistence()
detach all conversations from their underlaying persistence |
void |
shutdownContext()
|
void |
startConversation(java.lang.String name,
boolean persistence)
Start a conversation if not already started. All nested conversations (if any) are closed if the conversation already existed. |
protected void |
touch()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ConversationContext(long id)
Method Detail |
---|
protected void touch()
public long getLastAccess()
public void shutdownContext()
public void startConversation(java.lang.String name, boolean persistence)
name
- protected void endConversation(Conversation conversation, boolean regularEnd)
public void endConversation(java.lang.String name, boolean regularEnd)
public Conversation getCurrentConversation()
public boolean hasConversations()
public boolean hasConversation(java.lang.String name)
public Conversation getConversation(java.lang.String name)
public Conversation findConversation(java.lang.Object instance)
public java.lang.Object findBean(java.lang.String name)
name
in the conversation stack
public PersistenceManager getPersistenceManager()
public void detachPersistence()
public void purgePersistence()
public void attachPersistence()
public long getId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |