Package net.sf.archimede.jsf.view

Examples of net.sf.archimede.jsf.view.ViewFolder


        this.selectedFolder = viewFolder;
        this.metadataModel = this.getMetadataTreeModelBase();
    }
   
    public String addToMyResultFromList() {
        ViewFolder selectedFolderResult = (ViewFolder) this.folders.getRowData();
        MenuBean menuBean = (MenuBean) FacesContext.getCurrentInstance().getApplication().createValueBinding(MenuBean.BEAN_REF).getValue(FacesContext.getCurrentInstance());
        menuBean.addToMyResult(selectedFolderResult);
       
        return "";
    }
View Full Code Here


   
    public String retrieveAll() {
        List allFolders = FolderDao.createInstance().list();
        List allViewFolders = new ArrayList(allFolders.size());
        for (Iterator it = allFolders.iterator(); it.hasNext(); ) {
            allViewFolders.add(new ViewFolder((Folder) it.next()));
        }
        this.folders = new ListDataModel();
        this.folders.setWrappedData(allViewFolders);
       
        return "exploration_folder_list";
View Full Code Here

        return "exploration_collection_description";
    }
   
    public String seeParentCollectionFromList() {
        //Is is not considered selected
        ViewFolder selectedFolderFromList = (ViewFolder) this.folders.getRowData();
        Collection collection = (Collection) selectedFolderFromList.getParentCollectionsModel().getRowData();
        CollectionBean collectionBean = (CollectionBean) FacesContext.getCurrentInstance().getApplication().createValueBinding(CollectionBean.BEAN_REF).getValue(FacesContext.getCurrentInstance());
        collectionBean.setSelectedCollection(new ViewCollection(collection));
       
        return "exploration_collection_description";
    }
View Full Code Here

        return "exploration_collection_description";
    }
   
    public String seeCollectionFromList() {
        //Is is not considered selected
        ViewFolder selectedFolderFromList = (ViewFolder) this.folders.getRowData();
        CollectionBean collectionBean = (CollectionBean) FacesContext.getCurrentInstance().getApplication().createValueBinding(CollectionBean.BEAN_REF).getValue(FacesContext.getCurrentInstance());
        collectionBean.setSelectedCollection(new ViewCollection(selectedFolderFromList.getParentCollection()));
       
        return "exploration_collection_description";
    }
View Full Code Here

    }
   
    public String open() {
        FolderBean folderBean = (FolderBean) FacesContext.getCurrentInstance().getApplication().createValueBinding(FolderBean.BEAN_REF).getValue(FacesContext.getCurrentInstance());    
       
        this.selectedFolder = new ViewFolder((Folder) ((CustomTreeNode) folderBean.getVersionsTreeModel().getNode()).getContent());
        //Refresh the value
        FolderDao folderDao = FolderDao.createInstance();
        Folder folder = folderDao.retrieve(this.selectedFolder.getId());
        this.selectedFolder = new ViewFolder(folder);
        this.metadataTreeModel = getMetadataTreeNode();
       
       return "workspace_folder_version";
    }
View Full Code Here

               
            } else {
                //All false: nothing to do
            }
            this.selectedStoredFiles = null;
            ViewFolder viewDestinationFolder = new ViewFolder(FolderDao.createInstance().retrieve(destinationFolder.getId()));
            this.storedFiles = viewDestinationFolder.getStoredFilesModel();
        }
        return "";
    }
View Full Code Here

                StoredFileDao.createInstance().remove(currentViewStoredFile.getStoredFile());
            }
        }
        FolderBean folderBean = (FolderBean) FacesContext.getCurrentInstance().getApplication().createValueBinding(FolderBean.BEAN_REF).getValue(FacesContext.getCurrentInstance());    
        Folder destinationFolder = folderBean.getSelectedFolder();
        ViewFolder viewDestinationFolder = new ViewFolder(FolderDao.createInstance().retrieve(destinationFolder.getId()));
        this.storedFiles = viewDestinationFolder.getStoredFilesModel();
        return "";
    }
View Full Code Here

    FolderBean folderBean = (FolderBean) FacesContext
        .getCurrentInstance().getApplication().createValueBinding(
            FolderBean.BEAN_REF).getValue(
            FacesContext.getCurrentInstance());
    folderBean.setSelectedFolder(new ViewFolder(folder));

    return "exploration_folder_description";
  }
View Full Code Here

    }

    List folders = collection.getFolders();
    for (Iterator it = folders.iterator(); it.hasNext();) {
      Folder currentFolder = (Folder) it.next();
      addFolder(treeData, new ViewFolder(currentFolder));
    }

    return treeData;
  }
View Full Code Here

      communityNode.setLeaf(false);
      foldersCount += folders.size();
    }

    for (Iterator depoIt = folders.iterator(); depoIt.hasNext();) {
      ViewFolder currentFolder = new ViewFolder((Folder) depoIt
          .next());
      addFolder(communityNode, currentFolder);
    }

    return foldersCount;
View Full Code Here

TOP

Related Classes of net.sf.archimede.jsf.view.ViewFolder

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.