org.tynamo.conversations.services
Class ConversationManagerImpl

java.lang.Object
  extended by org.tynamo.conversations.services.ConversationManagerImpl
All Implemented Interfaces:
ConversationManager

public class ConversationManagerImpl
extends Object
implements ConversationManager


Nested Class Summary
protected static class ConversationManagerImpl.Keys
           
 
Nested classes/interfaces inherited from interface org.tynamo.conversations.services.ConversationManager
ConversationManager.Parameters
 
Constructor Summary
ConversationManagerImpl(org.apache.tapestry5.services.Request request, javax.servlet.http.HttpServletRequest servletRequest, org.apache.tapestry5.services.Cookies cookies, Map<Class,ConversationAware> listeners)
           
 
Method Summary
 boolean activateConversation(Object parameterObject)
           
 void addConversationListener(String pageName, ConversationAware conversationAware)
           
 String createConversation(String pageName, Integer maxIdleSeconds)
           
 String createConversation(String pageName, Integer maxIdleSeconds, boolean useCookie)
           
 String createConversation(String pageName, Integer maxIdleSeconds, Integer maxConversationLengthSeconds, boolean useCookie)
           
 String createConversation(String id, String pageName, Integer maxIdleSeconds, Integer maxConversationLengthSeconds, boolean useCookie)
           
protected  void discardConversation(Conversation conversation, boolean expired)
           
 String endConversation(String conversationId)
           
protected  Conversation endConversationIfIdle(String conversationId)
           
 void endIdleConversations()
           
 boolean exists(String conversationId)
           
 String getActiveConversation()
           
protected  Map<String,Conversation> getConversations()
           
 int getSecondsBeforeActiveConversationBecomesIdle()
           
 boolean isActiveConversation(String conversationId)
           
 void removeConversationListener(String pageName, ConversationAware conversationAware)
           
 void setPagePersistentFieldStrategy(ConversationalPersistentFieldStrategy pagePersistentFieldStrategy)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConversationManagerImpl

public ConversationManagerImpl(org.apache.tapestry5.services.Request request,
                               javax.servlet.http.HttpServletRequest servletRequest,
                               org.apache.tapestry5.services.Cookies cookies,
                               Map<Class,ConversationAware> listeners)
Method Detail

getConversations

protected Map<String,Conversation> getConversations()

activateConversation

public boolean activateConversation(Object parameterObject)
Specified by:
activateConversation in interface ConversationManager

createConversation

public String createConversation(String pageName,
                                 Integer maxIdleSeconds)
Specified by:
createConversation in interface ConversationManager

createConversation

public String createConversation(String pageName,
                                 Integer maxIdleSeconds,
                                 boolean useCookie)
Specified by:
createConversation in interface ConversationManager

createConversation

public String createConversation(String pageName,
                                 Integer maxIdleSeconds,
                                 Integer maxConversationLengthSeconds,
                                 boolean useCookie)
Specified by:
createConversation in interface ConversationManager

createConversation

public String createConversation(String id,
                                 String pageName,
                                 Integer maxIdleSeconds,
                                 Integer maxConversationLengthSeconds,
                                 boolean useCookie)
Specified by:
createConversation in interface ConversationManager

endIdleConversations

public void endIdleConversations()

discardConversation

protected void discardConversation(Conversation conversation,
                                   boolean expired)

exists

public boolean exists(String conversationId)
Specified by:
exists in interface ConversationManager

endConversationIfIdle

protected Conversation endConversationIfIdle(String conversationId)

getActiveConversation

public 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(String conversationId)
Specified by:
isActiveConversation in interface ConversationManager

endConversation

public String endConversation(String conversationId)
Specified by:
endConversation in interface ConversationManager

addConversationListener

public void addConversationListener(String pageName,
                                    ConversationAware conversationAware)
Specified by:
addConversationListener in interface ConversationManager

removeConversationListener

public void removeConversationListener(String pageName,
                                       ConversationAware conversationAware)
Specified by:
removeConversationListener in interface ConversationManager


Copyright © 2004-2010. All Rights Reserved.