Package org.gatein.pc.api

Examples of org.gatein.pc.api.NoSuchPortletException


               return true;
            }
            else
            {
               String id = portletContext.getId();
               throw new NoSuchPortletException("Registration '" + registration.getRegistrationHandle() + "' does not know the '" + id + "' portlet", id);
            }
         }
         else
         {
            // if we don't have a registration, decide based on status
View Full Code Here


   private void checkOperationIsAllowed(PortletContext portletContext, Registration registration, String operation) throws NoSuchPortletException
   {
      if (!getPolicy().allowAccessTo(portletContext, registration, operation))
      {
         String id = portletContext.getId();
         throw new NoSuchPortletException("The PortletContext '" + id
            + "' does not exist or the application is lacking permission to access it for operation '"
            + operation + "'", id);
      }
   }
View Full Code Here

         checkOperationIsAllowed(portletContext, RegistrationLocal.getRegistration(), "exportPortlet");
         return super.exportPortlet(stateType, portletContext);
      }
      else
      {
         throw new NoSuchPortletException(portletContext.getId());
      }
   }
View Full Code Here

               stateCtx.getState());
            return new ConsumerContext(portletContext, blah, 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

      Portlet portlet = producerInfo.getPortlet(portletContext);

      if (portlet == null)
      {
         throw new NoSuchPortletException(portletContext.getId());
      }
      else
      {
         return portlet;
      }
View Full Code Here

TOP

Related Classes of org.gatein.pc.api.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.