Examples of Portlet


Examples of org.gatein.pc.api.Portlet

   public Portlet getPortlet(PortletContext portletContext) throws IllegalArgumentException, PortletInvokerException
   {
      ParameterValidation.throwIllegalArgExceptionIfNull(portletContext, "PortletContext");

      Portlet portlet = producerInfo.getPortlet(portletContext);

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

Examples of org.gatein.pc.api.Portlet

      // check if we need to refresh
      boolean justRefreshed = refresh(false);

      // First try caches if caches are still valid or we just refreshed
      Portlet portlet = getPortletFromCaches(portletHandle, justRefreshed);

      if (portlet != null) // we had a match in cache, return it
      {
         log.debug("Portlet was cached");
         return portlet;
View Full Code Here

Examples of org.gatein.pc.api.Portlet

      }
   }

   private Portlet getPortletFromCaches(String portletHandle, boolean justRefreshed)
   {
      Portlet portlet = null;

      if (justRefreshed || (useCache() && !isCacheExpired()))
      {
         log.debug("Trying cached POPs");
View Full Code Here

Examples of org.gatein.pc.api.Portlet

      {
         for (String involvedPortletId : tckPageNavigationalState.getInvolvedPortlets())
         {
            try
            {
               Portlet involvedPortlet = portletControllerContext.getPortlet(involvedPortletId);
               involvedPortlets.add(involvedPortlet);
            }
            catch (NoSuchPortletException e)
            {
               // It happen when a portlet becomes unavailable and
View Full Code Here

Examples of org.gatein.pc.api.Portlet

   {
      ControllerPortletInvocationContext context = (ControllerPortletInvocationContext)actionInvocation.getContext();

      //
      String windowId = context.getWindowId();
      Portlet portlet = getPortlet(windowId);

      //
      actionInvocation.setClientContext(new AbstractClientContext(req));
      actionInvocation.setServerContext(new AbstractServerContext(req, resp));
      actionInvocation.setInstanceContext(new AbstractInstanceContext(portlet.getContext().getId()));
      actionInvocation.setUserContext(new AbstractUserContext(req));
      actionInvocation.setWindowContext(new AbstractWindowContext(windowId));
      actionInvocation.setPortalContext(PORTAL_CONTEXT);
      actionInvocation.setSecurityContext(new AbstractSecurityContext(req));
      actionInvocation.setRequestContext(new AbstractRequestContext(req));
      actionInvocation.setTarget(portlet.getContext());

      //
      return invoke((PortletInvocation)actionInvocation);
   }
View Full Code Here

Examples of org.jboss.portal.portlet.Portlet

   public Set<Portlet> getPortlets() throws PortletInvokerException
   {
      Set<Portlet> federatedPortlets = new LinkedHashSet<Portlet>();
      for (Portlet portlet : portletInvoker.getPortlets())
      {
         Portlet federatedPortlet = new FederatedPortlet(this, reference(portlet.getContext()), portlet);
         federatedPortlets.add(federatedPortlet);
      }
      return federatedPortlets;
   }
View Full Code Here

Examples of org.jboss.portal.portlet.Portlet

   {
      // Get portlet context
      PortletContext portletContext = dereference(compoundPortletContext);

      // Retrieve wrapped portlet
      Portlet portlet = portletInvoker.getPortlet(portletContext);

      // Return correct result
      return new FederatedPortlet(this, compoundPortletContext, portlet);
   }
View Full Code Here

Examples of org.olat.core.gui.control.generic.portal.Portlet

  /**
   * @see org.olat.gui.control.generic.portal.AbstractPortlet#createInstance(org.olat.core.gui.control.WindowControl, org.olat.core.gui.UserRequest, java.util.Map)
   */
  public Portlet createInstance(WindowControl wControl, UserRequest ureq, Map configuration) {
    Portlet p = new DidYouKnowPortlet();
    p.setConfiguration(configuration);
    p.setTranslator(new PackageTranslator(Util.getPackageName(DidYouKnowPortlet.class), ureq.getLocale()));
    return p;
  }
View Full Code Here

Examples of org.olat.core.gui.control.generic.portal.Portlet

   * @see org.olat.gui.control.generic.portal.AbstractPortlet#createInstance(org.olat.core.gui.control.WindowControl,
   *      org.olat.core.gui.UserRequest, java.util.Map)
   */
  public Portlet createInstance(WindowControl wControl, UserRequest ureq, Map configuration) {
    Translator translator = Util.createPackageTranslator(RepositoryPortlet.class, ureq.getLocale());
    Portlet p = new RepositoryPortlet();
    p.setName(this.getName());
    p.setConfiguration(configuration);
    p.setTranslator(translator);
    return p;
  }
View Full Code Here

Examples of org.olat.core.gui.control.generic.portal.Portlet

   * @see org.olat.gui.control.generic.portal.AbstractPortlet#createInstance(org.olat.core.gui.control.WindowControl,
   *      org.olat.core.gui.UserRequest, java.util.Map)
   */
  public Portlet createInstance(WindowControl wControl, UserRequest ureq, Map configuration) {
    Translator translator = new PackageTranslator(PACKAGE_UI, ureq.getLocale());
    Portlet p = new GroupsPortlet();
    p.setName(this.getName());
    p.setConfiguration(configuration);
    p.setTranslator(translator);
    return p;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.