Package net.sf.archimede.jsf.view

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


       
        return "";
    }
   
    public String seeParentCollectionFromFolder() {
        ViewCollection selectedCollection = (ViewCollection) this.selectedFolder.getParentCollectionsModel().getRowData();
       
        //Get a fresh copy
        String selectCollectionId = selectedCollection.getId();
        Collection collection = CollectionDao.createInstance().retrieve(selectCollectionId);
       
        List collectionCollections = collection.getCollections();
        List collectionViewCollections = new ArrayList(collectionCollections.size());
        for (Iterator it = collectionCollections.iterator(); it.hasNext(); ) {
            collectionViewCollections.add(new ViewCollection((Collection) it.next()));
        }
        DataModel collections = new ListDataModel();
        collections.setWrappedData(collectionViewCollections);
        CollectionBean collectionBean = (CollectionBean) FacesContext.getCurrentInstance().getApplication().createValueBinding(CollectionBean.BEAN_REF).getValue(FacesContext.getCurrentInstance());
        collectionBean.setCollections(collections);
        collectionBean.setSelectedCollection(new ViewCollection(collection));
       
        List collectionFolders = collection.getFolders();
        List collectionViewFolders = new ArrayList(collectionFolders.size());
        for (Iterator it = collectionFolders.iterator(); it.hasNext(); ) {
            collectionViewFolders.add(new ViewFolder((Folder) it.next()));
View Full Code Here


               
            } else {
                //All false: nothing to do
            }
            this.selectedFolders = null;
            ViewCollection viewDestinationCollection = new ViewCollection(CollectionDao.createInstance().retrieve(destinationCollection.getId()));
            this.folders = viewDestinationCollection.getFoldersModel();
        }
        return "";
    }
View Full Code Here

                FolderDao.createInstance().remove(currentViewFolder.getFolder());
            }
        }
        CollectionBean collectionBean = (CollectionBean) FacesContext.getCurrentInstance().getApplication().createValueBinding(CollectionBean.BEAN_REF).getValue(FacesContext.getCurrentInstance());    
        Collection destinationCollection = collectionBean.getSelectedCollection();
        ViewCollection viewDestinationCollection = new ViewCollection(CollectionDao.createInstance().retrieve(destinationCollection.getId()));
        this.folders = viewDestinationCollection.getFoldersModel();
        return "";
    }
View Full Code Here

            this.newName = null;
        }
       
        CollectionBean collectionBean = (CollectionBean) FacesContext.getCurrentInstance().getApplication().createValueBinding(CollectionBean.BEAN_REF).getValue(FacesContext.getCurrentInstance());    
        Collection destinationCollection = collectionBean.getSelectedCollection();
        ViewCollection viewDestinationCollection = new ViewCollection(CollectionDao.createInstance().retrieve(destinationCollection.getId()));
        this.folders = viewDestinationCollection.getFoldersModel();
       
        return "";
    }
View Full Code Here

     *
     * @return
     */
    public String seeCollectionFromResults() {
        ViewFolder selectedFolder = (ViewFolder) this.results.getRowData();
        ViewCollection selectedCollection = new ViewCollection(selectedFolder.getParentCollection());
        CollectionBean collectionBean = (CollectionBean) FacesContext.getCurrentInstance().getApplication().createValueBinding(CollectionBean.BEAN_REF).getValue(FacesContext.getCurrentInstance());
        collectionBean.setSelectedCollection(selectedCollection);

        return "exploration_collection_description";
    }
View Full Code Here

     */
    public String seeParentFromResults() {
        ViewFolder selectedFolderResult = (ViewFolder) this.results.getRowData();
        Collection collection = (Collection) selectedFolderResult.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

    }
   
    public String retrieveBaseCollections() {
        Collection rootCollection = CollectionDao.createInstance().getRootCollection();
        if (rootCollection != null) {
            this.selectedCollection = new ViewCollection(rootCollection);
            List baseCollections = this.selectedCollection.getCollections();
            List baseViewCollections = new ArrayList(baseCollections.size());
            for (Iterator it = baseCollections.iterator(); it.hasNext(); ) {
                baseViewCollections.add(new ViewCollection((Collection) it.next()));
            }
            this.collections = new ListDataModel();
            this.collections.setWrappedData(baseViewCollections);
        }
       
View Full Code Here

        Collection collection = CollectionDao.createInstance().retrieve(selectCollectionId);
       
        List collectionCollections = collection.getCollections();
        List collectionViewCollections = new ArrayList(collectionCollections.size());
        for (Iterator it = collectionCollections.iterator(); it.hasNext(); ) {
            collectionViewCollections.add(new ViewCollection((Collection) it.next()));
        }
        this.collections = new ListDataModel();
        this.collections.setWrappedData(collectionViewCollections);
       
        return "exploration_collection_list";
View Full Code Here

        Collection collection = CollectionDao.createInstance().retrieve(selectCollectionId);
       
        List collectionCollections = collection.getCollections();
        List collectionViewCollections = new ArrayList(collectionCollections.size());
        for (Iterator it = collectionCollections.iterator(); it.hasNext(); ) {
            collectionViewCollections.add(new ViewCollection((Collection) it.next()));
        }
        this.collections = new ListDataModel();
        this.collections.setWrappedData(collectionViewCollections);
       
        return "exploration_collection_list";
View Full Code Here

TOP

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

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.