Package com.liferay.portlet

Examples of com.liferay.portlet.PortletURLImpl


          host = hostWebAPI.findDefaultHost(systemUser, respectFrontendRoles);
        }
        req.getSession().setAttribute(com.dotmarketing.util.WebKeys.CURRENT_HOST, host);
     
        //List<Layout> layouts = APILocator.getLayoutAPI().loadLayoutsForUser(loginAsUser);
        PortletURLImpl portletURLImp = new PortletURLImpl(req, layouts.get(0).getPortletIds().get(0), layouts.get(0).getId(), false);
        res.sendRedirect(SecurityUtils.stripReferer(req, portletURLImp.toString()));
        return null;
       
      }
      catch(Exception e){
        Logger.error(this.getClass(), "LoginAs redirect failed logging in as :" +loginAsUser);
View Full Code Here


      ActionForward actionForward = mapping.findForward(forward);

      if ((actionForward != null) && (actionForward.getRedirect())) {
        if (forward.startsWith("/")) {
          PortletURLImpl forwardURL =
            (PortletURLImpl)resImpl.createRenderURL();

          forwardURL.setParameter("struts_action", forward);

          StrutsURLEncoder.setParameters(forwardURL, queryString);

          forward = forwardURL.toString();
        }
        if( forward.contains("?")){
          forward = forward + "&r=" + System.currentTimeMillis();
        }
        else{
View Full Code Here

TOP

Related Classes of com.liferay.portlet.PortletURLImpl

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.