Package org.openmeetings.app.persistence.beans.invitation

Examples of org.openmeetings.app.persistence.beans.invitation.Invitations


  public Object checkInvitationPass(String hashCode, String pass) {
    try {
      Object obj = this.getInvitationByHashCode(hashCode, false);
      log.debug("checkInvitationPass - obj: " + obj);
      if (obj instanceof Invitations) {
        Invitations invitation = (Invitations) obj;

        // log.debug("invitationId "+invitation.getInvitations_id());
        // log.debug("pass "+pass);
        // log.debug("getInvitationpass "+invitation.getInvitationpass());

        if (manageCryptStyle.getInstanceOfCrypt().verifyPassword(pass,
            invitation.getInvitationpass())) {
          return new Long(1);
        } else {
          return new Long(-34);
        }
      } else {
View Full Code Here


                  .getDateWithTimeByMiliSeconds(dFrom));
          log.info("validToDate: "
              + CalendarPatterns
                  .getDateWithTimeByMiliSeconds(dTo));
        }
        Invitations invitation = invitationManagement
            .addInvitationLink(user_level, username, username,
                username, username, username, room_id, "",
                isPasswordProtected, invitationpass, valid,
                dFrom, dTo, users_id, "", 1L, false, dFrom,
                dTo, null, username);

        if (invitation != null) {

          return invitation.getHash();

        } else {

          return "Sys - Error";
View Full Code Here

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

        Invitations invitation = invitationManagement
            .addInvitationLink(user_level, username, message,
                baseurl, email, subject, room_id, "",
                isPasswordProtected, invitationpass, valid,
                dFrom, dTo, users_id, baseurl, language_id,
                sendMail, dFrom, dTo, null, username);

        if (invitation != null) {

          return invitation.getHash();

        } else {

          return "Sys - Error";
View Full Code Here

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

        Invitations invitation = invitationManagement
            .addInvitationLink(user_level, username, message,
                baseurl, email, subject, room_id, "",
                isPasswordProtected, invitationpass, valid,
                dFrom, dTo, users_id, baseurl, language_id,
                sendMail, dFrom, dTo, null, username);

        if (invitation != null) {

          return invitation.getHash();

        } else {

          return "Sys - Error";
View Full Code Here

   * @return hash to enter the room
   */
  public String getInvitationHash(String SID, String username, Long room_id) {
    Long users_id = this.sessionManagement.checkSession(SID);
    Long user_level = this.userManagement.getUserLevelByID(users_id);
    Invitations invitation = this.invitationManagement.addInvitationLink(
        user_level, username, username, username, username, username,
        room_id, "", Boolean.valueOf(false), null, Integer.valueOf(3),
        null, null, users_id, "", Long.valueOf(1L),
        Boolean.valueOf(false), null, null, null, username);

    return ((invitation == null) ? null : invitation.getHash());
  }
View Full Code Here

      // point.getRemind().getTypId() == 1 will not receive emails

      if (point.getRemind().getTypId() == 2) {
        log.debug("Invitation for Appointment : simple email");

        Invitations invitation = invitationManagement
            .addInvitationLink(
                new Long(2), // userlevel
                firstname + " " + lastname, // username
                message,
                baseUrl, // baseURl
                email, // email
                subject, // subject
                point.getRoom().getRooms_id(), // room_id
                "public",
                isPasswordProtected, // passwordprotected
                password, // invitationpass
                2, // valid type
                point.getAppointmentStarttime(), // valid from
                point.getAppointmentEndtime(), // valid to
                meeting_organizer, // created by
                baseUrl,
                language_id,
                true, // really send mail sendMail
                point.getAppointmentStarttime(),
                point.getAppointmentEndtime(),
                point.getAppointmentId(),
                invitorName);

        invitationId = invitation.getInvitations_id();

      } else if (point.getRemind().getTypId() == 3) {
        log.debug("Reminder for Appointment : iCal mail");

        System.out.println("### SENDING iCAL EMAIL");

        invitationId = invitationManagement
            .addInvitationIcalLink(
                new Long(2), // userlevel
                firstname + " " + lastname, // username
                message,
                baseUrl, // baseURl
                email, // email
                subject, // subject
                point.getRoom().getRooms_id(), // room_id
                "public",
                isPasswordProtected, // passwordprotected
                password, // invitationpass
                2, // valid
                point.getAppointmentStarttime(), // valid from
                point.getAppointmentEndtime(), // valid to
                meeting_organizer, // created by
                point.getAppointmentId(), isInvitor,
                language_id, timezone,
                point.getAppointmentId(),
                invitorName);

      }

      // Setting InvitationId within MeetingMember

      if (invitationId != null) {
        Invitations invi = invitationManagement
            .getInvitationbyId(invitationId);

        member.setInvitation(invi);

        updateMeetingMember(member);
View Full Code Here

                  recipients, room, appointmentstart,
                  appointmentend, false, true,
                  sendJNameTimeZone);
            }
           
            Invitations invitation = invitationManagement
                .addInvitationLink(
                    new Long(2), // userlevel
                    from.getFirstname() + " " + from.getLastname(), // username
                    message,
                    baseURL, // baseURl
                    from.getAdresses().getEmail(), // email
                    subject, // subject
                    room_id, // room_id
                    "public",
                    false, // passwordprotected
                    "", // invitationpass
                    2, // valid type
                    appointmentstart, // valid from
                    appointmentend, // valid to
                    from.getUser_id(), // created by
                    baseURL,
                    from.getUser_id(),
                    false, // really send mail sendMail
                    appointmentstart,
                    appointmentend,
                    appointmentId,
                    from.getFirstname() + " " + from.getLastname());
           
            invitation_link = baseURL + "?invitationHash="
                + invitation.getHash();

           
          }
         
          if (to != null) {
View Full Code Here

        for (MeetingMember mm : members) {

          log.debug("doScheduledMeetingReminder : Member "
              + mm.getEmail());

          Invitations inv = mm.getInvitation();

          if (inv == null) {
            log.error("Error retrieving Invitation for member "
                + mm.getEmail() + " in Appointment "
                + ment.getAppointmentName());
            continue;
          }

          if (inv.getBaseUrl() == null
              || inv.getBaseUrl().length() < 1) {
            log.error("Error retrieving baseUrl from Invitation ID : "
                + inv.getInvitations_id());
            continue;
          }

          TimeZone tZone = null;

          if (mm.getOmTimeZone() != null) {
            tZone = timezoneUtil.getTimezoneByOmTimeZoneId(mm
                .getOmTimeZone().getOmtimezoneId());
          } else {
            tZone = TimeZone.getDefault();
          }

          String subject = generateSubject(labelid1158, ment, tZone);

          String message = generateMessage(labelid1158, ment,
              language_id, labelid1153, labelid1154, tZone);

          invitationManagement.sendInvitationReminderLink(message,
              inv.getBaseUrl(), mm.getEmail(), subject,
              inv.getHash());

          inv.setUpdatetime(new Date());
          invitationManagement.updateInvitation(inv);
        }
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.openmeetings.app.persistence.beans.invitation.Invitations

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.