/** * End a long-runnning conversation. * * @param beforeRedirect should the conversation be destroyed before any redirect? */ public void end(boolean beforeRedirect) { Manager.instance().endConversation(beforeRedirect); }
/** * Make the root conversation in the current conversation stack temporary. */ public void endRootConversation(boolean beforeRedirect) { if(isNestedConversation()) { switchConversation(getRootConversationId()); } endConversation(beforeRedirect); }
private void endConversation(boolean beforeRedirect, boolean endRoot) { if(endRoot) { Manager.instance().endRootConversation(beforeRedirect); } else { Manager.instance().endConversation(beforeRedirect); } }
public void destroy() { boolean success = Manager.instance().switchConversation( getId() ); if (success) Manager.instance().endConversation(false); }
endConversation(false); break; case ENDROOT:
Manager.instance().endConversation(isEndConversationBeforeRedirect);