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

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


        return null;
      }
     
      log.debug(":::: addMeetingMember ..... "+point.getRemind().getTypId());
     
      Users us = Usermanagement.getInstance().getUserById(userid);
      OmTimeZone omTimeZone = null;
     
      String jNameTimeZone = null;
      if (us != null && us.getOmTimeZone() != null) {
        System.out.println("Internal User ");
        //Internal User
        jNameTimeZone = us.getOmTimeZone().getJname();
        omTimeZone = OmTimeZoneDaoImpl.getInstance().getOmTimeZone(jNameTimeZone);
      } else {
       
        System.out.println("External User ");
        //External User
View Full Code Here


      if(point == null){
        log.error("could not retrieve appointment!");
        return null;
      }
     
      Users user = Usermanagement.getInstance().getUserById(users_id);
     
      if(user == null){
        log.error("could not retrieve user!");
        return null;
      }
View Full Code Here

          invitation.setInvitationWasUsed(false);
        }
       
        invitation.setDeleted("false");
       
        Users us = UsersDaoImpl.getInstance().getUser(createdBy);
        String hashRaw = "HASH"+(System.currentTimeMillis());
        invitation.setHash(MD5.do_checksum(hashRaw));
       
        invitation.setInvitedBy(us);
        invitation.setInvitedname(username);
View Full Code Here

  public void cancelInvitation(Appointment appointment, MeetingMember member,
      Long canceling_user_id, Long language_id){
   
    log.debug("cancelInvitation");
   
    Users user;
   
    try{
      user= Usermanagement.getInstance().getUserById(canceling_user_id);
    }catch(Exception e){
      log.error("Cancelling user cant be retrieved");
      return;
    }
   
    if(appointment.getRemind() == null ){
      log.error("Appointment " + appointment.getAppointmentName() + " has no ReminderType!");
      return;
    }
   
    log.debug("Remindertype : " + appointment.getRemind().getTypId());
   
    Users us = member.getUserid();
   
    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

  public void updateInvitation(Appointment appointment, MeetingMember member,
        Long canceling_user_id, Long language_id, String invitorName){
   
    log.debug("updateInvitation");
   
    Users user;
   
    try{
      user= Usermanagement.getInstance().getUserById(canceling_user_id);
    }catch(Exception e){
      log.error("Cancelling user cant be retrieved");
      return;
    }
   
    if(appointment.getRemind() == null ){
      log.error("Appointment " + appointment.getAppointmentName() + " has no ReminderType!");
      return;
    }
   
    log.debug("Remindertype : " + appointment.getRemind().getTypId());
   
    Users us = member.getUserid();
     
    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

          invitation.setInvitationWasUsed(false);
        }
       
        invitation.setDeleted("false");
       
        Users us = UsersDaoImpl.getInstance().getUser(createdBy);
        String hashRaw = "InvitationHash"+(System.currentTimeMillis());
        log.debug("addInvitationIcalLink : rawHash = " + hashRaw);
        invitation.setHash(MD5.do_checksum(hashRaw));
       
        invitation.setInvitedBy(us);
View Full Code Here

      String jNameTimeZone, String subject, String message) throws Exception{
    log.debug("sendInvitationIcalCancelMail");
   
   
    // Defining Organizer
    Users user = Usermanagement.getInstance().getUserById(organizer_userId);
   
    OmTimeZone omTimeZone = OmTimeZoneDaoImpl.getInstance().getOmTimeZone(jNameTimeZone);
   
   
    IcalHandler handler = new IcalHandler(IcalHandler.ICAL_METHOD_CANCEL);
   
    // refresh appointment
    point = AppointmentLogic.getInstance().getAppointMentById(point.getAppointmentId());
   
    // Transforming Meeting Members
   
    HashMap<String, String> attendeeInDerHashMap = handler.getAttendeeData(email, userName, invitor);
   
    Vector<HashMap<String, String>> atts = new Vector<HashMap<String,String>>();
    atts.add(attendeeInDerHashMap);
   
 
    HashMap<String, String> attendeeList = handler.getAttendeeData(user.getAdresses().getEmail(), user.getLogin(), invitor);
   
    GregorianCalendar start = new GregorianCalendar();
    start.setTime(startdate);
   
    GregorianCalendar end = new GregorianCalendar();
View Full Code Here

      String subject, String message) throws Exception{
    log.debug("sendInvitationIcalUpdateMail");
   
   
    // Defining Organizer
    Users user = Usermanagement.getInstance().getUserById(organizer_userId);
   
    IcalHandler handler = new IcalHandler(IcalHandler.ICAL_METHOD_REQUEST);
   
    // refresh appointment
    point = AppointmentLogic.getInstance().getAppointMentById(point.getAppointmentId());
   
    // Transforming Meeting Members
   
    HashMap<String, String> attendeeInDerHashMap = handler.getAttendeeData(email, userName, invitor);
   
    Vector<HashMap<String, String>> atts = new Vector<HashMap<String,String>>();
    atts.add(attendeeInDerHashMap);
   
 
    HashMap<String, String> attendeeList = handler.getAttendeeData(user.getAdresses().getEmail(), user.getLogin(), invitor);
   
    GregorianCalendar start = new GregorianCalendar();
    start.setTime(starttime);
   
    GregorianCalendar end = new GregorianCalendar();
View Full Code Here

     
      Vector<HashMap<String, String>> atts = new Vector<HashMap<String,String>>();
      atts.add(attendeeList);
     
      // Defining Organizer
      Users user = Usermanagement.getInstance().getUserById(organizer_userId);
     
      HashMap<String, String> organizerAttendee = handler.getAttendeeData(email, username, invitor);
      if (user != null) {
        organizerAttendee = handler.getAttendeeData(user.getAdresses().getEmail(), user.getLogin(), invitor);
      }     
     
      GregorianCalendar start = new GregorianCalendar();
      start.setTime(starttime); //Must be the calculated date base on the time zone
     
View Full Code Here

          // Setting user deleted
          Long userId = UsersDaoImpl.getInstance().deleteUserID(
              user_idClient);

          Users user = Usermanagement.getInstance()
              .checkAdmingetUserById(user_level, userId);

          // Updating address
          Adresses ad = user.getAdresses();

          if (ad != null) {
            ad.setDeleted("true");

            Addressmanagement.getInstance().updateAdress(ad);
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.