Package javax.context

Examples of javax.context.Conversation


    public Conversation createNewConversation(String viewId)
    {
        Asserts.assertNotNull(viewId, "viewId parameter can not be null");

        Conversation conversation = getCurrentConversation();
        ((ConversationImpl) conversation).setViewId(viewId);

        // Create conversation context
        // ContextFactory.initConversationContext();
View Full Code Here


    public Conversation getCurrentConversation()
    {

        Bean<Conversation> bean = ManagerImpl.getManager().resolveByType(Conversation.class, new CurrentLiteral()).iterator().next();
        Conversation conversation = ManagerImpl.getManager().getInstance(bean);

        return conversation;
    }
View Full Code Here

    @Override
    protected Conversation createInstance(CreationalContext<Conversation> creationalContext)
    {
        String conversationId = JSFUtil.getConversationId();
        Conversation conversation = null;

        if (conversationId != null)
        {
            conversation = ConversationManager.getInstance().getConversation(conversationId);
        }
View Full Code Here

        }
    }

    public Conversation createNewConversation()
    {
        Conversation conversation = getCurrentConversation();

        return conversation;

    }
View Full Code Here

    public Conversation getCurrentConversation()
    {

        Bean<Conversation> bean = ManagerImpl.getManager().resolveByType(Conversation.class, new CurrentLiteral()).iterator().next();
        Conversation conversation = ManagerImpl.getManager().getInstance(bean);

        return conversation;
    }
View Full Code Here

             */
            @Override
            public void sendRedirect(String location) throws IOException
            {
                Bean<Conversation> bean = ManagerImpl.getManager().resolveByType(Conversation.class, new CurrentLiteral()).iterator().next();
                Conversation conversation = ManagerImpl.getManager().getInstance(bean);

                String path = location;

                if (conversation != null)
                {

                    if (conversation.isLongRunning())
                    {
                        // Find JSFish view od of the redirection
                        path = JSFUtil.getRedirectViewId(location);
                        path = JSFUtil.getViewHandler().getActionURL(JSFUtil.getCurrentFacesContext(), path);
                        path = JSFUtil.getExternalContext().encodeActionURL(path + "?cid=" + conversation.getId());
                    }
                }

                super.sendRedirect(path);

View Full Code Here

TOP

Related Classes of javax.context.Conversation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.