Package com.liferay.portlet

Examples of com.liferay.portlet.ActionRequestImpl


   
    String cmd = (req.getParameter(Constants.CMD)!=null)? req.getParameter(Constants.CMD) : Constants.EDIT;
    String referer = req.getParameter("referer");
   
    //wraps request to get session object
    ActionRequestImpl reqImpl = (ActionRequestImpl)req;
    HttpServletRequest httpReq = reqImpl.getHttpServletRequest();
   
    if ((referer!=null) && (referer.length()!=0)) {
      referer = URLDecoder.decode(referer,"UTF-8");
    }
   
View Full Code Here


      String referer = (req.getParameter("referer") != null) ? URLDecoder.decode(req.getParameter("referer"), "UTF-8"): "/c";

      Logger.debug(DirectorAction.class, "DirectorAction :: referer=" + referer);

      //wraps request to get session object
      ActionRequestImpl reqImpl = (ActionRequestImpl)req;
      HttpServletRequest httpReq = reqImpl.getHttpServletRequest();
      //gets the session object for the messages
      HttpSession session = httpReq.getSession();

      Logger.debug(DirectorAction.class, "I'm inside the Director cmd = " + cmd);
      Logger.debug(DirectorAction.class, "I'm inside the Director subcmd = " + subcmd);
View Full Code Here

  public void processAction(ActionMapping mapping, ActionForm form, PortletConfig config, ActionRequest req,
      ActionResponse res) throws Exception {

        // Getting the http request
        ActionRequestImpl reqImpl = (ActionRequestImpl) req;
        HttpServletRequest httpReq = reqImpl.getHttpServletRequest();

    String cmd = req.getParameter(com.liferay.portal.util.Constants.CMD);
    UserManagerListSearchForm searchForm = (UserManagerListSearchForm) form;

    _retrieveProperties(req, res, config, form);
View Full Code Here

public class PortletURLUtil {

  public static String getActionURL(ActionRequest req, String _windowState, Map _params) {

    // wraps request to get session object
    ActionRequestImpl reqImpl = (ActionRequestImpl) req;
    HttpServletRequest httpReq = reqImpl.getHttpServletRequest();

    return com.dotmarketing.util.PortletURLUtil.getActionURL(httpReq, _windowState, _params);
  }
View Full Code Here

      ActionMapping mapping, ActionForm form, PortletConfig config,
      ActionRequest req, ActionResponse res)
    throws Exception {
 
        // Getting the http request
        ActionRequestImpl reqImpl = (ActionRequestImpl) req;
        HttpServletRequest httpReq = reqImpl.getHttpServletRequest();

    String cmd = req.getParameter(Constants.CMD);

    //get the user
    User user = null;
View Full Code Here

    String cmd = req.getParameter(Constants.CMD);
    String referer = req.getParameter("referer");
   

    //wraps request to get session object
    ActionRequestImpl reqImpl = (ActionRequestImpl) req;
    HttpServletRequest httpReq = reqImpl.getHttpServletRequest();

    if ((referer != null) && (referer.length() != 0)) {
      referer = URLDecoder.decode(referer, "UTF-8");
    }
View Full Code Here

  public void _editWebAsset(ActionRequest req, ActionResponse res,
      PortletConfig config, ActionForm form, User user) throws Exception {
    String cmd = req.getParameter(Constants.CMD);
    //wraps request to get session object
    ActionRequestImpl reqImpl = (ActionRequestImpl) req;
    HttpServletRequest httpReq = reqImpl.getHttpServletRequest();

    //calls edit method from super class that returns parent folder
    super._editWebAsset(req, res, config, form, user,
        WebKeys.TEMPLATE_EDIT);
View Full Code Here

  public void _saveWebAsset(ActionRequest req, ActionResponse res,
      PortletConfig config, ActionForm form, User user) throws Exception {
    String cmd = req.getParameter(Constants.CMD);
    //wraps request to get session object
    ActionRequestImpl reqImpl = (ActionRequestImpl) req;
    HttpServletRequest httpReq = reqImpl.getHttpServletRequest();

    //gets TemplateForm struts bean
    TemplateForm cf = (TemplateForm) form;
    Template newTemplate = new Template();
    //gets the new information for the container from the request object
View Full Code Here

  public void _copyWebAsset(ActionRequest req, ActionResponse res,
      PortletConfig config, ActionForm form, User user) throws Exception {

    //wraps request to get session object
    ActionRequestImpl reqImpl = (ActionRequestImpl) req;
    HttpServletRequest httpReq = reqImpl.getHttpServletRequest();

    Logger.debug(this, "I'm copying the Template");

    //gets the current template being edited from the request object
    Template currentTemplate = (Template) req
View Full Code Here

  req.setAttribute(ViewReportsAction.REPORT_EDITOR_OR_ADMIN, false);
  User user = _getUser(req);
  List<Role> roles = com.dotmarketing.business.APILocator.getRoleAPI().loadRolesForUser(user.getUserId());
  req.setAttribute(ViewReportsAction.REPORT_EDITOR_OR_ADMIN, true);

  ActionRequestImpl reqImpl = (ActionRequestImpl) req;
  HttpServletRequest httpReq = reqImpl.getHttpServletRequest();
  ActionResponseImpl resImpl = (ActionResponseImpl) res;
  HttpServletResponse httpRes = resImpl.getHttpServletResponse();
  reportParameters = new ArrayList<ReportParameter>();
  String cmd = req.getParameter(Constants.CMD);
  pdf = Parameter.getBooleanFromString(req.getParameter("pdf"),false);
View Full Code Here

TOP

Related Classes of com.liferay.portlet.ActionRequestImpl

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.