Package net.sf.archimede.jsf.view

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


  private List populateAllViewFolders(Collection collection,
      List allViewFolders) {
    List folders = collection.getFolders();
    if (!folders.isEmpty()) {
      for (int i = 0; i < folders.size(); i++) {
        allViewFolders.add(new ViewFolder((Folder) folders.get(i)));
      }
    }
    List collections = collection.getCollections();
    if (!collections.isEmpty()) {
      for (int i = 0; i < collections.size(); i++) {
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

            this.collections.setWrappedData(baseViewCollections);
           
            List collectionFolders = rootCollection.getFolders();
            List collectionViewFolders = new ArrayList(collectionFolders.size());
            for (Iterator it = collectionFolders.iterator(); it.hasNext(); ) {
                collectionViewFolders.add(new ViewFolder((Folder) it.next()));
            }
           
            //Prepare the folderBean with appropriate values
            DataModel foldersDataModel = new ListDataModel();
            foldersDataModel.setWrappedData(collectionViewFolders);
View Full Code Here

       
       
        List collectionFolders = collection.getFolders();
        List collectionViewFolders = new ArrayList(collectionFolders.size());
        for (Iterator it = collectionFolders.iterator(); it.hasNext(); ) {
            collectionViewFolders.add(new ViewFolder((Folder) it.next()));
        }
       
        //Prepare the folderBean with appropriate values
        DataModel foldersDataModel = new ListDataModel();
        foldersDataModel.setWrappedData(collectionViewFolders);
View Full Code Here

       
       
        List collectionFolders = collection.getFolders();
        List collectionViewFolders = new ArrayList(collectionFolders.size());
        for (Iterator it = collectionFolders.iterator(); it.hasNext(); ) {
            collectionViewFolders.add(new ViewFolder((Folder) it.next()));
        }
       
        //Prepare the folderBean with appropriate values
        DataModel foldersDataModel = new ListDataModel();
        foldersDataModel.setWrappedData(collectionViewFolders);
View Full Code Here

            FolderDao.createInstance().addVersion(this.selectedFolder.getFolder());
        } catch (ObjectLockedException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        this.selectedFolder = new ViewFolder(FolderDao.createInstance().retrieve(this.selectedFolder.getId()));
        this.metadataTreeModel = getMetadataTreeNode();
        this.versionsTreeModel = getVersionsTreeNode();
       
        return "";
    }
View Full Code Here

        CustomTreeNode ctn = (CustomTreeNode) this.versionsTreeModel.getNode();
        folderDao.restoreVersion((Folder) ctn.getContent());
       
        //TODO faire une méthode refreshState()
        Folder folder = folderDao.retrieve(this.selectedFolder.getId());
        this.selectedFolder = new ViewFolder(folder);
        this.metadataTreeModel = getMetadataTreeNode();
        this.versionsTreeModel = getVersionsTreeNode();
       
        return "";
    }
View Full Code Here

        FolderDao folderDao = FolderDao.createInstance();
        CustomTreeNode ctn = (CustomTreeNode) this.versionsTreeModel.getNode();
        folderDao.removeVersion((Folder) ctn.getContent());
       
        Folder folder = folderDao.retrieve(this.selectedFolder.getId());
        this.selectedFolder = new ViewFolder(folder);
        this.metadataTreeModel = getMetadataTreeNode();
        this.versionsTreeModel = getVersionsTreeNode();
       
        return "";
    }
View Full Code Here

        return this.metadataTreeModel;
    }
   
    private TreeModelBase getMetadataTreeNode() {
      metadataEmpty = false;
      this.selectedFolder = new ViewFolder(FolderDao.createInstance().retrieve(this.selectedFolder.getId()));
        List metadatas = this.selectedFolder.getMetadatas();
        String rootName = "metadatas";
       
        CustomTreeNode treeData = new CustomTreeNode("root", rootName, false);
        treeData.setContent(this.selectedFolder);
View Full Code Here

        this.selectedFolder.getFolder().getMetadatas().add(metadata);
               
        MetadataDao.createInstance().save(metadata);
       
        //We need to query the database to know what node types are available.
        this.selectedFolder = new ViewFolder(FolderDao.createInstance().retrieve(this.selectedFolder.getId()));
        this.metadataTreeModel = getMetadataTreeNode();
       
        this.metadataType = null;
       
        return "";
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.