Package railo.runtime.type

Examples of railo.runtime.type.StructImpl


    sct.set("defaultencoding", config.getMailDefaultEncoding());
       
    }
   
    private void doGetTaskSetting() throws PageException {
        Struct sct=new StructImpl();
        pageContext.setVariable(getString("admin",action,"returnVariable"),sct);
       
        int maxThreads=20;
        SpoolerEngine engine = config.getSpoolerEngine();
        if(engine instanceof SpoolerEngineImpl) {
          SpoolerEngineImpl ei = ((SpoolerEngineImpl)engine);
          maxThreads=ei.getMaxThreads();
        }
        sct.set("maxThreads",Caster.toDouble(maxThreads));
       
    }
View Full Code Here


        boolean blob=getBoolV("blob",false);
        boolean clob=getBoolV("clob",false);
        boolean validate=getBoolV("validate",false);
        boolean storage=getBoolV("storage",false);
        boolean verify=getBoolV("verify",true);
        Struct custom=getStruct("custom",new StructImpl());
      String dbdriver = getString("dbdriver", "");
       
        //config.getDatasourceConnectionPool().remove(name);
        DataSource ds=null;
    try {
View Full Code Here

          getString("admin",action,"securityKey"),
          getString("admin",action,"usage")
         
      );
     
      Struct attrColl=new StructImpl();
      attrColl.setEL("action", "connect");
      try {
      new RemoteClientTask(null,client,attrColl,getCallerId(),"synchronisation").execute(config);
    }
      catch (Throwable t) {
      throw Caster.toPageException(t);
View Full Code Here

    /**
     * @throws PageException
     *
     */
    private void doGetDatasourceSetting() throws PageException {
        Struct sct=new StructImpl();
        pageContext.setVariable(getString("admin",action,"returnVariable"),sct);
        sct.set("psq",Caster.toBoolean(config.getPSQL()));
    }
View Full Code Here

    }
   

    private void doUpdateORMSetting() throws SecurityException, PageException {
      ORMConfiguration oc = config.getORMConfig();
      Struct settings=new StructImpl();
     
      settings.set(ORMConfigurationImpl.AUTO_GEN_MAP, getBool("admin",action,"autogenmap"));
      settings.set(ORMConfigurationImpl.EVENT_HANDLING, getBool("admin",action,"eventHandling"));
      settings.set(ORMConfigurationImpl.FLUSH_AT_REQUEST_END, getBool("admin",action,"flushatrequestend"));
      settings.set(ORMConfigurationImpl.LOG_SQL, getBool("admin",action,"logSQL"));
      settings.set(ORMConfigurationImpl.SAVE_MAPPING, getBool("admin",action,"savemapping"));
      settings.set(ORMConfigurationImpl.USE_DB_FOR_MAPPING, getBool("admin",action,"useDBForMapping"));
      settings.set(ORMConfigurationImpl.SECONDARY_CACHE_ENABLED, getBool("admin",action,"secondarycacheenabled"));
     
      settings.set(ORMConfigurationImpl.CATALOG, getString("admin",action,"catalog"));
      settings.set(ORMConfigurationImpl.SCHEMA, getString("admin",action,"schema"));
      settings.set(ORMConfigurationImpl.SQL_SCRIPT, getString("admin",action,"sqlscript"));
      settings.set(ORMConfigurationImpl.CACHE_CONFIG, getString("admin",action,"cacheconfig"));
      settings.set(ORMConfigurationImpl.CACHE_PROVIDER, getString("admin",action,"cacheProvider"));
      settings.set(ORMConfigurationImpl.ORM_CONFIG, getString("admin",action,"ormConfig"));
     
     
      // dbcreate
      String strDbcreate=getString("admin",action,"dbcreate");
      String dbcreate="none";
      if("none".equals(strDbcreate))        dbcreate="none";
      else if("update".equals(strDbcreate))    dbcreate="update";
      else if("dropcreate".equals(strDbcreate))  dbcreate="dropcreate";
    else throw new ApplicationException("invalid dbcreate definition ["+strDbcreate+"], valid dbcreate definitions are [none,update,dropcreate]");
      settings.set(ORMConfigurationImpl.DB_CREATE, dbcreate);
     
      // cfclocation
      String strCfclocation=getString("admin",action,"cfclocation");
      Array arrCfclocation = railo.runtime.type.util.ListUtil.listToArray(strCfclocation, ",\n");
      Iterator it = arrCfclocation.valueIterator();
      String path;
      while(it.hasNext()){
        path=(String) it.next();
        ResourceUtil.toResourceExisting(config, path);
      }
      settings.set(KeyConstants._cfcLocation, arrCfclocation);
     
      admin.updateORMSetting(ORMConfigurationImpl.load(config, null, settings, null, oc));
       
     
      store();
View Full Code Here

       
      int records = qry.getRecordcount();
      for(int row=1;row<=records;row++){
        String n = Caster.toString(qry.getAt("name", row, null),null);
        if(!StringUtil.isEmpty(n) && n.trim().equalsIgnoreCase(name)) {
          Struct sct=new StructImpl();
          String returnVariable=getString("admin",action,"returnVariable");
          pageContext.setVariable(returnVariable,sct);

          sct.setEL(KeyConstants._name, qry.getAt(KeyConstants._name, row, ""));
          sct.setEL(KeyConstants._level, qry.getAt(KeyConstants._level, row, ""));
          sct.setEL("virtualpath", qry.getAt("virtualpath", row, ""));
          sct.setEL(KeyConstants._class, qry.getAt(KeyConstants._class, row, ""));
          sct.setEL("maxFile", qry.getAt("maxFile", row, ""));
          sct.setEL("maxFileSize", qry.getAt("maxFileSize", row, ""));
          sct.setEL(KeyConstants._path, qry.getAt(KeyConstants._path, row, ""));
         
          return;
        }
      }
      throw new ApplicationException("invalig log name ["+name+"]");
View Full Code Here

     
  }
   
    private void doGetCompilerSettings() throws  PageException {
      String returnVariable=getString("admin",action,"returnVariable");
      Struct sct=new StructImpl();
      pageContext.setVariable(returnVariable,sct);

      sct.set("DotNotationUpperCase", config.getDotNotationUpperCase()?Boolean.TRUE:Boolean.FALSE);
      sct.set("supressWSBeforeArg", config.getSupressWSBeforeArg()?Boolean.TRUE:Boolean.FALSE);
      sct.set("nullSupport", config.getFullNullSupport()?Boolean.TRUE:Boolean.FALSE);
    }
View Full Code Here

       
       
  }

  private void doGetPerformanceSettings() throws ApplicationException, PageException {
    Struct sct=new StructImpl();
        pageContext.setVariable(getString("admin",action,"returnVariable"),sct);
       
        short it = config.getInspectTemplate();
        String str="once";
        if(it==ConfigImpl.INSPECT_ALWAYS)str="always";
        else if(it==ConfigImpl.INSPECT_NEVER)str="never";
        sct.set("inspectTemplate",str);
  }
View Full Code Here

        sct.set("inspectTemplate",str);
  }
   
   
    private void doGetCustomTagSetting() throws PageException {
        Struct sct=new StructImpl();
        pageContext.setVariable(getString("admin",action,"returnVariable"),sct);
        sct.set("customTagDeepSearch",Caster.toBoolean(config.doCustomTagDeepSearch()));// deprecated
        sct.set("customTagLocalSearch",Caster.toBoolean(config.doLocalCustomTag()));// deprecated
       
        sct.set("deepSearch",Caster.toBoolean(config.doCustomTagDeepSearch()));
        sct.set("localSearch",Caster.toBoolean(config.doLocalCustomTag()));
        sct.set("customTagPathCache",Caster.toBoolean(config.useCTPathCache()));
        sct.set("extensions",new ArrayImpl(config.getCustomTagExtensions()));
    }
View Full Code Here

    if("request".equalsIgnoreCase(type))
      m=cs.getRequestMonitor(name);
    else
      m=cs.getIntervallMonitor(name);
   
    Struct sct=new StructImpl();
    sct.setEL(KeyConstants._name, m.getName());
    sct.setEL(KeyConstants._type, m.getType()==Monitor.TYPE_INTERVALL?"intervall":"request");
    sct.setEL(LOG_ENABLED, m.isLogEnabled());
    sct.setEL(CLASS, m.getClazz().getName());
   
        pageContext.setVariable(getString("admin",action,"returnVariable"),sct);
  }
View Full Code Here

TOP

Related Classes of railo.runtime.type.StructImpl

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.