Package com.liferay.portlet

Examples of com.liferay.portlet.ActionRequestImpl


   * Process View Portlet requested actions
   * @see com.liferay.portal.struts.PortletAction#processAction(com.dotcms.repackage.org.apache.struts.action.ActionMapping, com.dotcms.repackage.org.apache.struts.action.ActionForm, com.dotcms.repackage.javax.portlet.PortletConfig, com.dotcms.repackage.javax.portlet.ActionRequest, com.dotcms.repackage.javax.portlet.ActionResponse)
   */
  @Override
  public void processAction(ActionMapping mapping, ActionForm form, PortletConfig config, ActionRequest req, ActionResponse res)throws DotHibernateException  {
    ActionRequestImpl reqImpl = (ActionRequestImpl) req;
    HttpServletRequest httpReq = reqImpl.getHttpServletRequest();
    String cmd = req.getParameter(Constants.CMD);
        Logger.debug(this, "Inside ViewReportAction cmd=" + cmd);


        if ((cmd != null) && cmd.equals(Constants.DELETE)) {
View Full Code Here


        true);
    editor = true;
    requiresInput = false;
    badParameters = false;
    newReport = false;
    ActionRequestImpl reqImpl = (ActionRequestImpl) req;
    HttpServletRequest httpReq = reqImpl.getHttpServletRequest();
    String cmd = req.getParameter(Constants.CMD);
    Logger.debug(this, "Inside EditReportAction cmd=" + cmd);
    ReportForm rfm = (ReportForm) form;
    String owner = rfm.getOwner();
    ArrayList<String> ds = (DbConnectionFactory.getAllDataSources());
View Full Code Here

   
    String[] publishInode = req.getParameterValues("publishInode");

    if (publishInode == null) return;
   
    ActionRequestImpl reqImpl = (ActionRequestImpl)req;

    //creates a set of related pages for this template
    Set relatedPages = new HashSet();

    for (int i=0;i<publishInode.length;i++) {

      Template template = (Template) InodeFactory.getInode(publishInode[i],Template.class);
     
      if (InodeUtils.isSet(template.getInode())) {
           
        //calls the asset factory edit
        try{
          PublishFactory.publishAsset(template,reqImpl.getHttpServletRequest());
          ActivityLogger.logInfo(this.getClass(), "Publish Template action", "User " + user.getPrimaryKey() + " publishing template" + template.getTitle(), HostUtil.hostNameUtil(req, _getUser(req)));
          SessionMessages.add(req, "message", "message.template_list.published");
        }catch(WebAssetException wax){
          Logger.error(this, wax.getMessage(),wax);
          SessionMessages.add(req, "error", "message.webasset.published.failed");
View Full Code Here

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

    WorkflowTask task = (WorkflowTask) req.getAttribute(WebKeys.WORKFLOW_TASK_EDIT);
    ActionRequestImpl reqImpl = (ActionRequestImpl) req;
    ActionResponseImpl resImpl  = (ActionResponseImpl) res;
    HttpServletRequest httpReq= reqImpl.getHttpServletRequest();
    HttpServletResponse httpRes= resImpl.getHttpServletResponse();
    String comment = req.getParameter ("comment");
    WorkflowComment taskComment = new WorkflowComment ();
    taskComment.setComment(comment);
    taskComment.setCreationDate(new Date());
View Full Code Here

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

    WorkflowTask task = (WorkflowTask) req.getAttribute(WebKeys.WORKFLOW_TASK_EDIT);
    ActionRequestImpl reqImpl = (ActionRequestImpl) req;
    ActionResponseImpl resImpl  = (ActionResponseImpl) res;
    HttpServletRequest httpReq= reqImpl.getHttpServletRequest();
    HttpServletResponse httpRes= resImpl.getHttpServletResponse();
    String fileToAttachInode = req.getParameter ("file_inode");
    String title = null;
    try{
      title = APILocator.getContentletAPI().find(fileToAttachInode, user, false).getTitle();
View Full Code Here

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

    WorkflowTask task = (WorkflowTask) req.getAttribute(WebKeys.WORKFLOW_TASK_EDIT);
    ActionRequestImpl reqImpl = (ActionRequestImpl) req;
    ActionResponseImpl resImpl  = (ActionResponseImpl) res;
    HttpServletRequest httpReq= reqImpl.getHttpServletRequest();
    HttpServletResponse httpRes= resImpl.getHttpServletResponse();
    String fileToAttachInode = req.getParameter ("file_inode");
    String title = null;
    try{
      title = APILocator.getContentletAPI().find(fileToAttachInode, user, false).getTitle();
View Full Code Here

  public void processAction(
      ActionMapping mapping, ActionForm form, PortletConfig config,
      ActionRequest req, ActionResponse res)
  throws Exception
  {
    ActionRequestImpl reqImpl = (ActionRequestImpl)req;
    HttpServletRequest httpReq = reqImpl.getHttpServletRequest();
    UserCommentsForm userCommentForm = (UserCommentsForm) form;
   
    String referer = req.getParameter("referer");
   
    String cmd = req.getParameter(Constants.CMD);   
View Full Code Here

  public void processAction(ActionMapping mapping, ActionForm form, PortletConfig config, ActionRequest req,
      ActionResponse res) throws Exception {
    List<Contentlet> contentToIndexAfterCommit  = new ArrayList<Contentlet>();
    // wraps request to get session object
    boolean validate = true;
    ActionRequestImpl reqImpl = (ActionRequestImpl) req;
    HttpServletRequest httpReq = reqImpl.getHttpServletRequest();

    HttpSession ses = httpReq.getSession();

    Logger.debug(this, "############################# Contentlet");
View Full Code Here

    }
    ((ContentletForm)form).setStructureInode(st.getInode());

    _loadContentletRelationshipsInRequest(req, contentlet, st, user);

    ActionRequestImpl reqImpl = (ActionRequestImpl) req;
    HttpServletRequest httpReq = reqImpl.getHttpServletRequest();

    //This parameter is used to determine if the structure was selected from Add/Edit Content link in subnav.jsp, from
    //the Content Search Manager
    if(httpReq.getParameter("selected") != null){
      httpReq.getSession().setAttribute("selectedStructure", st.getInode());
View Full Code Here

  private void _addToParents(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, "Inside AddContentletToParentsAction");

    Contentlet contentlet = (Contentlet) req.getAttribute(WebKeys.CONTENTLET_FORM_EDIT);
    // Contentlet currentContentlet = (Contentlet)
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.