Package com.jeecms.common.file

Examples of com.jeecms.common.file.FileWrap$FileComparator


        files = parent.listFiles();
      }
      Arrays.sort(files, new FileComparator());
      List<FileWrap> list = new ArrayList<FileWrap>(files.length);
      for (File f : files) {
        list.add(new FileWrap(f, realPathResolver.get("")));
      }
      return list;
    } else {
      return new ArrayList<FileWrap>(0);
    }
View Full Code Here


      List<FileWrap> list = new ArrayList<FileWrap>(files.length);
      CmsFile file;
      for (File f : files) {
        file=fileMng.findByPath(f.getName());
        if(file!=null){
          list.add(new FileWrap(f, realPathResolver.get(""),null,file.getFileIsvalid()));
        }else{
          list.add(new FileWrap(f, realPathResolver.get(""),null,false));
        }
      }
      return list;
    } else {
      return new ArrayList<FileWrap>(0);
View Full Code Here

      for (File f : files) {
        file=fileMng.findByPath(f.getName());
        if(valid!=null){
          if(file!=null){
            if(file.getFileIsvalid().equals(valid)){
              list.add(new FileWrap(f, realPathResolver.get(""),null,valid));
            }
          }else{
            if(valid.equals(false)){
              list.add(new FileWrap(f, realPathResolver.get(""),null,false));
            }
          }
        }else{
          if(file!=null){
            list.add(new FileWrap(f, realPathResolver.get(""),null,file.getFileIsvalid()));
          }else{
            list.add(new FileWrap(f, realPathResolver.get(""),null,false));
          }
        }
      }
      return list;
    } else {
View Full Code Here

TOP

Related Classes of com.jeecms.common.file.FileWrap$FileComparator

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.