Examples of Appointment


Examples of org.blync.client.calendar.appointments.Appointment

        String data = DataAccess.getInstance().loadText(dataType, calendarItemId);

        int alarmMinutes;
        String itemTitle;
        if (dataType == DataAccess.APPOINTMENT) {
            Appointment appointment = new Appointment(data);
            alarmMinutes = appointment.getAlarmMinutes();
            itemTitle = appointment.getTitle();
        }
        else {
            Task task = new Task(data);
            alarmMinutes = task.getAlarmMinutes();
            itemTitle = task.getTitle();
View Full Code Here

Examples of org.openmeetings.app.persistence.beans.calendar.Appointment

  {
    AppointmentDaoImpl appDaoImpl = AppointmentDaoImpl.getInstance();
    assertNotNull("Cann't access to appointment dao implimentation", appDaoImpl);
   
    // add new appointment
    Appointment ap = new Appointment();
   
    ap.setAppointmentName("appointmentName");
    ap.setAppointmentLocation("appointmentLocation");
   
    Date appointmentstart = new Date();
    Date appointmentend = new Date();
    appointmentend.setTime(appointmentstart.getTime() + 3600);
   
    ap.setAppointmentStarttime(appointmentstart);
     ap.setAppointmentEndtime(appointmentend);
    ap.setAppointmentDescription("appointmentDescription");
    ap.setStarttime(new Date());
    ap.setDeleted("false");
    ap.setIsDaily(false);
    ap.setIsWeekly(false);
    ap.setIsMonthly(false);
    ap.setIsYearly(false);
    ap.setIsPasswordProtected(false);

    ap.setUserId(UsersDaoImpl.getInstance().getUser(1L));
    ap.setIsConnectedEvent(false);
    Long id = appDaoImpl.addAppointmentObj(ap);
    assertNotNull("Cann't add appointment", id);
   
    // get appointment
    ap = appDaoImpl.getAppointmentById(id);
View Full Code Here

Examples of org.openmeetings.app.persistence.beans.calendar.Appointment

      Long user_level = Usermanagement.getInstance().getUserLevelByID(
          users_id);
     
      if (AuthLevelmanagement.getInstance().checkWebServiceLevel(user_level)){
       
        Appointment appointment = AppointmentDaoImpl.getInstance().getAppointmentByRoom(room_id);
       
        if (appointment == null) {
          return -1L;
        }
        //Not In Remote List available - extern user
        Long memberId = MeetingMemberLogic.getInstance().addMeetingMember(firstname, lastname,
                "0", "0", appointment.getAppointmentId(), null,  email, baseUrl,
                null, new Boolean(false), language_id, false, "", "", "");
       
        return memberId;
       
      } else {
View Full Code Here

Examples of org.openmeetings.app.persistence.beans.calendar.Appointment

      Long user_level = Usermanagement.getInstance().getUserLevelByID(
          users_id);
     
      if (AuthLevelmanagement.getInstance().checkWebServiceLevel(user_level)){
       
        Appointment appointment = AppointmentDaoImpl.getInstance().getAppointmentByRoom(room_id);
       
        if (appointment == null) {
          return -1L;
        }
       
        //Not In Remote List available - extern user
        Long memberId = MeetingMemberLogic.getInstance().addMeetingMember(firstname, lastname,
                "0", "0", appointment.getAppointmentId(), null,  email, baseUrl,
                null, new Boolean(false), language_id, false, "", jNameTimeZone, invitorName);
       
        return memberId;
       
      } else {
View Full Code Here

Examples of org.openmeetings.app.persistence.beans.calendar.Appointment

    Long userId = 1L;
    Users user = Usermanagement.getInstance().getUserById(userId);
    assertNotNull("Cann't get default user", user);
   
    // add new appointment
    Appointment ap = new Appointment();
   
    ap.setAppointmentName("appointmentName");
    ap.setAppointmentLocation("appointmentLocation");
   
    Date appointmentstart = new Date();
    Date appointmentend = new Date();
    appointmentend.setTime(appointmentstart.getTime() + 3600);
   
    ap.setAppointmentStarttime(appointmentstart);
     ap.setAppointmentEndtime(appointmentend);
    ap.setAppointmentDescription("appointmentDescription");
    ap.setStarttime(new Date());
    ap.setDeleted("false");
    ap.setIsDaily(false);
    ap.setIsWeekly(false);
    ap.setIsMonthly(false);
    ap.setIsYearly(false);
    ap.setIsPasswordProtected(false);

    ap.setUserId(UsersDaoImpl.getInstance().getUser(userId));
    ap.setIsConnectedEvent(false);
    Long appointmentId = AppointmentDaoImpl.getInstance().addAppointmentObj(ap);
    assertNotNull("Cann't add appointment", appointmentId);
 
    String jNameMemberTimeZone = "";
    if (user.getOmTimeZone() != null) {
View Full Code Here

Examples of org.openmeetings.app.persistence.beans.calendar.Appointment

  {
    AppointmentDaoImpl appDaoImpl = AppointmentDaoImpl.getInstance();
    assertNotNull("Cann't access to appointment dao implimentation", appDaoImpl);
   
    // add new appointment
    Appointment ap = new Appointment();
   
    ap.setAppointmentName("appointmentName");
    ap.setAppointmentLocation("appointmentLocation");
   
    Date appointmentstart = new Date();
    Date appointmentend = new Date();
    appointmentend.setTime(appointmentstart.getTime() + 3600);
   
    ap.setAppointmentStarttime(appointmentstart);
     ap.setAppointmentEndtime(appointmentend);
    ap.setAppointmentDescription("appointmentDescription");
    ap.setStarttime(new Date());
    ap.setDeleted("false");
    ap.setIsDaily(false);
    ap.setIsWeekly(false);
    ap.setIsMonthly(false);
    ap.setIsYearly(false);
    ap.setIsPasswordProtected(false);
 
    ap.setUserId(UsersDaoImpl.getInstance().getUser(1L));
    ap.setIsConnectedEvent(false);
    Long id = appDaoImpl.addAppointmentObj(ap);
    assertNotNull("Cann't add appointment", id);
    return ap;
  }
View Full Code Here

Examples of org.openmeetings.app.persistence.beans.calendar.Appointment

    Element root = document.addElement("root");
   
    Element appointments = root.addElement("appointments");
   
    for (Iterator<Appointment> it = aList.iterator();it.hasNext();) {
      Appointment a = it.next();
     
      Element appointment = appointments.addElement("appointment");
     
      appointment.addElement("appointmentId").addCDATA(""+a.getAppointmentId());
      appointment.addElement("appointmentName").addCDATA(""+a.getAppointmentName());
      appointment.addElement("appointmentLocation").addCDATA(""+a.getAppointmentLocation());
      appointment.addElement("appointmentDescription").addCDATA(""+a.getAppointmentDescription());
      appointment.addElement("appointmentStarttime").addCDATA(CalendarPatterns.getDateWithTimeByMiliSeconds(a.getAppointmentStarttime()));
      appointment.addElement("appointmentEndtime").addCDATA(CalendarPatterns.getDateWithTimeByMiliSeconds(a.getAppointmentEndtime()));
      if (a.getAppointmentCategory() != null) {
        appointment.addElement("categoryId").addCDATA(""+a.getAppointmentCategory().getCategoryId());
      } else {
        appointment.addElement("categoryId").addCDATA(""+0);
      }
      if (a.getUserId() != null) {
        appointment.addElement("users_id").addCDATA(""+a.getUserId().getUser_id());
      } else {
        appointment.addElement("users_id").addCDATA(""+0);
      }
      appointment.addElement("deleted").addCDATA(""+a.getDeleted());
      appointment.addElement("comment").addCDATA(""+a.getComment());
      if (a.getRemind() != null) {
        appointment.addElement("typId").addCDATA(""+a.getRemind().getTypId());
      } else {
        appointment.addElement("typId").addCDATA(""+0);
      }
      appointment.addElement("isDaily").addCDATA(""+a.getIsDaily());
      appointment.addElement("isWeekly").addCDATA(""+a.getIsWeekly());
      appointment.addElement("isMonthly").addCDATA(""+a.getIsMonthly());
      appointment.addElement("isYearly").addCDATA(""+a.getIsYearly());
      if (a.getRoom() != null) {
        appointment.addElement("room_id").addCDATA(""+a.getRoom().getRooms_id());
      } else {
        appointment.addElement("room_id").addCDATA(""+0);
      }
      appointment.addElement("icalId").addCDATA(""+a.getIcalId());
      appointment.addElement("language_id").addCDATA(""+a.getLanguage_id());
      appointment.addElement("isPasswordProtected").addCDATA(""+a.getIsPasswordProtected());
      appointment.addElement("password").addCDATA(""+a.getPassword());
     
      //Separated XML File
     
//      Element meetingMembers = appointment.addElement("meetingMembers");
//      //List<String> organisations = new LinkedList();
View Full Code Here

Examples of org.openmeetings.app.persistence.beans.calendar.Appointment

                Boolean isPasswordProtected = importBooleanType(unformatString(appointmentsObject.element("isPasswordProtected").getText()));
                String password = unformatString(appointmentsObject.element("password").getText());
                Long users_id = getNewId(importLongType(unformatString(appointmentsObject.element("users_id").getText())), Maps.USERS);
               
               
                Appointment app = new Appointment();
                app.setAppointmentId(appointmentId);
                app.setAppointmentLocation(appointmentLocation);
                app.setAppointmentName(appointmentName);
                app.setAppointmentDescription(appointmentDescription);
                app.setAppointmentCategory(AppointmentCategoryDaoImpl.getInstance().getAppointmentCategoryById(categoryId));
                app.setAppointmentStarttime(appointmentStarttime);
                app.setAppointmentEndtime(appointmentEndtime);
                app.setDeleted(deleted);
                app.setComment(comment);
                app.setRemind(AppointmentReminderTypDaoImpl.getInstance().getAppointmentReminderTypById(typId));
                app.setIsDaily(isDaily);
                app.setIsWeekly(isWeekly);
                app.setIsMonthly(isMonthly);
                app.setIsYearly(isYearly);
                app.setRoom(Roommanagement.getInstance().getRoomById(room_id));
                app.setIcalId(icalId);
                app.setLanguage_id(language_id);
                app.setIsPasswordProtected(isPasswordProtected);
                app.setPassword(password);
                app.setUserId(Usermanagement.getInstance().getUserById(users_id));
               
                appointmentList.add(app);
               
              }
             
View Full Code Here

Examples of org.openmeetings.app.persistence.beans.calendar.Appointment

      Query query = session.createQuery(hql);
      query.setParameter("deleted", "true");
      query.setParameter("appointmentId",appointmentId);
     
     
      Appointment appoint = null;
      try{
        appoint = (Appointment) query.getSingleResult();
        } catch (NoResultException ex) {
        }
        session.flush();
View Full Code Here

Examples of org.openmeetings.app.persistence.beans.calendar.Appointment

      tx.begin();
      Query query = session.createQuery(hql);
      query.setParameter("appointmentId",appointmentId);
     
     
      Appointment appoint = null;
      try{
        appoint = (Appointment) query.getSingleResult();
        } catch (NoResultException ex) {
        }
      tx.commit();
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.