Package org.gatein.pc.federation

Examples of org.gatein.pc.federation.FederatedPortletInvoker


   }

   private FederatedPortletInvoker getOrResolveFederatedInvoker(String federatedId, String compoundPortletId) throws NoSuchPortletException
   {
      // check cache first and then see if we can resolve the invoker if we didn't hit the cache
      FederatedPortletInvoker federatedPortletInvoker = invokerCache.get(federatedId);
      if (federatedPortletInvoker == null)
      {
         federatedPortletInvoker = portletResolver.resolvePortletInvokerFor(federatedId, this, compoundPortletId);
         if (federatedPortletInvoker != null)
         {
View Full Code Here


            {
               continue;
            }
         }

         final FederatedPortletInvoker federated = getFederatedInvoker(invokerId);

         // skip the invoker if it isn't active
         if(!federated.isActive())
         {
            log.info("PortletInvoker with id: " + invokerId + " was skipped because it isn't active.");
            continue;
         }

         try
         {
            Set<Portlet> offeredPortlets = federated.getPortlets();
            portlets.addAll(offeredPortlets);
         }
         catch (InvokerUnavailableException e)
         {
            Throwable cause = e.getCause();
View Full Code Here

            federatingPortletInvoker.registerInvoker(id, consumer);
            sessionEventBroadcaster.registerListener(getListenerIdFrom(id), consumer);
         }
         else
         {
            FederatedPortletInvoker fedInvoker = federatingPortletInvoker.getFederatedInvoker(id);
            if (fedInvoker != null)
            {
               PortletInvoker invoker = fedInvoker.getPortletInvoker();
               if (invoker instanceof WSRPConsumer)
               {
                  consumer = (WSRPConsumer)invoker;
                  consumer.deactivate();
                  federatingPortletInvoker.unregisterInvoker(id);
View Full Code Here

         throw new IllegalArgumentException("Bad portlet id format " + compoundPortletId);
      }

      //
      String invokerId = compoundPortletId.substring(0, pos);
      FederatedPortletInvoker federated = registry.get(invokerId);
      if (federated == null)
      {
         return nullHandler.resolvePortletInvokerFor(compoundPortletId, invokerId, this);
      }
View Full Code Here

      {
         throw new IllegalArgumentException("Trying to use a ConsumerRegistry already linked to a different FederatingPortletInvoker ("
            + registryInvoker + ") than the specified one (" + callingInvoker + ")");
      }

      FederatedPortletInvoker federated;

      WSRPConsumer consumer = consumerRegistry.getConsumer(invokerId);

      // if there's no consumer with that invoker id, then there's nothing much we can do
      if (consumer == null)
View Full Code Here

      {
         remove(getConsumer(oldId));
         WSRPConsumer consumer = createConsumerFrom(producerInfo);

         // update the federating portlet invoker:
         FederatedPortletInvoker invoker = federatingPortletInvoker.getFederatedInvoker(oldId);
         if (invoker != null)
         {
            federatingPortletInvoker.unregisterInvoker(oldId);
            federatingPortletInvoker.registerInvoker(producerInfo.getId(), consumer);
         }
View Full Code Here

            federatingPortletInvoker.registerInvoker(id, consumer);
            sessionEventBroadcaster.registerListener(getListenerIdFrom(id), consumer);
         }
         else
         {
            FederatedPortletInvoker fedInvoker = federatingPortletInvoker.getFederatedInvoker(id);
            if (fedInvoker != null)
            {
               PortletInvoker invoker = fedInvoker.getPortletInvoker();
               if (invoker instanceof WSRPConsumer)
               {
                  consumer = (WSRPConsumer)invoker;
                  consumer.deactivate();
                  federatingPortletInvoker.unregisterInvoker(id);
View Full Code Here

   }

   private FederatedPortletInvoker getOrResolveFederatedInvoker(String federatedId, String compoundPortletId) throws NoSuchPortletException
   {
      // check cache first and then see if we can resolve the invoker if we didn't hit the cache
      FederatedPortletInvoker federatedPortletInvoker = invokerCache.get(federatedId);
      if (federatedPortletInvoker == null)
      {
         federatedPortletInvoker = portletResolver.resolvePortletInvokerFor(federatedId, this, compoundPortletId);
         if (federatedPortletInvoker != null)
         {
View Full Code Here

            {
               continue;
            }
         }

         final FederatedPortletInvoker federated = getFederatedInvoker(invokerId);

         // skip the invoker if it isn't active
         if(!federated.isActive())
         {
            log.info("PortletInvoker with id: " + invokerId + " was skipped because it isn't active.");
            continue;
         }

         try
         {
            Set<Portlet> offeredPortlets = federated.getPortlets();
            portlets.addAll(offeredPortlets);
         }
         catch (InvokerUnavailableException e)
         {
            Throwable cause = e.getCause();
View Full Code Here

TOP

Related Classes of org.gatein.pc.federation.FederatedPortletInvoker

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.