Examples of Invitation


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

  public String getInvitationHash(String SID, String username, Long room_id) {
    Long users_id = sessiondataDao.checkSession(SID);
   
    if (AuthLevelUtil.hasUserLevel(userDao.getRights(users_id))) {
      User invitee = userDao.getContact(username, username, username, users_id);
      Invitation invitation = invitationManager.getInvitation(invitee, roomDao.get(room_id),
              false, "", Valid.OneTime, userDao.get(users_id), 1L, null, null, null);
 
      return ((invitation == null) ? null : invitation.getHash());
    } else {
      return "Need Admin Privileges to perfom the Action";
    }
  }
View Full Code Here

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

 
        Calendar calFrom = getDate(validFromDate, validFromTime, iCalTz);
        Calendar calTo = getDate(validToDate, validToTime, iCalTz);
 
        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,
                calFrom.getTime(), calTo.getTime(), null);

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

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

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

          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

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

              + 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

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

            + 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

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

    }
    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

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

      // 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

Examples of org.xmpp.muc.Invitation

            // Create a new entry for the active session and the request made by the user
            requests.put(sessionID, request);

            // Invite the Agent to the new room
            Invitation invitation = new Invitation(agent.getJID().toString(), sessionID);
            invitation.setTo(roomName);
            invitation.setFrom(getFullJID());
            // Add workgroup extension that includes the JID of the user that made the request
            Element element = invitation.addChildElement("offer", "http://jabber.org/protocol/workgroup");
            element.addAttribute("jid", userJID);
            // Add custom extension that includes the sessionID
            element = invitation.addChildElement("session", "http://jivesoftware.com/protocol/workgroup");
            element.addAttribute("workgroup", sessionWorkgroup.getJID().toString());
            element.addAttribute("id", sessionID);
            // Add custom extension that includes the userID if the session belongs to an
            // anonymous user
            if (request.isAnonymousUser()) {
                element = invitation.addChildElement("user", "http://jivesoftware.com/protocol/workgroup");
                element.addAttribute("id", request.getUserID());
            }
            interceptorManager.invokeInterceptors(getJID().toBareJID(), invitation, false, false);
            send(invitation);
            interceptorManager.invokeInterceptors(getJID().toBareJID(), invitation, false, true);
View Full Code Here

Examples of org.xmpp.muc.Invitation

        String userJID = request.getUserJID().toString();
        final String sessionID = request.getSessionID();
        final String serviceName = WorkgroupManager.getInstance().getMUCServiceName();
        final String roomName = sessionID + "@" + serviceName;

        Invitation invitation = new Invitation(userJID, "Please join me for a chat.");
        invitation.setTo(roomName);
        invitation.setFrom(getFullJID());
        // Add workgroup extension that includes the JID of the workgroup
        Element element = invitation.addChildElement("workgroup",
            "http://jabber.org/protocol/workgroup");
        element.addAttribute("jid", getJID().toBareJID());
        // Add custom extension that includes the sessionID
        element =
            invitation.addChildElement("session", "http://jivesoftware.com/protocol/workgroup");
        element.addAttribute("id", sessionID);
        RoomInterceptorManager interceptorManager = RoomInterceptorManager.getInstance();
        interceptorManager.invokeInterceptors(getJID().toBareJID(), invitation, false, false);
        send(invitation);
        interceptorManager.invokeInterceptors(getJID().toBareJID(), invitation, false, true);
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.