org.tynamo.conversations.services
Class ConversationManagerImpl
java.lang.Object
org.tynamo.conversations.services.ConversationManagerImpl
- All Implemented Interfaces:
- ConversationManager
public class ConversationManagerImpl
- extends java.lang.Object
- implements ConversationManager
|
Constructor Summary |
ConversationManagerImpl(org.apache.tapestry5.services.Request request,
org.apache.tapestry5.services.Cookies cookies)
|
|
Method Summary |
boolean |
activateConversation(java.lang.Object parameterObject)
Activates conversation context. |
java.lang.String |
createConversation(java.lang.String pageName,
java.lang.Integer maxIdleSeconds)
|
java.lang.String |
createConversation(java.lang.String pageName,
java.lang.Integer maxIdleSeconds,
boolean useCookie)
|
java.lang.String |
createConversation(java.lang.String pageName,
java.lang.Integer maxIdleSeconds,
java.lang.Integer maxConversationLengthSeconds,
boolean useCookie)
|
java.lang.String |
createConversation(java.lang.String id,
java.lang.String pageName,
java.lang.Integer maxIdleSeconds,
java.lang.Integer maxConversationLengthSeconds,
boolean useCookie)
|
protected void |
discardConversation(Conversation conversation)
|
java.lang.String |
endConversation(java.lang.String conversationId)
|
protected Conversation |
endConversationIfIdle(java.lang.String conversationId)
|
void |
endIdleConversations()
|
boolean |
exists(java.lang.String conversationId)
|
java.lang.String |
getActiveConversation()
|
protected java.util.Map<java.lang.String,Conversation> |
getConversations()
|
int |
getSecondsBeforeActiveConversationBecomesIdle()
|
boolean |
isActiveConversation(java.lang.String conversationId)
|
void |
setPagePersistentFieldStrategy(ConversationalPersistentFieldStrategy pagePersistentFieldStrategy)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConversationManagerImpl
public ConversationManagerImpl(org.apache.tapestry5.services.Request request,
org.apache.tapestry5.services.Cookies cookies)
getConversations
protected java.util.Map<java.lang.String,Conversation> getConversations()
activateConversation
public boolean activateConversation(java.lang.Object parameterObject)
- Description copied from interface:
ConversationManager
- Activates conversation context. Internally used by the conversation frameworks.
The interface of this operation will change in T5.1 since it has a common interface
for handling request parameters
- Specified by:
activateConversation in interface ConversationManager
createConversation
public java.lang.String createConversation(java.lang.String pageName,
java.lang.Integer maxIdleSeconds)
- Specified by:
createConversation in interface ConversationManager
createConversation
public java.lang.String createConversation(java.lang.String pageName,
java.lang.Integer maxIdleSeconds,
boolean useCookie)
- Specified by:
createConversation in interface ConversationManager
createConversation
public java.lang.String createConversation(java.lang.String pageName,
java.lang.Integer maxIdleSeconds,
java.lang.Integer maxConversationLengthSeconds,
boolean useCookie)
- Specified by:
createConversation in interface ConversationManager
createConversation
public java.lang.String createConversation(java.lang.String id,
java.lang.String pageName,
java.lang.Integer maxIdleSeconds,
java.lang.Integer maxConversationLengthSeconds,
boolean useCookie)
- Specified by:
createConversation in interface ConversationManager
endIdleConversations
public void endIdleConversations()
discardConversation
protected void discardConversation(Conversation conversation)
exists
public boolean exists(java.lang.String conversationId)
- Specified by:
exists in interface ConversationManager
endConversationIfIdle
protected Conversation endConversationIfIdle(java.lang.String conversationId)
getActiveConversation
public java.lang.String getActiveConversation()
- Specified by:
getActiveConversation in interface ConversationManager
getSecondsBeforeActiveConversationBecomesIdle
public int getSecondsBeforeActiveConversationBecomesIdle()
- Specified by:
getSecondsBeforeActiveConversationBecomesIdle in interface ConversationManager
setPagePersistentFieldStrategy
public void setPagePersistentFieldStrategy(ConversationalPersistentFieldStrategy pagePersistentFieldStrategy)
- Specified by:
setPagePersistentFieldStrategy in interface ConversationManager
isActiveConversation
public boolean isActiveConversation(java.lang.String conversationId)
- Specified by:
isActiveConversation in interface ConversationManager
endConversation
public java.lang.String endConversation(java.lang.String conversationId)
- Specified by:
endConversation in interface ConversationManager
Copyright © 2004-2009. All Rights Reserved.