public String getCurrentConversationDescription() { ConversationEntry ce = getCurrentConversationEntry(); if ( ce==null ) return null; return ce.getDescription(); }
public Integer getCurrentConversationTimeout() { ConversationEntry ce = getCurrentConversationEntry(); if ( ce==null ) return null; return ce.getTimeout(); }
public String getCurrentConversationViewId() { ConversationEntry ce = getCurrentConversationEntry(); if ( ce==null ) return null; return ce.getViewId(); }
public Integer getCurrentConversationConcurrentRequestTimeout() { ConversationEntry ce = getCurrentConversationEntry(); if (ce == null) return null; return ce.getConcurrentRequestTimeout(); }
public boolean isReallyLongRunningConversation() { return isLongRunningConversation() && !getCurrentConversationEntry().isRemoveAfterRedirect() && !Session.instance().isInvalid(); }
ConversationEntry currentConversationEntry = Manager.instance().getCurrentConversationEntry(); if (currentConversationEntry==null)
private String getConversationPropagationSuffix() { String suffix = ""; if (!conversationManager.getCurrentConversationEntry().isNested()) { String cId = conversationManager.getCurrentConversationId(); // tmp hack to handle the case when the logo is rendered // just after the page existed the conversation cId = getLastOrMainConversationId(cId); suffix += conversationManager.getConversationIdParameter() + '=' + cId; /** * if (conversationManager.isLongRunningConversation()) { suffix += '&' + * conversationManager.getConversationIsLongRunningParameter() + "true"; lastMainConversation = cId; } **/ } else { ConversationEntry conv = conversationManager.getCurrentConversationEntry(); String convId = conv.getConversationIdStack().get(0); convId = getLastOrMainConversationId(convId); suffix += conversationManager.getConversationIdParameter() + '=' + convId; /** * suffix += '&' + conversationManager.getConversationIsLongRunningParameter() + "true"; * lastMainConversation = convId; **/ } return suffix; }
ConversationEntry entry = manager.getCurrentConversationEntry(); if (entry==null)
/** * Temporarily promote a temporary conversation to * a long running conversation for the duration of * a browser redirect. After the redirect, the * conversation will be demoted back to a temporary * conversation. */ public void beforeRedirect() { //DONT BREAK, icefaces uses this if (!destroyBeforeRedirect) { ConversationEntry ce = getCurrentConversationEntry(); if (ce==null) { ce = createConversationEntry(); } //ups, we don't really want to destroy it on this request after all! ce.setRemoveAfterRedirect( !isLongRunningConversation() ); setLongRunningConversation(true); } }
/** * Changes the thread's current conversation context to the one that holds a reference to this * component. This is necessary if a nested conversation is making a call to a component in * a parent conversation. */ private String switchToConversationContextOfComponent(Component component) { Manager manager = Manager.instance(); if (manager.isNestedConversation()) { String currentCid = manager.getCurrentConversationId(); String residentCid = manager.getCurrentConversationEntry().findPositionInConversationStack(component); if (!currentCid.equals(residentCid)) { Contexts.getConversationContext().flush(); Manager.instance().switchConversation(residentCid, false); return currentCid; } } return null; }
public void unlockConversation() { ConversationEntry ce = getCurrentConversationEntry(); if (ce!=null) { if ( ce.isLockedByCurrentThread() ) { ce.unlock(); } } else if ( isNestedConversation() ) { ConversationEntries.instance().getConversationEntry( getParentConversationId() ).unlock(); } }
if (getCurrentConversationEntry() == null || !getCurrentConversationIdStack().contains( conversationEntry.getId()))