Package com.dotmarketing.portlets.mailinglists.model

Examples of com.dotmarketing.portlets.mailinglists.model.MailingList


   * @throws SystemException
   */
  @SuppressWarnings("unchecked")
  public static MailingList getMailingListsByInode(String inode) {
    HibernateUtil dh = new HibernateUtil(MailingList.class);
    MailingList ml =null;
    try {
      dh.setQuery(
      "from inode in class com.dotmarketing.portlets.mailinglists.model.MailingList where type='mailing_list' and inode = ? ");
      dh.setParam(inode);
      ml = (MailingList)dh.load();
View Full Code Here


    }
    return list;
  }

  public static MailingList newInstance() {
    MailingList m = new MailingList();
    m.setPublicList(false);
    return m;
  }
View Full Code Here

      try {
        dh.setQuery(
            "from inode in class com.dotmarketing.portlets.mailinglists.model.MailingList where type='mailing_list' and title = ? and user_id=? and public_list = " + com.dotmarketing.db.DbConnectionFactory.getDBTrue());
        dh.setParam(title);
        dh.setParam(WebKeys.MAILING_LIST_SYSTEM);
        MailingList ml =  (MailingList) dh.load();

        if(!InodeUtils.isSet(ml.getInode())){
          ml = new MailingList();
          ml.setUserId(WebKeys.MAILING_LIST_SYSTEM);
          ml.setTitle(title);
          ml.setPublicList(true);
        }

        HibernateUtil.saveOrUpdate(ml);
        MAILING_LIST_UNSUBSCRIBERS = ml;
      } catch (DotHibernateException e) {
View Full Code Here

      HibernateUtil.saveOrUpdate(ml);

    } else {

      ml.addChild(up, "subscriber");
      MailingList m = getMailingListsByInode(ml.getInode());
      HibernateUtil.saveOrUpdate(m);

    }

    return true;
View Full Code Here

        currentUser = com.dotmarketing.business.APILocator.getUserProxyAPI().getUserProxy(inode,APILocator.getUserAPI().getSystemUser(), false);
      } catch (Exception e) {
        Logger.error(this, e.getMessage(), e);
        throw new DotRuntimeException(e.getMessage(), e);
      }
      MailingList ml = (MailingList) InodeFactory.getInode(mailingListInode, MailingList.class);
      MailingListFactory.deleteSubscriberFromMailingList(ml , currentUser);
    }
  } 
View Full Code Here

      MailingListFactory.deleteSubscriberFromMailingList(ml , currentUser);
    }
  } 

  public void deleteAllSubscribers (String mailingListInode) {
    MailingList ml = (MailingList) InodeFactory.getInode(mailingListInode, MailingList.class);
    MailingListFactory.deleteAllSubscribersFromMailingList(ml);
 
View Full Code Here

        currentUser = com.dotmarketing.business.APILocator.getUserProxyAPI().getUserProxy(inode,APILocator.getUserAPI().getSystemUser(), false);
      } catch (Exception e) {
        Logger.error(this, e.getMessage(), e);
        throw new DotRuntimeException(e.getMessage(), e);
      }
      MailingList ml = (MailingList) InodeFactory.getInode(mailingListInode, MailingList.class);
      MailingListFactory.deleteUnsubscriberFromMailingList(ml , currentUser);
    }
  } 
View Full Code Here

      MailingListFactory.deleteUnsubscriberFromMailingList(ml , currentUser);
    }
  } 

  public void deleteAllUnsubscribers (String mailingListInode) {
    MailingList ml = (MailingList) InodeFactory.getInode(mailingListInode, MailingList.class);
    MailingListFactory.deleteAllUnsubscribersFromMailingList(ml);
 
View Full Code Here

        currentUser = com.dotmarketing.business.APILocator.getUserProxyAPI().getUserProxy(inode,APILocator.getUserAPI().getSystemUser(), false);
      } catch (Exception e) {
        Logger.error(this, e.getMessage(), e);
        throw new DotReindexStateException(e.getMessage(), e);
      }
      MailingList ml = (MailingList) InodeFactory.getInode(mailingListInode, MailingList.class);
      MailingListFactory.deleteBounceFromMailingList(ml , currentUser);
    }
  } 
View Full Code Here

      MailingListFactory.deleteBounceFromMailingList(ml , currentUser);
    }
  } 

  public void deleteAllBounces (String mailingListInode) {
    MailingList ml = (MailingList) InodeFactory.getInode(mailingListInode, MailingList.class);
    MailingListFactory.deleteAllBouncesFromMailingList(ml);
  }
View Full Code Here

TOP

Related Classes of com.dotmarketing.portlets.mailinglists.model.MailingList

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.