Package org.apache.openmeetings.db.entity.room

Examples of org.apache.openmeetings.db.entity.room.Invitation


  public String sendInvitationByHash(String SID, String invitationHash, String message, String subject
      , Long language_id) throws Exception {
    Long users_id = sessiondataDao.checkSession(SID);

    if (AuthLevelUtil.hasUserLevel(userDao.getRights(users_id))) {
      Invitation inv = (Invitation)invitationManager.getInvitationByHashCode(invitationHash, true);
      inv.getInvitee().setLanguage_id(language_id);
      invitationManager.sendInvitionLink(inv, MessageType.Create, subject, message, false);
    } else {
      return "Need User Privileges to perfom the Action";
    }
    return "Success";
View Full Code Here


          log.info("validToDate: "
              + CalendarPatterns
                  .getDateWithTimeByMiliSeconds(dTo));
        }
        User invitee = userDao.getContact(username, username, username, users_id);
        Invitation invitation = invitationManager.getInvitation(invitee, roomDao.get(room_id),
                isPasswordProtected, invitationpass, Valid.fromInt(valid)
                , userDao.get(users_id), 1L, dFrom, dTo, null);

        if (invitation != null) {
          return invitation.getHash();
        } else {
          return "Sys - Error";
        }
      } else {
        return "Need Admin Privileges to perfom the Action";
View Full Code Here

              + CalendarPatterns
                  .getDateWithTimeByMiliSeconds(dTo));
        }

        User invitee = userDao.getContact(email, users_id);
        Invitation invitation = invitationManager.getInvitation(invitee, roomDao.get(room_id),
                isPasswordProtected, invitationpass, Valid.fromInt(valid)
                , userDao.get(users_id), language_id,
                dFrom, dTo, null);

        if (invitation != null) {
          if (sendMail) {
            invitationManager.sendInvitionLink(invitation, MessageType.Create, subject, message, false);
          }

          return invitation.getHash();
        } else {
          return "Sys - Error";
        }
      } else {
        return "Need Admin Privileges to perfom the Action";
View Full Code Here

            + CalendarPatterns.getDateWithTimeByMiliSeconds(dFrom));
        log.info("validToDate: "
            + CalendarPatterns.getDateWithTimeByMiliSeconds(dTo));

        User invitee = userDao.getContact(email, users_id);
        Invitation invitation = invitationManager.getInvitation(invitee, roomDao.get(room_id),
                isPasswordProtected, invitationpass, Valid.fromInt(valid)
                , userDao.get(users_id), language_id, dFrom, dTo, null);

        if (invitation != null) {
          if (sendMail) {
            invitationManager.sendInvitionLink(invitation, MessageType.Create, subject, message, false);
          }

          return invitation.getHash();
        } else {
          return "Sys - Error";
        }
      } else {
        return "Need Admin Privileges to perfom the Action";
View Full Code Here

    }
    return null;
  }

  private void sendReminder(User u, Appointment a) throws Exception {
    Invitation i = new Invitation();
    i.setInvitedBy(u);
    i.setInvitee(u);
    i.setAppointment(a);
    sendReminder(u, a, i);
  }
View Full Code Here

      // Iterate through all MeetingMembers
      for (MeetingMember mm : members) {
        log.debug("doScheduledMeetingReminder : Member " + mm.getUser().getAdresses().getEmail());

        Invitation inv = mm.getInvitation();

        sendReminder(mm.getUser(), a, inv);
      }
    }
  }
View Full Code Here

 
        Date dFrom = calFrom.getTime();
        Date dTo = calTo.getTime();
 
        User invitee = userDao.getContact(email, firstname, lastname, users_id);
        Invitation invitation = invitationManager.getInvitation(invitee, roomDao.get(room_id),
                isPasswordProtected, invitationpass, Valid.fromInt(valid)
                , userDao.get(users_id), language_id,
                dFrom, dTo, null);

        if (invitation != null) {
View Full Code Here

      , Long language_id) throws Exception {
    Long users_id = sessiondataDao.checkSession(SID);
    Long user_level = userManager.getUserLevelByID(users_id);

    if (AuthLevelUtil.checkUserLevel(user_level)) {
      Invitation inv = (Invitation)invitationManager.getInvitationByHashCode(invitationHash, true);
      inv.getInvitee().setLanguage_id(language_id);
      invitationManager.sendInvitionLink(inv, MessageType.Create, subject, message, false);
    } else {
      return "Need User Privileges to perfom the Action";
    }
    return "Success";
View Full Code Here

TOP

Related Classes of org.apache.openmeetings.db.entity.room.Invitation

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.