Package org.openmeetings.app.persistence.beans.user

Examples of org.openmeetings.app.persistence.beans.user.Users


  }

  private boolean checkUserContainsOrganisation(long users_id,
      long organisation_id) {
    try {
      Users us = UsersDaoImpl.getInstance().getUser(users_id);
      for (Iterator it = us.getOrganisation_users().iterator(); it
          .hasNext();) {
        Organisation_Users orguser = (Organisation_Users) it.next();
        if (orguser.getOrganisation().getOrganisation_id() == organisation_id)
          return true;
      }
View Full Code Here


          .hasNext();) {
        Organisation_Users us = (Organisation_Users) it.next();

        // Only add this single Organization add this point cause
        // cause all the other are not needed at this point
        Users user = UsersDaoImpl.getInstance()
            .getUser(us.getUser_id());

        user.setOrganisation_users(new LinkedList<Organisation_Users>());
        user.getOrganisation_users().add(us);

        userL.add(user);
      }
      // Collections.sort(userL,new UsersFirstnameComperator());
      return userL;
View Full Code Here

     
      currentClient.setUsercolor(colorObj);
     
      //Inject externalUserId if nothing is set yet
      if (currentClient.getExternalUserId() == null) {
        Users us = UsersDaoImpl.getInstance().getUser(currentClient.getUser_id());
        if (us != null) {
          currentClient.setExternalUserId(us.getExternalUserId());
          currentClient.setExternalUserType(us.getExternalUserType());
        }
      }
     
      //This can be set without checking for Moderation Flag
      currentClient.setIsSuperModerator(isSuperModerator);
View Full Code Here

      Sessionmanagement.getInstance().updateUser(currentClient.getPublicSID(), userId,false,null);
     
      //only fill this value from User-REcord
      //cause invited users have non
      //you cannot set the firstname,lastname from the UserRecord
      Users us = UsersDaoImpl.getInstance().getUser(userId);
      if (us!=null && us.getPictureuri()!=null){
        //set Picture-URI
        log.debug("###### SET PICTURE URI");
        currentClient.setPicture_uri(us.getPictureuri());
      }
      this.clientListManager.updateClientByStreamId(streamid, currentClient);
      return currentClient;
    } catch (Exception err){
      log.error("[setUsername]",err);
View Full Code Here

     
      //Update Session Data
      log.debug("UDPATE SESSION "+SID+", "+userId);
      Sessionmanagement.getInstance().updateUserWithoutSession(SID, userId);
     
      Users user = Usermanagement.getInstance().getUserById(userId);
     
      if (user != null) {
        currentClient.setExternalUserId(user.getExternalUserId());
        currentClient.setExternalUserType(user.getExternalUserType());
      }
     
      //only fill this value from User-Record
      //cause invited users have non
      //you cannot set the firstname,lastname from the UserRecord
      Users us = UsersDaoImpl.getInstance().getUser(userId);
      if (us!=null && us.getPictureuri()!=null){
        //set Picture-URI
        log.debug("###### SET PICTURE URI");
        currentClient.setPicture_uri(us.getPictureuri());
      }
      this.clientListManager.updateClientByStreamId(streamid, currentClient);
      return currentClient;
    } catch (Exception err){
      log.error("[setUsername]",err);
View Full Code Here

     
      //Update Session Data
      log.debug("UDPATE SESSION "+SID+", "+userId);
      Sessionmanagement.getInstance().updateUserWithoutSession(SID, userId);
     
      Users user = Usermanagement.getInstance().getUserById(userId);
     
      if (user != null) {
        currentClient.setExternalUserId(user.getExternalUserId());
        currentClient.setExternalUserType(user.getExternalUserType());
      }
     
      //only fill this value from User-Record
      //cause invited users have non
      //you cannot set the firstname,lastname from the UserRecord
      Users us = UsersDaoImpl.getInstance().getUser(userId);
      if (us!=null && us.getPictureuri()!=null){
        //set Picture-URI
        log.debug("###### SET PICTURE URI");
        currentClient.setPicture_uri(us.getPictureuri());
      }
      this.clientListManager.updateClientByStreamId(streamid, currentClient);
      return currentClient;
    } catch (Exception err){
      log.error("[setUsername]",err);
View Full Code Here

     
      Map returnMap = new HashMap();
     
      returnMap.put("appointment", appointment);
     
      Users us = Usermanagement.getInstance().getUserById(currentClient.getUser_id());
     
      String jNameTimeZone = null;
      if (us != null && us.getOmTimeZone() != null) {
        jNameTimeZone = us.getOmTimeZone().getJname();
      } else {
        Configuration conf = Configurationmanagement.getInstance().getConfKey(3L, "default.timezone");
        if (conf != null) {
          jNameTimeZone = conf.getConf_value();
        }
View Full Code Here

     
      roomRecording.setRecordname(newRecordFileName);
     
      RoomClient startedClient = roomRecording.getStartedby();
      Long recordedby = startedClient.getUser_id();
      Users us = null;
      if (recordedby!=null && recordedby>0){
        us = UsersDaoImpl.getInstance().getUser(recordedby);
      }
     
     
View Full Code Here

              else whereClause += " OR";
              whereClause += " c.rooms.rooms_id = "+room.getRooms_id()+" ";
              i++;
            }
       
        Users us = UsersDaoImpl.getInstance().getUser(users_id);
       
        for (Iterator<Organisation_Users> iter = us.getOrganisation_users().iterator();iter.hasNext();) {
          Organisation_Users orgUser = iter.next();
          Long organisation_id = orgUser.getOrganisation().getOrganisation_id();
         
          List<Rooms_Organisation> rOrgList = Roommanagement.getInstance().getRoomsOrganisationByOrganisationId(3, organisation_id);
          for (Iterator<Rooms_Organisation> iterOrgList = rOrgList.iterator();iterOrgList.hasNext();){
View Full Code Here

   * @return
   */
  private boolean checkUserOrgRoom(long user_id, long rooms_id){
    try {
     
      Users us = UsersDaoImpl.getInstance().getUser(user_id);
      List s = us.getOrganisation_users();
   
      for (Iterator it = s.iterator(); it.hasNext();){
        Organisation_Users orgUsers = (Organisation_Users) it.next();
        long organisation_id = orgUsers.getOrganisation().getOrganisation_id();
        List ll = this.getRoomsOrganisationByOrganisationId(3, organisation_id);
View Full Code Here

TOP

Related Classes of org.openmeetings.app.persistence.beans.user.Users

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.