Package org.jboss.seam.core

Examples of org.jboss.seam.core.Manager


    // intended to be used in a footer.
    // If this method starts a conversation
    // it can't be added to the foot of applications that don't
    // expect conversations to already be in progress
    public String getCurrentConversation() {
        Manager m = Manager.instance();
        return m.getCurrentConversationId();
    }
View Full Code Here


        Manager m = Manager.instance();
        return m.getCurrentConversationId();
    }

    public String getLongRunning() {
        Manager m = Manager.instance();
        return Boolean.toString( m.isLongRunningConversation() );
    }
View Full Code Here

    * 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);
            return currentCid;
View Full Code Here

         }
      }

      private void updateConversationId()
      {
         Manager manager = Manager.instance();
         conversationId = manager.isLongRunningConversation() ? manager.getCurrentConversationId() : manager.getParentConversationId();
      }
View Full Code Here

         }
      }

      private void updateConversationId()
      {
         Manager manager = Manager.instance();
         conversationId = manager.isLongRunningConversation() ? manager.getCurrentConversationId() : manager.getParentConversationId();
      }
View Full Code Here

      log.warn("running exception handlers");
     
      //if the event context was cleaned up, fish the conversation id
      //directly out of the ServletRequest attributes, else get it from
      //the event context
      Manager manager = Contexts.isEventContextActive() ?
              (Manager) Contexts.getEventContext().get(Manager.class) :
              (Manager) request.getAttribute( Seam.getComponentName(Manager.class) );
      String conversationId = manager==null ? null : manager.getCurrentConversationId();
     
      // Ensure that the call in which the exception occurred was cleaned up - it might not be, and there is no harm in trying
      Lifecycle.endRequest();
     
      //the FacesContext is gone - create a fake one for Redirect and HttpError to call
View Full Code Here

         if (page != null)
         {
            String cid = (String) page.getMetaData(CID);
            if (cid != null)
            {
               Manager manager = Manager.instance();
               if (manager.isLongRunningConversation())
               {
                  if (!cid.equals(manager.getCurrentConversationId()))
                  {
                     manager.switchConversation(cid);
                  }
               }
               else
               {
                  ConversationPropagation cp = ConversationPropagation.instance();
                  cp.setConversationId(cid);
                  manager.restoreConversation();
               }
            }
            else
            {
               Manager manager = Manager.instance();
               if (manager.isLongRunningConversation())
               {
                  page.setMetaData(CID, Manager.instance().getCurrentConversationId());
               }
            }
         }
View Full Code Here

         }
      }

      private void updateConversationId()
      {
         Manager manager = Manager.instance();
         conversationId = manager.isLongRunningConversation() ? manager.getCurrentConversationId() : manager.getParentConversationId();
      }
View Full Code Here

         }
      }

      private void updateConversationId()
      {
         Manager manager = Manager.instance();
         conversationId = manager.isLongRunningConversation() ? manager.getCurrentConversationId() : manager.getParentConversationId();
      }
View Full Code Here

      log.debug("running exception handlers");
     
      //if the event context was cleaned up, fish the conversation id
      //directly out of the ServletRequest attributes, else get it from
      //the event context
      Manager manager = Contexts.isEventContextActive() ?
              (Manager) Contexts.getEventContext().get(Manager.class) :
              (Manager) request.getAttribute( Seam.getComponentName(Manager.class) );
      String conversationId = manager==null ? null : manager.getCurrentConversationId();
     
      // Ensure that the call in which the exception occurred was cleaned up - it might not be, and there is no harm in trying
      Lifecycle.endRequest();
     
      //the FacesContext is gone - create a fake one for Redirect and HttpError to call
View Full Code Here

TOP

Related Classes of org.jboss.seam.core.Manager

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.