Package org.apache.openmeetings.db.entity.user

Examples of org.apache.openmeetings.db.entity.user.User


    if (pbl != null) {
      rl.addAll(pbl);
    }

    Long users_id = sessiondataDao.checkSession(SID);
    User u = userManager.getUserById(users_id);
    for (Organisation_Users ou : u.getOrganisation_users()) {
      List<RoomOrganisation> rol = conferenceService.getRoomsByOrganisationWithoutType(SID
          , ou.getOrganisation().getOrganisation_id().longValue());
      if (rol != null) {
        for (RoomOrganisation ro : rol) {
          rl.add(ro.getRoom());
View Full Code Here


  public String getInvitationHash(String SID, String username, Long room_id) {
    Long users_id = this.sessiondataDao.checkSession(SID);
    Long user_level = this.userManager.getUserLevelByID(users_id);
   
    if (AuthLevelUtil.checkUserLevel(user_level)) {
      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);
 
View Full Code Here

        URL url = new URL(path);
        URLConnection uc = url.openConnection();
        InputStream inputstream = new BufferedInputStream(
            uc.getInputStream());

        User externalUser = userManager.getUserByExternalIdAndType(
            externalUserId, externalType);

        LinkedHashMap<String, Object> hs = new LinkedHashMap<String, Object>();
        hs.put("user", externalUser);

        ConverterProcessResultList returnError = fileProcessor
            .processFile(externalUser.getUser_id(), room_id,
                isOwner, inputstream, parentFolderId,
                fileSystemName,
                externalFileId, externalType);

        // Flash cannot read the response of an upload
View Full Code Here

        URL url = new URL(path);
        URLConnection uc = url.openConnection();
        InputStream inputstream = new BufferedInputStream(
            uc.getInputStream());

        User internalUser = userManager.getUserById(internalUserId);

        LinkedHashMap<String, Object> hs = new LinkedHashMap<String, Object>();
        hs.put("user", internalUser);

        ConverterProcessResultList returnError = fileProcessor
            .processFile(internalUser.getUser_id(), room_id,
                isOwner, inputstream, parentFolderId,
                fileSystemName,
                externalFileId, externalType);

        // Flash cannot read the response of an upload
View Full Code Here

      Long users_id = sessiondataDao.checkSession(SID);
      Long User_level = userManager.getUserLevelByID(users_id);

      if (AuthLevelUtil.checkWebServiceLevel(User_level)) {

        User userExternal = userManager.getUserByExternalIdAndType(
            externalUserId, externalType);

        Long userId = userExternal.getUser_id();

        log.debug("addFolder " + parentFileExplorerItemId);

        if (parentFileExplorerItemId == -2 && isOwner) {
          // users_id (OwnerID) => only set if its directly root in
View Full Code Here

        calTo.set(Calendar.SECOND, 0);
 
        Date dFrom = calFrom.getTime();
        Date dTo = calTo.getTime();
 
        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), getBaseUrl(baseurl), language_id,
                dFrom, dTo, null);
View Full Code Here

      while (item != null) {
        MeetingMember mm = ser.read(MeetingMember.class, item, false);

        boolean needToSkip1 = true;
        if (mm.getUser() == null) {
          mm.setUser(new User());
        }
        if (mm.getUser().getUser_id() == null) {
          //HACK to handle external attendee's firstname, lastname, email
          boolean contactValid = false;
          do {
View Full Code Here

    if (listNodeName.equals(listNode.getName())) {
      InputNode item = listNode.getNext();
      InputNode item1 = listNode1.getNext(); //HACK to handle Address inside user
      InputNode item2 = listNode2.getNext(); //HACK to handle old om_time_zone
      while (item != null) {
        User u = ser.read(User.class, item, false);
       
        boolean needToSkip1 = true;
        //HACK to handle Address inside user
        if (u.getAdresses() == null) {
          Address a = ser.read(Address.class, item1, false);
          u.setAdresses(a);
          needToSkip1 = false;
        }
        if (needToSkip1) {
          do {
            item1 = listNode1.getNext(); //HACK to handle Address inside user
          } while (item1 != null && !"user".equals(item1.getName()));
        }
        do {
          if (u.getTimeZoneId() == null && "omTimeZone".equals(item2.getName())) {
            String jName = item2.getValue();
            u.setTimeZoneId(jName == null ? null : tzUtil.getTimezoneByInternalJName(jName).getID());
          }
          item2 = listNode2.getNext(); //HACK to handle old om_time_zone
        } while (item2 != null && !"user".equals(item2.getName()));
        // check that email is unique
        if (u.getAdresses() != null && u.getAdresses().getEmail() != null) {
          if (userEmailMap.containsKey(u.getAdresses().getEmail())) {
            log.warn("Email is dublicated for user " + u.toString());
            String updateEmail = "modified_by_import_<" + list.size() + ">" + u.getAdresses().getEmail();
            u.getAdresses().setEmail(updateEmail);
          }
          userEmailMap.put(u.getAdresses().getEmail(), userEmailMap.size());
        }
        list.add(u);
        item = listNode.getNext();
      }
    }
View Full Code Here

    return entity;
  }

  public void delete(Organisation_Users entity, Long userId) {
    if (entity.getOrganisation_users_id() != null) {
      User u = usersDao.get(entity.getUser_id());
      int idx = u.getOrganisation_users().indexOf(entity);
      //entity has been detached need to re-fetch
      Organisation_Users ou = u.getOrganisation_users().remove(idx);
      em.remove(ou);
      usersDao.update(u, userId);
    }
  }
View Full Code Here

        if (user_id == null || user_id < 0) {
          return user_id;
        }

        User user = userManagement.getUserById(user_id);

        // activate the User
        user.setStatus(1);
        user.setUpdatetime(new Date());

        userManagement.updateUser(user);

        return user_id;
View Full Code Here

TOP

Related Classes of org.apache.openmeetings.db.entity.user.User

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.