Package com.dotmarketing.portlets.campaigns.model

Examples of com.dotmarketing.portlets.campaigns.model.Campaign


              }
                sub.setLastResult(500);

                HibernateUtil.saveOrUpdate(sub);

                Campaign c = (Campaign) InodeFactory.getParentOfClass(r, Campaign.class);
                if(c != null && InodeUtils.isSet(c.getInode())) {
          MailingList ml = (MailingList) InodeFactory.getChildOfClass(c,MailingList.class);
                  if(ml != null && InodeUtils.isSet(ml.getInode()))
            MailingListFactory.markAsBounceFromMailingList(ml, sub);
                }
               
View Full Code Here


  }
  private void _retrieveCampaign(ActionRequest req, ActionResponse res,ActionForm form,User user) throws Exception  {

    String inode = (req.getParameter("inode")!=null) ? req.getParameter("inode") : "";
   
    Campaign c = null;
    c = CampaignFactory.getCampaign(inode);
   
    if(!InodeUtils.isSet(c.getInode())){
      c = CampaignFactory.newInstance()
      c.setUserId(user.getUserId());
    }
        req.setAttribute(WebKeys.CAMPAIGN_EDIT, c);
   
  }
View Full Code Here

   
  }

  private void _viewCampaignReportLink(ActionRequest req, ActionResponse res,ActionForm form,User user) throws Exception  {
   
    Campaign c = (Campaign) req.getAttribute(WebKeys.CAMPAIGN_EDIT);
    Click click = (Click) InodeFactory.getInode(req.getParameter("clickId"), Click.class);
    req.setAttribute(WebKeys.RECIPIENT_LIST, RecipientFactory.getRecipientsByCampaignAndClick(c, click));
    req.setAttribute(WebKeys.RECIPIENT_LIST_TITLE, "Users who clicked:" +click.getLink());
        req.setAttribute(WebKeys.CLICK_EDIT, click);
   
View Full Code Here

        req.setAttribute(WebKeys.CLICK_EDIT, click);
   
  }

  private void _viewCampaignReportUnOpened(ActionRequest req, ActionResponse res,ActionForm form,User user) throws Exception  {
    Campaign c = (Campaign) req.getAttribute(WebKeys.CAMPAIGN_EDIT);
    req.setAttribute(WebKeys.RECIPIENT_LIST, RecipientFactory.getUnopenedRecipientsByCampaign(c));
    req.setAttribute(WebKeys.RECIPIENT_LIST_TITLE, "Unopened");
  }
View Full Code Here

    Campaign c = (Campaign) req.getAttribute(WebKeys.CAMPAIGN_EDIT);
    req.setAttribute(WebKeys.RECIPIENT_LIST, RecipientFactory.getUnopenedRecipientsByCampaign(c));
    req.setAttribute(WebKeys.RECIPIENT_LIST_TITLE, "Unopened");
  }
  private void _viewCampaignReportOpened(ActionRequest req, ActionResponse res,ActionForm form,User user) throws Exception  {
    Campaign c = (Campaign) req.getAttribute(WebKeys.CAMPAIGN_EDIT);
    req.setAttribute(WebKeys.RECIPIENT_LIST, RecipientFactory.getOpenedRecipientsByCampaign(c));
    req.setAttribute(WebKeys.RECIPIENT_LIST_TITLE, "Opened");
  }
View Full Code Here

    Campaign c = (Campaign) req.getAttribute(WebKeys.CAMPAIGN_EDIT);
    req.setAttribute(WebKeys.RECIPIENT_LIST, RecipientFactory.getOpenedRecipientsByCampaign(c));
    req.setAttribute(WebKeys.RECIPIENT_LIST_TITLE, "Opened");
  }
  private void _viewCampaignReportErrors(ActionRequest req, ActionResponse res,ActionForm form,User user) throws Exception  {
    Campaign c = (Campaign) req.getAttribute(WebKeys.CAMPAIGN_EDIT);
    req.setAttribute(WebKeys.RECIPIENT_LIST, RecipientFactory.getRecipientsWithErrorsByCampaign(c));
    req.setAttribute(WebKeys.RECIPIENT_LIST_TITLE, "Errors/Bounces");
  }
View Full Code Here

    Campaign c = (Campaign) req.getAttribute(WebKeys.CAMPAIGN_EDIT);
    req.setAttribute(WebKeys.RECIPIENT_LIST, RecipientFactory.getRecipientsWithErrorsByCampaign(c));
    req.setAttribute(WebKeys.RECIPIENT_LIST_TITLE, "Errors/Bounces");
  }
  private void _viewCampaignAllReport(ActionRequest req, ActionResponse res,ActionForm form,User user) throws Exception  {
    Campaign c = (Campaign) req.getAttribute(WebKeys.CAMPAIGN_EDIT);
    req.setAttribute(WebKeys.RECIPIENT_LIST, RecipientFactory.getAllRecipientsByCampaign(c));
    req.setAttribute(WebKeys.RECIPIENT_LIST_TITLE, "All");
  }
View Full Code Here

TOP

Related Classes of com.dotmarketing.portlets.campaigns.model.Campaign

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.