Package com.taobao.zeus.web.platform.shared.rpc

Examples of com.taobao.zeus.web.platform.shared.rpc.FileClientBean


  @Override
  public FileClientBean getUserFiles() {
    List<FileDescriptor> files=fileManager.getUserFiles(LoginUser.getUser().getUid());
    FileModel root=new FileModel();
    root.setName("根节点,不展示");
    FileClientBean bean=new FileClientBean(root);
    for(FileDescriptor fd:files){
      FileClientBean nodebean=new FileClientBean(convert(fd));
      nodebean.setParent(bean);
      bean.addSubFile(nodebean);
      recursion(nodebean);
    }
    return bean;
  }
View Full Code Here


  private void recursion(FileClientBean parent){
    FileModel model=parent.getFileModel();
    if(model.isFolder()){
      List<FileDescriptor> fds=fileManager.getSubFiles(model.getId());
      for(FileDescriptor fd:fds){
        FileClientBean bean=new FileClientBean(convert(fd));
        bean.setParent(parent);
        parent.addSubFile(bean);
        recursion(bean);
      }
    }
    return ;
View Full Code Here

TOP

Related Classes of com.taobao.zeus.web.platform.shared.rpc.FileClientBean

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.