public String getParameterName() { return Manager.instance().getConversationIdParameter(); }
protected String getConversationIdInURL() { final FacesContext facesContext = FacesContext.getCurrentInstance(); if (facesContext == null) { return null; } Map<String, Object> rMap = facesContext.getExternalContext().getRequestMap(); String conversationIdInUrl; if (rMap.containsKey(conversationManager.getConversationIdParameter())) { conversationIdInUrl = (String) rMap.get(conversationManager.getConversationIdParameter()); } else { Map<String, String> pMap = facesContext.getExternalContext().getRequestParameterMap(); if (pMap.containsKey(conversationManager.getConversationIdParameter())) { conversationIdInUrl = pMap.get(conversationManager.getConversationIdParameter()); } else { return null; } } return conversationIdInUrl; }
/** * Add the conversation id to a URL, if necessary * * @deprecated use encodeConversationId(String url, String viewId) */ public String encodeConversationId(String url) { //DONT BREAK, icefaces uses this return encodeConversationIdParameter( url, getConversationIdParameter(), getCurrentConversationId() ); }
String conversationId = "?".concat(conversationManager.getConversationIdParameter()).concat("=") .concat(conversationManager.getCurrentConversationId()); g3 = StringUtils.remove(g3, "\"").concat(conversationId).concat("\"");
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; }
private void restoreSyntheticConversationId(Map parameters) { //Next, try to get the conversation id from the globally defined request parameters Manager manager = Manager.instance(); //TODO: move the conversationIdParameter to this class! if ( isMissing(conversationId) ) { conversationId = getRequestParameterValue( parameters, manager.getConversationIdParameter() ); } if ( isMissing(parentConversationId) ) { parentConversationId = getRequestParameterValue( parameters, manager.getParentConversationIdParameter() ); } }
setParameter(Manager.instance().getConversationIdParameter(), conversationId);
@Override public String getName() { Conversation conversation = Conversation.instance(); if (getViewId()!=null && ( !conversation.isNested() || conversation.isLongRunning() ) ) { return Pages.instance().getPage(getViewId()) .getConversationIdParameter() .getParameterName(); } else { return Manager.instance().getConversationIdParameter(); } }
Manager.instance().getConversationIdParameter(), Manager.instance().getCurrentConversationId() );
Conversation conversation = Conversation.instance(); Manager manager = Manager.instance(); String conversationIdParameter = manager.getConversationIdParameter();