Package javax.portlet

Examples of javax.portlet.PortalContext


     * @param request
     *            The original PortletRequest
     * @return A wrapped version of the PortletRequest
     */
    protected VaadinPortletRequest createVaadinRequest(PortletRequest request) {
        PortalContext portalContext = request.getPortalContext();
        String portalInfo = portalContext.getPortalInfo().toLowerCase().trim();
        VaadinPortletService service = getService();

        if (portalInfo.contains("gatein")) {
            return new VaadinGateInRequest(request, service);
        }
View Full Code Here


            PortletRequestDispatcher dispatcher = sess.getPortletContext()
                    .getRequestDispatcher("/" + app);

            try {
                // portal-wide settings
                PortalContext portalCtx = request.getPortalContext();

                boolean isLifeRay = portalCtx.getPortalInfo().toLowerCase()
                        .contains("liferay");

                request.setAttribute(ApplicationServlet.REQUEST_FRAGMENT,
                        "true");
View Full Code Here

            PortletRequestDispatcher dispatcher = sess.getPortletContext()
                    .getRequestDispatcher("/" + app);

            try {
                // portal-wide settings
                PortalContext portalCtx = request.getPortalContext();

                boolean isLifeRay = portalCtx.getPortalInfo().toLowerCase()
                        .contains("liferay");

                request.setAttribute(ApplicationServlet.REQUEST_FRAGMENT,
                        "true");
View Full Code Here

      m.put("org.apache.myfaces.portlet.faces.tck.PortletResponse", extCtx.getResponse());
      m.put("org.apache.myfaces.portlet.faces.tck.PortletSession", extCtx.getSession(true));
      PortletRequest r = (PortletRequest) extCtx.getRequest();
      PortletPreferences prefs = r.getPreferences();
      m.put("org.apache.myfaces.portlet.faces.tck.PortletPreferences", prefs);     
      PortalContext pc = r.getPortalContext();
      m.put("org.apache.myfaces.portlet.faces.tck.PortalContext", pc);
       
      m.put("org.apache.myfaces.portlet.faces.tck.FacesContext", ctx);
      m.put("org.apache.myfaces.portlet.faces.tck.ExternalContext", extCtx);
     
View Full Code Here

      m.put("org.apache.myfaces.portlet.faces.tck.PortletResponse", extCtx.getResponse());
      m.put("org.apache.myfaces.portlet.faces.tck.PortletSession", extCtx.getSession(true));
      PortletRequest r = (PortletRequest) extCtx.getRequest();
      PortletPreferences prefs = r.getPreferences();
      m.put("org.apache.myfaces.portlet.faces.tck.PortletPreferences", prefs);     
      PortalContext pc = r.getPortalContext();
      m.put("org.apache.myfaces.portlet.faces.tck.PortalContext", pc);
       
      m.put("org.apache.myfaces.portlet.faces.tck.FacesContext", ctx);
      m.put("org.apache.myfaces.portlet.faces.tck.ExternalContext", extCtx);
     
View Full Code Here

            PortletRequestDispatcher dispatcher = sess.getPortletContext()
                    .getRequestDispatcher("/" + app);

            try {
                // portal-wide settings
                PortalContext portalCtx = request.getPortalContext();

                boolean isLifeRay = portalCtx.getPortalInfo().toLowerCase()
                        .contains("liferay");

                request.setAttribute(ApplicationServlet.REQUEST_FRAGMENT,
                        "true");
View Full Code Here

            PortletRequestDispatcher dispatcher = sess.getPortletContext()
                    .getRequestDispatcher("/" + app);

            try {
                // portal-wide settings
                PortalContext portalCtx = request.getPortalContext();

                boolean isLifeRay = portalCtx.getPortalInfo().toLowerCase()
                        .contains("liferay");

                request.setAttribute(ApplicationServlet.REQUEST_FRAGMENT,
                        "true");
View Full Code Here

        String gateInPortalKey = Environment.class.getName() + ".isGateInPortal.gateInPortal";
        Boolean gateInPortal = (Boolean) applicationMap.get(gateInPortalKey);
        if (gateInPortal == null)
            try {
                Object request = externalContext.getRequest();
                PortalContext portalContext;
                if (request instanceof RenderRequest)
                    portalContext = ((RenderRequest) request).getPortalContext();
                else if (request instanceof ActionRequest)
                    portalContext = ((ActionRequest) request).getPortalContext();
                else
                    portalContext = null;
                gateInPortal = portalContext != null && portalContext.getPortalInfo().contains("GateIn");
            } catch (NoClassDefFoundError e) {
                gateInPortal = false;
            }
        applicationMap.put(gateInPortalKey, gateInPortal);
        return gateInPortal;
View Full Code Here

            PortletRequestDispatcher dispatcher = sess.getPortletContext()
                    .getRequestDispatcher("/" + app);

            try {
                // portal-wide settings
                PortalContext portalCtx = request.getPortalContext();

                boolean isLifeRay = portalCtx.getPortalInfo().toLowerCase()
                        .contains("liferay");

                request.setAttribute(ApplicationServlet.REQUEST_FRAGMENT,
                        "true");
View Full Code Here

TOP

Related Classes of javax.portlet.PortalContext

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.