Package org.apache.openmeetings.data.calendar.daos

Examples of org.apache.openmeetings.data.calendar.daos.AppointmentDao


        , funcName));
    }
   
    @Override
    protected void respond(AjaxRequestTarget target) {
      AppointmentDao dao = Application.getBean(AppointmentDao.class);
      Appointment a = dao.getAppointmentById(
        getRequestCycle().getRequest().getRequestParameters().getParameterValue("_id").toLong());

      int dayDelta = getRequestCycle().getRequest().getRequestParameters().getParameterValue("dayDelta").toInt();
      int minuteDelta = getRequestCycle().getRequest().getRequestParameters().getParameterValue("minuteDelta").toInt();

      Calendar cal = WebSession.getCalendar();
      if (drop) {
        cal.setTime(a.getAppointmentStarttime());
        cal.add(Calendar.DATE, dayDelta);
        cal.add(Calendar.MINUTE, minuteDelta);
        a.setAppointmentStarttime(cal.getTime());
      }
      cal.setTime(a.getAppointmentEndtime());
      cal.add(Calendar.DATE, dayDelta);
      cal.add(Calendar.MINUTE, minuteDelta);
      a.setAppointmentEndtime(cal.getTime());
     
      dao.updateAppointment(a);
    }
View Full Code Here

TOP

Related Classes of org.apache.openmeetings.data.calendar.daos.AppointmentDao

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.