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

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


   
    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();
      }
    }
   
    OmTimeZone omTimeZone = OmTimeZoneDaoImpl.getInstance().getOmTimeZone(jNameTimeZone);
   
View Full Code Here


     
    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();
      }
    }
   
    OmTimeZone omTimeZone = OmTimeZoneDaoImpl.getInstance().getOmTimeZone(jNameTimeZone);
   
View Full Code Here

       
      }
     
      //If everything fails
      if (omTimeZone == null) {
        Configuration conf = Configurationmanagement.getInstance().getConfKey(3L, "default.timezone");
        if (conf != null) {
          jNameTimeZone = conf.getConf_value();
        }
        omTimeZone = OmTimeZoneDaoImpl.getInstance().getOmTimeZone(jNameTimeZone);
      }
     
      String timeZoneName = omTimeZone.getIcal();
View Full Code Here

          users_id);

      if (AuthLevelmanagement.getInstance().checkWebServiceLevel(
          user_level)) {

        Configuration conf = Configurationmanagement.getInstance()
            .getConfKey(3L, "default.timezone");
        String jName_timeZone = "";

        if (conf != null) {
          jName_timeZone = conf.getConf_value();
        }

        Long user_id = Usermanagement.getInstance().registerUser(
            username, userpass, lastname, firstname, email,
            new Date(), street, additionalname, fax, zip,
View Full Code Here

                    userObject.getExternalUserId(),
                    userObject.getExternalUserType());

            if (user == null) {

              Configuration conf = Configurationmanagement
                  .getInstance().getConfKey(3L,
                      "default.timezone");
              String jName_timeZone = "";

              if (conf != null) {
                jName_timeZone = conf.getConf_value();
              }

              long userId = Usermanagement.getInstance()
                  .addUserWithExternalKey(1, 0, 0,
                      userObject.getFirstname(),
View Full Code Here

   * @param SID
   */
  public Users markSessionAsLogedIn(String SID) {
    try {
      Sessionmanagement.getInstance().updateUserWithoutSession(SID, -1L);
      Configuration conf = Configurationmanagement.getInstance()
          .getConfKey(3L, "default.rpc.userid");
      return Usermanagement.getInstance().getUserById(
          Long.parseLong(conf.getConf_value()));
    } catch (Exception err) {
      log.error("[markSessionAsLogedIn]", err);
    }
    return null;
  }
View Full Code Here

  }

  public Boolean getSIPModuleStatus() {
    try {

      Configuration conf = Configurationmanagement.getInstance()
          .getConfKey(3L, "sip.enable");

      if (conf == null) {
        return false;
      } else {

        if (conf.getConf_value().equals("yes")) {
          return true;
        }

      }
View Full Code Here

      log.debug("batchFileFir : "+batchFileFir);
      //batchFileFir = webAppPath + File.separatorChar + "jod" + File.separatorChar;
     
      //Only load this Class one time
      //Initially this value might by empty, because the DB is empty yet
      Configuration conf = Configurationmanagement.getInstance().getConfKey(3,"crypt_ClassName");
      if (conf != null) {
          ScopeApplicationAdapter.configKeyCryptClassName = conf.getConf_value();
      }
     
      // init your handler here
     
      //The scheduled Jobs did go into the Spring-Managed Beans, see schedulerJobs.service.xml
View Full Code Here

     
      //log.debug("*..*ismod: " + ismod);
 
      //if (ismod) {
     
      Configuration conf = Configurationmanagement.getInstance().getConfKey(3, "show.whiteboard.draw.status");
      boolean showDrawStatus = conf != null && "1".equals(conf.getConf_value());

      //Notify all Clients of that Scope (Room)
      Collection<Set<IConnection>> conCollection = current.getScope().getConnections();
      for (Set<IConnection> conset : conCollection) {
        for (IConnection conn : conset) {
View Full Code Here

     
      Map<String,Object> sendObject = new HashMap<String,Object>();
      sendObject.put("id", whiteboardId);
      sendObject.put("param", whiteboardObjParam);
     
      Configuration conf = Configurationmanagement.getInstance().getConfKey(3, "show.whiteboard.draw.status");
      boolean showDrawStatus = conf != null && "1".equals(conf.getConf_value());

      //Notify all Clients of that Scope (Room)
      Collection<Set<IConnection>> conCollection = current.getScope().getConnections();
      for (Set<IConnection> conset : conCollection) {
        for (IConnection conn : conset) {
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.