Package com.dianping.cat.home.dal.alarm

Examples of com.dianping.cat.home.dal.alarm.ScheduledSubscription


  public boolean scheduledReportSub(Payload payload, String userName) {
    int subState = payload.getUserSubState();
    int scheduledReportId = payload.getScheduledReportId();

    ScheduledSubscription scheduledReportSubscription = m_scheduledReportSubscriptionDao.createLocal();

    scheduledReportSubscription.setKeyScheduledReportId(scheduledReportId);
    scheduledReportSubscription.setKeyUserName(userName);
    scheduledReportSubscription.setUserName(userName);
    scheduledReportSubscription.setScheduledReportId(scheduledReportId);

    try {
      if (subState == 1) {
        m_scheduledReportSubscriptionDao.deleteByPK(scheduledReportSubscription);
      } else {
View Full Code Here


            .findByUserName(userName, ScheduledSubscriptionEntity.READSET_FULL);
      int size = scheduledReportSubscriptions.size();
      int ruleIds[] = new int[size];

      for (int i = 0; i < size; i++) {
        ScheduledSubscription scheduledReportSubscription = scheduledReportSubscriptions.get(i);
        ruleIds[i] = scheduledReportSubscription.getScheduledReportId();
      }
      List<MailRecord> mails = m_mailRecordDao.findReportRecordByRuleId(ruleIds,
            MailRecordEntity.READSET_ALL_EXCLUDE_CONTENT);
      model.setMailRecords(mails);
    } catch (DalNotFoundException e) {
View Full Code Here

TOP

Related Classes of com.dianping.cat.home.dal.alarm.ScheduledSubscription

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.