Examples of Appointment


Examples of appointment.objects.Appointment

  }

  public boolean addAppointment(User user, Date startTime, Date endTime,
      String title, String notes, AppointmentState status, Boolean visible) {

    Appointment appointment = new Appointment(startTime,
        endTime, title, notes, status, visible);

    return addAppointmentToUser(appointment, user);
   
    // Appointment should be added
View Full Code Here

Examples of beans.directory.simple.entities.Appointment

    @Override
    public void updateAppointments(HashSet<String> appList) {
        HashSet<String> set = loadDirectory(Appointment.class);
        for (String title : appList) {
            if (!set.contains(title)) {
                Appointment entity = new Appointment();
                entity.setTitle(title);
                entity.setDirty(false);
                manager.persist(entity);
                set.add(entity.getTitle());
            }
        }
    }
View Full Code Here

Examples of com.aspose.email.Appointment

    MailAddressCollection attendees = new MailAddressCollection();
    attendees.addMailAddress(new MailAddress("attendee_address@aspose.com", "Attendee"));
    WeeklyRecurrencePattern expected = new WeeklyRecurrencePattern(3);

    Appointment app = new Appointment("Appointment Location", "Appointment Summary", "Appointment Description",
            startDate, endDate,
            new MailAddress("organizer_address@aspose.com", "Organizer"), attendees, expected);

    //Set the Appointment as Draft
    app.setMethod(AppointmentMethodType.Publish);//.Method = AppointmentMethodType.Publish;

    message.addAlternateView(app.requestApointment());

    MapiMessage msg = MapiMessage.fromMailMessage(message);

    // Save the appointment as draft.
    msg.save("data/AsposeDraft.msg");
View Full Code Here

Examples of com.bradrydzewski.gwt.calendar.client.Appointment

    int day = (int) Math.floor(left / gridX);
    day = Math.max(0, day);
    day = Math.min(day, columns-1);

    //get the appointment, create the start & end date
    Appointment appt = ((AppointmentWidget)widget).getAppointment();
    Date start = (Date)date.clone();
    Date end = (Date)date.clone();
   
    start.setDate(start.getDate()+day);
    end.setDate(end.getDate()+day);
   
        start.setHours(0);
        start.setMinutes(0);
        start.setSeconds(0);
        start.setMinutes((intervalStart)*(60/intervalsPerHour));
        end.setHours(0);
        end.setMinutes(0);
        end.setSeconds(0);
        end.setMinutes((intervalStart + intervalSpan)*(60/intervalsPerHour));
   

    appt.setStart(start);
    appt.setEnd(end);
   
   
   
  }
 
View Full Code Here

Examples of jfxtras.scene.control.agenda.Agenda.Appointment

          if ( lDayX <= mouseEvent.getScreenX() && mouseEvent.getScreenX() < lDayX + lDayPane.getWidth()
            && lDayY <= mouseEvent.getScreenY() && mouseEvent.getScreenY() < lDayY + lDayPane.getHeight()
             )
          {
            // get the appointment that needs handling
            Appointment lAppointment = AbstractAppointmentPane.this.appointment;
            Calendar lDroppedOnCalendar = lDayPane.calendarObjectProperty.get();
 
            // is wholeday now, will become partial
            if (lAppointment.isWholeDay())
            {
              // calculate new start
              Calendar lStartCalendar = copyYMD( lDroppedOnCalendar, (Calendar)lAppointment.getStartTime().clone() );
              // and end times
              Calendar lEndCalendar = lAppointment.getEndTime() == null ? setTimeTo2359( (Calendar)lDroppedOnCalendar.clone() ) : copyYMD( lDroppedOnCalendar, (Calendar)lAppointment.getEndTime().clone() );
             
              // set the new enddate
              lAppointment.setStartTime(lStartCalendar);
              lAppointment.setEndTime(lEndCalendar);
             
              // no longer whole day
              lAppointment.setWholeDay(false);
            }
            {
              // calculate new start
              Calendar lStartCalendar = copyYMD(lDroppedOnCalendar, (Calendar)lAppointment.getStartTime().clone());

              // also add the delta Y minutes
              int lDeltaDurationInMS = (int)((mouseEvent.getScreenY() - startY) * durationInMSPerPixelProperty.get());
              lStartCalendar.add(Calendar.MILLISECOND, lDeltaDurationInMS);
              setTimeToNearestMinutes(lStartCalendar, 5);
              while (isSameDay(lStartCalendar, lDroppedOnCalendar) == false && lStartCalendar.before(lDroppedOnCalendar)) { lStartCalendar.add(Calendar.MINUTE, 1)}// the delta may have pushed it out of today
              while (isSameDay(lStartCalendar, lDroppedOnCalendar) == false && lStartCalendar.after(lDroppedOnCalendar)) { lStartCalendar.add(Calendar.MINUTE, -1)}// the delta may have pushed it out of today
             
              // duration -> enddate (take tasks -which have no enddate- into account)
              Calendar lEndCalendar = null;
              if (lAppointment.getEndTime() != null)
              {
                long lDurationInMS = lAppointment.getEndTime().getTimeInMillis() - lAppointment.getStartTime().getTimeInMillis();
                lEndCalendar = (Calendar)lStartCalendar.clone();
                lEndCalendar.add(Calendar.MILLISECOND, (int)lDurationInMS);
              }
             
              // set dates
              lAppointment.setStartTime(lStartCalendar);
              lAppointment.setEndTime(lEndCalendar);               
            }
          }
        }
       
        // find out where it was dropped
        for (DayHeaderPane lDayHeaderPane : weekHeaderPane.dayHeaderPanes)
        {
          double lDayX = NodeUtil.screenX(lDayHeaderPane);
          double lDayY = NodeUtil.screenY(lDayHeaderPane);
          if ( lDayX <= mouseEvent.getScreenX() && mouseEvent.getScreenX() < lDayX + lDayHeaderPane.getWidth()
            && lDayY <= mouseEvent.getScreenY() && mouseEvent.getScreenY() < lDayY + lDayHeaderPane.getHeight()
             )
          {
            // get the appointment that needs handling
            Appointment lAppointment = AbstractAppointmentPane.this.appointment;
           
            // calculate new start
            Calendar lStartCalendar = copyYMD(lDayHeaderPane.dayPane.calendarObjectProperty.get(), (Calendar)lAppointment.getStartTime().clone() );
           
            // set the new start date
            lAppointment.setStartTime(lStartCalendar);
           
            // enddate can be ignored
           
            // now a whole day (just in case it wasn't)
            lAppointment.setWholeDay(true);
          }
        }
       
        // redo whole week
        setupAppointments();         
View Full Code Here

Examples of org.apache.openmeetings.db.entity.calendar.Appointment

      log.debug("saveAppointMent users_id:" + users_id);

      Long user_level = userManager.getUserLevelByID(users_id);

      if (AuthLevelUtil.checkUserLevel(user_level)) {
        Appointment a = appointmentLogic.getAppointment(appointmentName, appointmentLocation, appointmentDescription,
            appointmentstart, appointmentend, isDaily, isWeekly, isMonthly, isYearly, categoryId, remind,
            mmClient, roomType, languageId, isPasswordProtected, password, roomId, users_id);
        return appointmentDao.update(a, users_id).getId();
      } else {
        log.error("saveAppointment : wrong user level");
View Full Code Here

Examples of org.apache.openmeetings.db.entity.calendar.Appointment

      Long users_id = sessiondataDao.checkSession(SID);
      Long user_level = userManager.getUserLevelByID(users_id);
      if (AuthLevelUtil.checkUserLevel(user_level)) {

        Appointment a = appointmentDao.get(appointmentId);
        if (!AuthLevelUtil.checkAdminLevel(user_level) && !a.getOwner().getUser_id().equals(users_id)) {
          throw new AxisFault("The Appointment cannot be updated by the given user");
        }
        if (!a.getStart().equals(appointmentstart) || !a.getEnd().equals(appointmentend)) {
          a.setStart(appointmentstart);
          a.setEnd(appointmentend);
          //FIXME this might change the owner!!!!!
          return appointmentDao.update(a, users_id).getId();
        }         
      }
    } catch (Exception err) {
View Full Code Here

Examples of org.apache.openmeetings.db.entity.calendar.Appointment

      if (AuthLevelUtil.checkWebServiceLevel(user_level) || AuthLevelUtil.checkAdminLevel(user_level)) {
        // fine
      } else if (AuthLevelUtil.checkUserLevel(user_level)) {
        // check if the appointment belongs to the current user
        Appointment a = appointmentDao.get(appointmentId);
        if (!a.getOwner().getUser_id().equals(users_id)) {
          throw new AxisFault("The Appointment cannot be updated by the given user");
        }
      } else {
        throw new AxisFault("Not allowed to preform that action, Authenticate the SID first");
      }

      Appointment a = appointmentDao.get(appointmentId);
      a.setTitle(appointmentName);
      a.setLocation(appointmentLocation);
      a.setDescription(appointmentDescription);
      a.setStart(appointmentstart.getTime());
      a.setEnd(appointmentend.getTime());
      a.setIsDaily(isDaily);
      a.setIsWeekly(isWeekly);
      a.setIsMonthly(isMonthly);
      a.setIsYearly(isYearly);
      a.setCategory(appointmentCategoryDao.get(categoryId));
      a.setRemind(appointmentReminderTypDao.get(remind));
      a.getRoom().setComment(appointmentDescription);
      a.getRoom().setName(appointmentName);
      a.getRoom().setRoomtype(roomTypeDao.get(roomType));
      a.setOwner(userDao.get(users_id));
      a.setPasswordProtected(isPasswordProtected);
      a.setPassword(password);
      a.setMeetingMembers(new ArrayList<MeetingMember>());
      for (String singleClient : mmClient) {
        MeetingMember mm = appointmentLogic.getMeetingMember(users_id, languageId, singleClient);
        mm.setAppointment(a);
        a.getMeetingMembers().add(mm);
      }
      return appointmentDao.update(a, users_id).getId();
    } catch (Exception err) {
      log.error("[updateAppointment]", err);
      throw new AxisFault(err.getMessage());
View Full Code Here

Examples of org.apache.openmeetings.db.entity.calendar.Appointment

  public Long deleteAppointment(String SID, Long appointmentId, Long language_id) throws AxisFault {
    try {
      Long users_id = sessiondataDao.checkSession(SID);
      Long user_level = userManager.getUserLevelByID(users_id);

      Appointment a = appointmentDao.get(appointmentId);
      if (AuthLevelUtil.checkWebServiceLevel(user_level) || AuthLevelUtil.checkAdminLevel(user_level)) {
        // fine
      } else if (AuthLevelUtil.checkUserLevel(user_level)) {
        // check if the appointment belongs to the current user
        if (!a.getOwner().getUser_id().equals(users_id)) {
          throw new AxisFault("The Appointment cannot be updated by the given user");
        }
      } else {
        throw new AxisFault("Not allowed to preform that action, Authenticate the SID first");
      }
      appointmentDao.delete(a, users_id); //FIXME check this !!!!
      return a.getId();
    } catch (Exception err) {
      log.error("[deleteAppointment]", err);
      throw new AxisFault(err.getMessage());
    }
  }
View Full Code Here

Examples of org.apache.openmeetings.db.entity.calendar.Appointment

      Long users_id = sessiondataDao.checkSession(SID);
      Long user_level = userManager.getUserLevelByID(users_id);
      if (AuthLevelUtil.checkUserLevel(user_level)) {

        Appointment appointment = new Appointment();

        Appointment appStored = appointmentDao.getAppointmentByRoomId(
            users_id, room_id);

        appointment.setStart(appStored
            .getStart());
        appointment.setEnd(appStored
            .getEnd());

        return appointment;
      }
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.