Package com.liferay.portlet

Examples of com.liferay.portlet.ActionRequestImpl


  private void _deleteQuestion(ActionRequest req, ActionResponse res)
    throws Exception {

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

    String questionId = ParamUtil.getString(req, "question_id");

    PollsQuestionManagerUtil.deleteQuestion(questionId);
View Full Code Here


  private void _updateQuestion(
      PortletConfig config, ActionRequest req, ActionResponse res)
    throws Exception {

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

    String questionId = req.getParameter("question_id");

    String title = ParamUtil.getString(req, "question_title");
    String description = ParamUtil.getString(req, "question_desc");
View Full Code Here

  private void _uploadPortraitAction(ActionRequest req, ActionResponse res)
    throws Exception {

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

    UploadPortletRequest uploadReq =
      PortalUtil.getUploadPortletRequest(req);

    byte[] bytes = FileUtil.getBytes(uploadReq.getFile("file_name"));
View Full Code Here

    // Authenticated users can never create a new account

    if (req.getRemoteUser() != null) {

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

      // Send redirect

      String ctxPath =
        (String)req.getPortletSession().getAttribute(
View Full Code Here

  private void _deleteAddress(ActionRequest req, ActionResponse res)
    throws Exception {

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

    String addressId = ParamUtil.getString(req, "address_id");

    AddressManagerUtil.deleteAddress(addressId);
View Full Code Here

  private void _updateAddress(ActionRequest req, ActionResponse res)
    throws Exception {

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

    String addressId = ParamUtil.getString(req, "address_id");

    String description = ParamUtil.getString(req, "address_desc");
View Full Code Here

  private void _updateAddressPriority(ActionRequest req, ActionResponse res)
    throws Exception {

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

    String addressId = ParamUtil.getString(req, "address_id");
    boolean priority = ParamUtil.getBoolean(req, "address_priority");

    User user = PortalUtil.getSelectedUser(req);
View Full Code Here

  private void _killSession(ActionRequest req, ActionResponse res)
    throws Exception {

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

    String sessionId = ParamUtil.getString(req, "session_id");

    HttpSession userSession = PortalSessionContext.get(sessionId);
View Full Code Here

  private void _updatePortlet(ActionRequest req, ActionResponse res)
    throws Exception {

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

    String portletId = ParamUtil.getString(req, "portlet_id");

    String groupId = ParamUtil.getString(req, "group_id");
    String defaultPreferences = ParamUtil.getString(
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.