Package railo.runtime.type

Examples of railo.runtime.type.ArrayImpl


        short accessFile = sm.getAccess(SecurityManager.TYPE_FILE);
        String str = SecurityManagerImpl.toStringAccessValue(accessFile);
        if(str.equals("yes"))str="all";
        sct.set(KeyConstants._file,str);
       
      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


        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

  }
 
  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;
  }
View Full Code Here

    sct.setEL("num_color_components",Caster.toDouble(cm.getNumColorComponents()));
    sct.setEL("colorspace",toStringColorSpace(cm.getColorSpace()));
   
      //bits_component
    int[] bitspercomponent = cm.getComponentSize();
    Array arr=new ArrayImpl();
    Double value;
      for (int i = 0; i < bitspercomponent.length; i++) {
        sct.setEL("bits_component_" + (i + 1),value=new Double(bitspercomponent[i]));
        arr.appendEL(value);
      }
    sct.setEL("bits_component",arr);
   
      // colormodel_type
    if (cm instanceof ComponentColorModel)    sct.setEL("colormodel_type", "ComponentColorModel");
View Full Code Here

        body.append(content);
    }
    else {
      Object content = message.getContent();
      if(content instanceof MimeMultipart) {
        Array attachments = new ArrayImpl();
        Array attachmentFiles = new ArrayImpl();
        getMultiPart(query, row, attachments, attachmentFiles,cids, (MimeMultipart) content, body);
 
        if(attachments.size() > 0) {
          try {
            query.setAtEL(ATTACHMENTS, row, ListUtil.arrayToList(attachments, "\t"));
          }
          catch(PageException pageexception) {
          }
        }
        if(attachmentFiles.size() > 0) {
          try {
            query.setAtEL(ATTACHMENT_FILES, row, ListUtil.arrayToList(attachmentFiles, "\t"));
          }
          catch(PageException pageexception1) {
          }
View Full Code Here

  protected Object toCFMLObject(Node node) {
    return XMLCaster.toXMLStruct(node, true);
    }
  protected Object toCFMLObject(Object[] arr) throws PageException {
    Array trg=new ArrayImpl();
    for(int i=0;i<arr.length;i++){
      trg.setEL(i+1, toCFMLObject(arr[i]));
    }
    return trg;
    }
View Full Code Here

      throw Caster.toPageException(e);
    }
    }

  private static Object toArrayStruct(List<AccessControl> accessControlList) throws S3Exception {
    Array arr=new ArrayImpl();
    String type;
    Struct sct;
    AccessControl ac;
    Iterator<AccessControl> it = accessControlList.iterator();
    while(it.hasNext()){
      ac=it.next();
      arr.appendEL(sct=new StructImpl());
      sct.setEL(KeyConstants._id, ac.getId());
      sct.setEL(PERMISSION, ac.getPermission());
     
      type = AccessControl.toType(ac.getType());
      if("Group".equalsIgnoreCase(type))        
View Full Code Here

  private static final long serialVersionUID = -5853145189662102420L;
  static final Collection.Key LINE_NUMBER = KeyImpl.init("LineNumber");

  public static Array call(PageContext pc) {
    Array arr=new ArrayImpl();
    _getTagContext(pc, arr, new Exception("Stack trace"),LINE_NUMBER);
    return arr;
  }
View Full Code Here

* returns the root of this actuell Page Context
*/
public final class GetCurrentContext implements Function {
 
  public static Array call(PageContext pc) {
    Array arr=new ArrayImpl();
    CallStackGet._getTagContext(pc, arr, new Exception("Stack trace"),KeyConstants._line);
    return arr;
  }
View Full Code Here

   * converts a argument scope to a regular array
   * @param arg argument scope to convert
   * @return resulting array
   */
  public static Array toArray(Argument arg) {
    ArrayImpl trg=new ArrayImpl();
    int[] keys = arg.intKeys();
    for(int i=0;i<keys.length;i++){
      trg.setEL(keys[i],
          arg.get(keys[i],null));
    }
    return trg;
  }
View Full Code Here

TOP

Related Classes of railo.runtime.type.ArrayImpl

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.