Examples of alarm()


Examples of com.saasovation.collaboration.domain.model.calendar.CalendarEntry.alarm()

        assertEquals("A changed description.", changedCalendarEntry.description());
        assertEquals("A changed location.", changedCalendarEntry.location());
        assertEquals(nextWeek, changedCalendarEntry.timeSpan().begins());
        assertEquals(nextWeekAndOneHour, changedCalendarEntry.timeSpan().ends());
        assertTrue(changedCalendarEntry.repetition().repeats().isDoesNotRepeat());
        assertTrue(changedCalendarEntry.alarm().alarmUnitsType().isHours());
        assertEquals(8, changedCalendarEntry.alarm().alarmUnits());
    }

    public void testUninviteCalendarEntryParticipant() throws Exception {
View Full Code Here

Examples of com.saasovation.collaboration.domain.model.calendar.CalendarEntry.alarm()

        assertEquals("A changed location.", changedCalendarEntry.location());
        assertEquals(nextWeek, changedCalendarEntry.timeSpan().begins());
        assertEquals(nextWeekAndOneHour, changedCalendarEntry.timeSpan().ends());
        assertTrue(changedCalendarEntry.repetition().repeats().isDoesNotRepeat());
        assertTrue(changedCalendarEntry.alarm().alarmUnitsType().isHours());
        assertEquals(8, changedCalendarEntry.alarm().alarmUnits());
    }

    public void testUninviteCalendarEntryParticipant() throws Exception {

        CalendarEntry calendarEntry = this.calendarEntryAggregate();
View Full Code Here

Examples of com.taobao.zeus.broadcast.alarm.MailAlarm.alarm()

        new Thread() {
          @Override
          public void run() {
            try {
              Thread.sleep(6000);
              mailAlarm.alarm(his.getId(), title.toString(),
                  content.toString().replace("\n","<br/>").replace("http://zeus.taobao.com:9999", "<a href='http://zeus.taobao.com:9999'>http://zeus.taobao.com:9999</a>"));
            } catch (Exception e) {
              log.error("send run timeover mail alarm failed", e);
            }
          }
View Full Code Here

Examples of com.taobao.zeus.broadcast.alarm.SMSAlarm.alarm()

          Calendar now = Calendar.getInstance();
          int hour = now.get(Calendar.HOUR_OF_DAY);
          int day = now.get(Calendar.DAY_OF_WEEK);
          if (day == Calendar.SATURDAY || day == Calendar.SUNDAY
              || hour < 9 || hour > 18) {
            smsAlarm.alarm(his.getId(), title.toString(),
                content.toString(), null);
          }
        }
      }
      return true;
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.