Package com.dotmarketing.portlets.campaigns.model

Examples of com.dotmarketing.portlets.campaigns.model.Campaign.addChild()


          //update queue clickthrough links
          click = ClickFactory.getClickByLinkAndCampaign(redir, c);
          click.setClickCount((click.getClickCount() + 1));
          click.setLink(redir);
          HibernateUtil.saveOrUpdate(click);
          c.addChild(click);
          HibernateUtil.saveOrUpdate(c);
        } catch (DotHibernateException e1) {
          Logger.error(this, e1.getMessage(), e1);
        }
        if(Config.getBooleanProperty("ENABLE_CLICKSTREAM_TRACKING", false)){
View Full Code Here


            {
              recipient.setLastMessage("On "+MailingListFactory.getUnsubscribersMailingList().getTitle());
              recipient.setLastResult(500);
              userProxy.setLastMessage("On "+MailingListFactory.getUnsubscribersMailingList().getTitle());
              userProxy.setLastResult(500);
              c.addChild(recipient);
              continue;
            }
 
            //if this recipient already got the email
            List<UserComment> l = UserCommentsFactory.getUserCommentsByComm(userProxy.getInode(), comm.getInode());
View Full Code Here

            setCampaign(c);
            setSubscriber(member);
            setAlternateTextMessage(alternateTextMessage);
            setMessage(message);
            setHtml(true);
            c.addChild(recipient);
           
            if (!comm.getCommunicationType().equalsIgnoreCase("alert")) {
              if(!sendEmail()) {
                //If got errors sending the email then we mark it as a bounce
                //from the mailing list
View Full Code Here

      c.deleteChild(ml);

      //try to get the campaign's new mailing list
      ml = (MailingList) InodeFactory.getInode(String.valueOf(cfform.getMailingList()), MailingList.class);
      if (InodeUtils.isSet(ml.getInode())) {
        c.addChild(ml);
      }

      // wipe the old communication that was the child
      Communication comm = (Communication) InodeFactory.getChildOfClass(c, Communication.class);
      c.deleteChild(comm);
View Full Code Here

      c.deleteChild(comm);

      //try to get the campaign's new communication
      comm = (Communication) InodeFactory.getInode(String.valueOf(cfform.getCommunicationInode()), Communication.class);
      if (InodeUtils.isSet(comm.getInode())) {
        c.addChild(comm);
      }

      // wipe the old user filter that was the child
      UserFilter userfilter = (UserFilter) InodeFactory.getChildOfClass(c, UserFilter.class);
      c.deleteChild(userfilter);
View Full Code Here

      c.deleteChild(userfilter);

      //try to get the campaign's new communication
      userfilter = (UserFilter) InodeFactory.getInode(String.valueOf(cfform.getUserFilterInode()), UserFilter.class);
      if (InodeUtils.isSet(userfilter.getInode())) {
        c.addChild(userfilter);
      }

      c.setUserId(user.getUserId());

      if (c.getIsRecurrent()) {
View Full Code Here

    //no sure if this is needed
    HibernateUtil.saveOrUpdate(copy);

    if(InodeUtils.isSet(ml.getInode())){
      copy.addChild(ml);
    }
    if(InodeUtils.isSet(page.getInode())){
      copy.addChild(page);
    }
    if (InodeUtils.isSet(comm.getInode())) {
View Full Code Here

    if(InodeUtils.isSet(ml.getInode())){
      copy.addChild(ml);
    }
    if(InodeUtils.isSet(page.getInode())){
      copy.addChild(page);
    }
    if (InodeUtils.isSet(comm.getInode())) {
      copy.addChild(comm);
    }
    if (InodeUtils.isSet(userfilter.getInode())) {
View Full Code Here

    }
    if(InodeUtils.isSet(page.getInode())){
      copy.addChild(page);
    }
    if (InodeUtils.isSet(comm.getInode())) {
      copy.addChild(comm);
    }
    if (InodeUtils.isSet(userfilter.getInode())) {
      copy.addChild(userfilter);
    }
    HibernateUtil.saveOrUpdate(copy);
View Full Code Here

    }
    if (InodeUtils.isSet(comm.getInode())) {
      copy.addChild(comm);
    }
    if (InodeUtils.isSet(userfilter.getInode())) {
      copy.addChild(userfilter);
    }
    HibernateUtil.saveOrUpdate(copy);

    //add message
    if (c.isSendEmail())
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.