Package org.jboss.portal.portlet

Examples of org.jboss.portal.portlet.NoSuchPortletException


      //
      String invokerId = compoundPortletId.substring(0, pos);
      FederatedPortletInvoker federated = registry.get(invokerId);
      if (federated == null)
      {
         throw new NoSuchPortletException(compoundPortletId);
      }

      //
      return federated;
   }
View Full Code Here


      }
      String portletId = portletContext.getId();
      PortletImpl portlet = (PortletImpl)portlets.get(portletId);
      if (portlet == null)
      {
         throw new NoSuchPortletException(portletId);
      }
      return portlet;
   }
View Full Code Here

   public PropertyMap getProperties(PortletContext portletContext, Set<String> keys) throws IllegalArgumentException, PortletInvokerException, UnsupportedOperationException
   {
      PortletImpl portlet = (PortletImpl)portlets.get(portletContext.getId());
      if (portlet == null)
      {
         throw new NoSuchPortletException(portletContext.getId());
      }
      ContainerPortletInfo info = (ContainerPortletInfo)portlet.getInfo();
      ContainerPreferencesInfo prefs = (ContainerPreferencesInfo)info.getPreferences();
      PropertyMap result = new SimplePropertyMap();
      for (String key : keys)
View Full Code Here

   public PropertyMap getProperties(PortletContext portletContext) throws IllegalArgumentException, PortletInvokerException, UnsupportedOperationException
   {
      PortletImpl portlet = (PortletImpl)portlets.get(portletContext.getId());
      if (portlet == null)
      {
         throw new NoSuchPortletException(portletContext.getId());
      }
      ContainerPortletInfo info = (ContainerPortletInfo)portlet.getInfo();
      ContainerPreferencesInfo prefs = (ContainerPreferencesInfo)info.getPreferences();
      PropertyMap result = new SimplePropertyMap();
      for (String key : prefs.getKeys())
View Full Code Here

            ConsumerStateContext stateCtx = persistenceManager.loadState(stateId);
            return new ConsumerContext(portletContext, PortletContext.createStatefulPortletContext(stateCtx.getPortletId(), stateCtx.getBytes()), stateId);
         }
         catch (NoSuchStateException e)
         {
            throw new NoSuchPortletException(portletId);
         }
         catch (InvalidStateIdException e)
         {
            throw new InvalidPortletIdException(portletId);
         }
View Full Code Here

            Portlet delegate = super.getPortlet(PortletContext.createPortletContext(state.getPortletId()));
            return new ProducerPortlet(portletContext, delegate);
         }
         catch (NoSuchStateException e)
         {
            throw new NoSuchPortletException(e, portletId);
         }
         catch (InvalidStateIdException e)
         {
            throw new InvalidPortletIdException(e, portletId);
         }
View Full Code Here

      // Get the portlet container and set it on invocation
      Portlet portlet = super.getPortlet(context.getPortletContext());
      if (portlet == null)
      {
         throw new NoSuchPortletException("Portlet " + context.getPortletContext() + " not found", context.getPortletId());
      }

      // Create prefs
      AbstractPropertyContext prefs = new AbstractPropertyContext(
         access,
View Full Code Here

               String cloneId = PRODUCER_CLONE_ID_PREFIX + persistenceManager.cloneState(stateId);
               return PortletContext.createPortletContext(cloneId);
            }
            catch (NoSuchStateException e)
            {
               throw new NoSuchPortletException(e, portletId);
            }
            catch (InvalidStateIdException e)
            {
               throw new InvalidPortletIdException(e, portletId);
            }
View Full Code Here

         {
            persistenceManager.updateState(stateId, properties);
         }
         catch (NoSuchStateException e)
         {
            throw new NoSuchPortletException(e, portletId);
         }
         catch (InvalidStateIdException e)
         {
            throw new InvalidPortletIdException(e, portletId);
         }
View Full Code Here

               PortletStateContext stateContext = persistenceManager.loadState(stateId);
               return new LocalContext(stateContext.getState().getPortletId(), stateContext.getState().getProperties(), stateContext.getId());
            }
            catch (NoSuchStateException e)
            {
               throw new NoSuchPortletException(e, portletId);
            }
            catch (InvalidStateIdException e)
            {
               throw new InvalidPortletIdException(e, portletId);
            }
View Full Code Here

TOP

Related Classes of org.jboss.portal.portlet.NoSuchPortletException

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.