Package railo.runtime.type

Examples of railo.runtime.type.Array.appendEL()


          else if(name.equalsIgnoreCase("resource"))
            arr.appendEL(Util.getDefault(pc,ConfigImpl.CACHE_DEFAULT_RESOURCE).getCustomInfo());
          else if(name.equalsIgnoreCase("function"))
            arr.appendEL(Util.getDefault(pc,ConfigImpl.CACHE_DEFAULT_FUNCTION).getCustomInfo());
          else
            arr.appendEL(Util.getCache(pc.getConfig(),name).getCustomInfo());
        }
      }
     
     
      return arr;
View Full Code Here


            if(arr[0]!=null) {
              res=udf.call(pc, arr, false);
              b=Caster.toBoolean(res,null);
              if(b==null) throw new FunctionException(pc,"ArrayFindAll",2,"function","return value of the "+(udf instanceof Closure?"closure":"function ["+udf.getFunctionName()+"]")+" cannot be casted to a boolean value.",CasterException.createMessage(res, "boolean"));
              if(b.booleanValue()) {
                rtn.appendEL(Caster.toDouble(i));
              }
            }
        }
        return rtn;
    }
View Full Code Here

        boolean valueIsSimple=Decision.isSimpleValue(value);
        Object o;
        for(int i=1;i<=len;i++) {
            o=array.get(i,null);
            if(o!=null && Operator.equals(o, value,caseSensitive,!valueIsSimple)) {
              rtn.appendEL(Caster.toDouble(i));
            }
        }
        return rtn;
    }
}
View Full Code Here

              else if(Decision.isCastableToArray(args)){
                args = Caster.toArray(args);
              }
              else {
                Array arr = new ArrayImpl();
                arr.appendEL(args);
                args=arr;
              }
            }
            else
              args=url;
View Full Code Here

  public static String translateScriptProtect(int scriptProtect) {
    if(scriptProtect==ApplicationContext.SCRIPT_PROTECT_NONE) return "none";
    if(scriptProtect==ApplicationContext.SCRIPT_PROTECT_ALL) return "all";
   
    Array arr=new ArrayImpl();
    if((scriptProtect&ApplicationContext.SCRIPT_PROTECT_CGI)>0) arr.appendEL("cgi");
    if((scriptProtect&ApplicationContext.SCRIPT_PROTECT_COOKIE)>0) arr.appendEL("cookie");
    if((scriptProtect&ApplicationContext.SCRIPT_PROTECT_FORM)>0) arr.appendEL("form");
    if((scriptProtect&ApplicationContext.SCRIPT_PROTECT_URL)>0) arr.appendEL("url");
   
   
View Full Code Here

    if(scriptProtect==ApplicationContext.SCRIPT_PROTECT_NONE) return "none";
    if(scriptProtect==ApplicationContext.SCRIPT_PROTECT_ALL) return "all";
   
    Array arr=new ArrayImpl();
    if((scriptProtect&ApplicationContext.SCRIPT_PROTECT_CGI)>0) arr.appendEL("cgi");
    if((scriptProtect&ApplicationContext.SCRIPT_PROTECT_COOKIE)>0) arr.appendEL("cookie");
    if((scriptProtect&ApplicationContext.SCRIPT_PROTECT_FORM)>0) arr.appendEL("form");
    if((scriptProtect&ApplicationContext.SCRIPT_PROTECT_URL)>0) arr.appendEL("url");
   
   
   
View Full Code Here

    if(scriptProtect==ApplicationContext.SCRIPT_PROTECT_ALL) return "all";
   
    Array arr=new ArrayImpl();
    if((scriptProtect&ApplicationContext.SCRIPT_PROTECT_CGI)>0) arr.appendEL("cgi");
    if((scriptProtect&ApplicationContext.SCRIPT_PROTECT_COOKIE)>0) arr.appendEL("cookie");
    if((scriptProtect&ApplicationContext.SCRIPT_PROTECT_FORM)>0) arr.appendEL("form");
    if((scriptProtect&ApplicationContext.SCRIPT_PROTECT_URL)>0) arr.appendEL("url");
   
   
   
    try {
View Full Code Here

   
    Array arr=new ArrayImpl();
    if((scriptProtect&ApplicationContext.SCRIPT_PROTECT_CGI)>0) arr.appendEL("cgi");
    if((scriptProtect&ApplicationContext.SCRIPT_PROTECT_COOKIE)>0) arr.appendEL("cookie");
    if((scriptProtect&ApplicationContext.SCRIPT_PROTECT_FORM)>0) arr.appendEL("form");
    if((scriptProtect&ApplicationContext.SCRIPT_PROTECT_URL)>0) arr.appendEL("url");
   
   
   
    try {
      return ListUtil.arrayToList(arr, ",");
View Full Code Here

       
      Array arr=new ArrayImpl();
      if(accessFile!=SecurityManager.VALUE_ALL){
          Resource[] reses = ((SecurityManagerImpl)sm).getCustomFileAccess();
          for(int i=0;i<reses.length;i++){
            arr.appendEL(reses[i].getAbsolutePath());
        }
      }
      sct.set("file_access",arr);
   
    }
View Full Code Here

  public Array getNames() throws SecurityException {
    checkReadAccess();
    railo.runtime.db.DataSource[] sources = config().getDataSources();
    Array names=new ArrayImpl();
    for(int i=0;i<sources.length;i++) {
      names.appendEL(sources[i].getName());
    }
    return names;
  }

  public void removeDatasource(String name) throws SQLException, SecurityException {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.