Package org.openmeetings.app.persistence.beans.basic

Examples of org.openmeetings.app.persistence.beans.basic.Configuration


         
          log.debug("CalendarServlet jNameTimeZone "+jNameTimeZone );
         
          if (timeZoneIdAsStr == null) {
           
            Configuration conf = Configurationmanagement.getInstance().getConfKey(3L, "default.timezone");
            if (conf != null) {
              jNameTimeZone = conf.getConf_value();
            }
            omTimeZone = OmTimeZoneDaoImpl.getInstance().getOmTimeZone(jNameTimeZone);
           
          } else {
           
            //System.out.println("CalendarServlet TimeZone "+jNameTimeZone );
            omTimeZone = OmTimeZoneDaoImpl.getInstance().getOmTimeZoneById(Long.valueOf(timeZoneIdAsStr).longValue());
           
            if (omTimeZone == null) {
              Configuration conf = Configurationmanagement.getInstance().getConfKey(3L, "default.timezone");
              if (conf != null) {
                jNameTimeZone = conf.getConf_value();
              }
              omTimeZone = OmTimeZoneDaoImpl.getInstance().getOmTimeZone(jNameTimeZone);
            }
           
          }
View Full Code Here


  final public void testRegistrationUser() throws Exception {
 
  Random rd = new Random();
  Users user = TestUtils.createUser(rd.nextInt());

    Configuration conf = Configurationmanagement.getInstance().getConfKey(3L, "default.timezone");
    String jNameTimeZone = "";
    if (conf != null) {
      jNameTimeZone = conf.getConf_value();
    }

    Long user_id = Usermanagement.getInstance().registerUser(
          "username", user.getPassword(),
          user.getLastname(), user.getLastname(), user.getLastname() + "@mail.com",
View Full Code Here

    Random rnd = new java.util.Random();
    int key = rnd.nextInt();
    String userpass = "pass" + key;
    String userlogin = "login" + key;
    String email = "email" + key;
    Configuration conf = Configurationmanagement.getInstance().getConfKey(3L, "default.timezone");
    String jNameTimeZone = "";
    if (conf != null) {
      jNameTimeZone = conf.getConf_value();
    }
    Long user_id = Usermanagement.getInstance().registerUserInit(
        new Long(3), 3, 1, 1, userlogin, userpass, "lastname",
        "firstname", email, new java.util.Date(), "street", "no",
        "fax", "zip", 1, "town", 0, false, null, "phone", "", false,
View Full Code Here

       
        Long users_id = Sessionmanagement.getInstance().checkSession(sid);
        Long user_level = Usermanagement.getInstance().getUserLevelByID(users_id);
     
        // Switch between scharers
        Configuration c = Configurationmanagement.getInstance().getConfKey(user_level, "screen_viewer");
       
        if(c == null || c.getConf_value().equals("0")){
          doStandardSharing(sid, publicSID, room, domain, upload, record, httpServletResponse);
        }
        else{
          doJrDeskTopSharing(sid, publicSID, room, domain, upload, record, httpServletResponse);
        }
View Full Code Here

    try {
     
      String template = "sip_template.vm";
     
      //Enable SIP Template or not
      Configuration SIP_ENABLE = Configurationmanagement.getInstance().getConfKey(3L, "sip.enable");
     
      //SIP_REALM
      Configuration application_name = Configurationmanagement.getInstance().getConfKey(3L, "application.name");
      if (application_name == null) {
        ctx.put("APPLICATION_NAME", "OpenMeetings");
      } else {
        ctx.put("APPLICATION_NAME", application_name.getConf_value());
      }
     
      if (SIP_ENABLE == null || !SIP_ENABLE.getConf_value().equals("yes")) {
       
        template = "usual_template.vm";
       
      } else {
       
        //Set all the Params for the Applet Configuration
     
        //SIP_REALM
        Configuration SIP_REALM = Configurationmanagement.getInstance().getConfKey(3L, "sip.realm");
        if (SIP_REALM == null) {
          ctx.put("SIP_REALM", "");
        } else {
          ctx.put("SIP_REALM", SIP_REALM.getConf_value());
        }
       
        //SIP_PORT
        Configuration SIP_PORT = Configurationmanagement.getInstance().getConfKey(3L, "sip.port");
        if (SIP_PORT == null) {
          ctx.put("SIP_PORT", "");
        } else {
          ctx.put("SIP_PORT", SIP_PORT.getConf_value());
        }
       
        //SIP_PROXYNAME
        Configuration SIP_PROXYNAME = Configurationmanagement.getInstance().getConfKey(3L, "sip.proxyname");
        if (SIP_PROXYNAME == null) {
          ctx.put("SIP_PROXYNAME", "");
        } else {
          ctx.put("SIP_PROXYNAME", SIP_PROXYNAME.getConf_value());
        }
       
        //SIP_TUNNEL
        Configuration SIP_TUNNEL = Configurationmanagement.getInstance().getConfKey(3L, "sip.tunnel");
        if (SIP_TUNNEL == null) {
          ctx.put("SIP_TUNNEL", "");
        } else {
          ctx.put("SIP_TUNNEL", SIP_TUNNEL.getConf_value());
        }
       
        //SIP_CODEBASE
        Configuration SIP_CODEBASE = Configurationmanagement.getInstance().getConfKey(3L, "sip.codebase");
        if (SIP_CODEBASE == null) {
          ctx.put("SIP_CODEBASE", "");
        } else {
          ctx.put("SIP_CODEBASE", SIP_CODEBASE.getConf_value());
        }
       
        //SIP_FORCETUNNEL
        Configuration SIP_FORCETUNNEL = Configurationmanagement.getInstance().getConfKey(3L, "sip.forcetunnel");
        if (SIP_FORCETUNNEL == null) {
          ctx.put("SIP_FORCETUNNEL", "");
        } else {
          ctx.put("SIP_FORCETUNNEL", SIP_FORCETUNNEL.getConf_value());
        }
      }
     
      //Parse the Param for the SWF URL
      String swf = httpServletRequest.getParameter("swf");
View Full Code Here

      throw new Exception(e.getMessage());
    }

    // add new configuration
    tx.begin();
    Configuration conf = new Configuration();
    conf.setStarttime(new Date());
    conf.setDeleted("false");
    conf.setConf_key("key1");
    conf.setConf_value("value1");
    try {
      conf = getEntityManager().merge(conf);
      tx.commit();
    } catch (Exception e) {
      tx.rollback();
      throw new Exception(e.getMessage());
    }
   
    result = q.getResultList();
    assertTrue("result should not be empty", result.size()>0);

    // delete configuration
    Long id = conf.getConfiguration_id();
    tx.begin();
    try {
      conf = getEntityManager().find(Configuration.class, id);
      getEntityManager().remove(conf);
      tx.commit();
View Full Code Here

      // -- Attaching to default Session, or we could start a new one --
      //smtpPort 25 or 587
      props.put("mail.smtp.host", smtpServer);
      props.put("mail.smtp.port", smtpPort);
     
      Configuration conf = Configurationmanagement.getInstance().getConfKey(3, "mail.smtp.starttls.enable");
      if (conf != null) {
        if (conf.getConf_value().equals("1")){
          props.put("mail.smtp.starttls.enable","true");
        }
      }

      Session session = null;
View Full Code Here

              ctx.put("startUpClass", startUpClass);
                ctx.put("codebase", codebase);
              ctx.put("red5-host", rtmphostlocal);
              ctx.put("red5-app", ScopeApplicationAdapter.webAppRootKey+"/"+room);
             
              Configuration configuration = Configurationmanagement.getInstance().getConfKey(3L, "default.quality.screensharing");
              String default_quality_screensharing = "1";
              if (configuration != null) {
                default_quality_screensharing = configuration.getConf_value();
              }
             
              ctx.put("default_quality_screensharing", default_quality_screensharing);
             
              ctx.put("user_id", users_id);
View Full Code Here

    Properties props = System.getProperties();

    props.put("mail.smtp.host", smtpServer);
    props.put("mail.smtp.port", smtpPort);
   
    Configuration conf = Configurationmanagement.getInstance().getConfKey(3, "mail.smtp.starttls.enable");
    if (conf != null) {
      if (conf.getConf_value().equals("1")){
        props.put("mail.smtp.starttls.enable","true");
      }
    }
   
    // Check for Authentification
View Full Code Here

                 
                  us.setOmTimeZone(omTimeZone);
                  us.setForceTimeZoneCheck(false);
                } else {
                 
                  Configuration conf = Configurationmanagement.getInstance().getConfKey(3L, "default.timezone");
              if (conf != null) {
                String jNameTimeZone = conf.getConf_value();
               
                OmTimeZone omTimeZone = OmTimeZoneDaoImpl.getInstance().getOmTimeZone(jNameTimeZone);
                    us.setOmTimeZone(omTimeZone);
                   
              }
View Full Code Here

TOP

Related Classes of org.openmeetings.app.persistence.beans.basic.Configuration

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.